Commit Graph
2 Commits
Author SHA1 Message Date
Alessandro 01e0ced1be fix(secrets): preserve values across edits and read failures
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.
2026-11-10 14:06:49 +01:00
Alessandro 255ff63bff Preserve configured API-key pools when saving settings
Separate reading the configured key value from selecting a runtime key.
Settings and key reveal retain the complete comma-separated list; model
calls keep the existing rotation and provider hooks. Runtime-only OAuth
placeholders are not treated as configured keys.

Keep the existing 6.5x Git-version-cache save optimization unchanged.

Verified 24 focused settings/profile tests, 30 model-key tests, and the
Docker framework getter/cache/OAuth suite, including alias preservation
and the configured-key versus runtime-hook boundary.
2026-09-19 02:31:45 +02:00