Retain possible secret prefixes from the first streamed character while preserving the existing final partial-mask threshold.
Mask full provider key lists and each selected member in normal and streaming output, including supported legacy key names. Preserve stored values, placeholder substitution, text mask thresholds, and commas in ordinary secrets. Cover chunk boundaries, pool whitespace, and naming variants.
Use dotenv parsing to distinguish comments from secret content, mask shadowed populated definitions, and resolve editor masks against current disk values instead of stale snapshots.
Treat missing stores as empty, reject unreadable-store edits, and retain an unavailable value through settings normalization so unrelated updates cannot erase secrets, even after a transient read failure recovers. Cover failed reads, recovery, rotation, and masked round trips.
List only non-empty effective definitions, honoring case-insensitive last-definition precedence across global, native, and project stores. Exclude malformed source lines from the alias inventory.
Keep the existing conditional secrets guidance and independent variables section. Cover empty values, overrides, non-empty literals, and rendered prompt behavior.
Match stored and submitted secret names using the uppercase convention
already used by parsing and masking. Lowercase and mixed-case entries
retain their values when settings are saved; explicit clears and omitted
keys keep their existing behavior.
Keep the existing 6.5x settings-save optimization unchanged.
Verified 21 focused host tests and 13 Docker framework secret tests.
Escape backslashes, double quotes, and carriage returns in the existing
secret serializer. Global and project saves retain parsed values through
masked edits, including multiline text, Unicode, and empty values.
Keep the existing 6.5x settings-save optimization unchanged.
Verified 18 focused host tests and 10 Docker framework secret tests.
Filter usr/.env masking to API keys and login/password credentials so ordinary settings cannot corrupt chat text. Keep global and project secrets protected, and cover full-response, prompt, and streaming behavior with a regression test.
Include usr/.env in the agent-facing SecretsManager sources so runtime credentials are masked in tool results, history, logs, and streamed output. Keep the writable default secrets manager scoped to usr/secrets.env.
Add regression coverage for dotenv masking and document the source contract.
Add @extensible decorator to all three secrets factory functions in
helpers/secrets.py, enabling plugins to intercept or replace the
SecretsManager instance returned by these functions.
Decorated functions:
- get_secrets_manager()
- get_project_secrets_manager()
- get_default_secrets_manager()
This is the first consumer of the @extensible decorator. Extension
discovery has been verified to work with agent=None (the common case
for these functions) via subagents.get_paths() plugin path resolution.
Motivating use case: OpenBao secrets backend plugin that replaces the
default .env-based SecretsManager with an OpenBao KV v2 backed instance.
No behavioral change for existing users - the decorator only adds
extension hooks around the existing functions.