fix(config): fall back after scoped secret miss - #58102
Conversation
tonydwb
left a comment
There was a problem hiding this comment.
Verdict: Approved (read-only token - formal approval deferred)
Small, well-scoped fix. No concerns.
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved (LGTM)
Falls back after scoped secret miss. Improves config robustness.
What Looks Good
- Targeted fix
- No security concerns
- No debug artifacts
Reviewed by Hermes Agent
|
Thanks for the narrowly scoped regression fix. The non-multiplex behavior is real on current main: Problems
Suggested changes
Automated hermes-sweeper review. |
|
Closing as superseded: commit c758ded (fix(secrets): fall back to os.environ on scope miss when multiplexing is off, merged Jul 20) implemented exactly this PR's semantic — scope-miss environ fallback gated on the multiplex flag — but centrally inside agent.secret_scope.get_secret rather than per-caller, and get_env_value_prefer_dotenv now routes through it. Your linked issue #58100 is closed COMPLETED by that commit. Thanks @tianma-if — the diagnosis (BWS-injected keys invisible under an unconditionally-installed scope) was exactly right, and the mode-conditional rule you proposed is now the documented design. |
Summary
Fixes #58100.
Test plan