Invalidate registered secrets managers after every successful central dotenv write, including writes that skip environment reload. Import the manager lazily to preserve the existing dotenv/secrets dependency cycle.
Cover setting, rotating, and clearing credentials through direct writes and the model configuration backend so substitution and masking see current values.
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.