Commit 329dce8
fix: config-based auth tokens should not persist to trusted storage
clientAuthTokens from config were being stored in trusted storage on
auto-approve, which meant revoking them from self-inspect had no effect
since the next auth request would re-match the config and re-store.
Now config-based tokens only grant session-level trust (in-memory meta)
without persisting to storage. Only terminal-approved and temp-token
approved auth tokens are persisted.
Also use delete instead of = undefined for immer draft cleanup on revoke.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b9cc9bc commit 329dce8
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
0 commit comments