Commit 1f4a3a5
committed
fix(tui): fetch agent token directly instead of pre-check in fetch access
The canFetchRuntimeToken pre-check swallows all errors and returns false,
which incorrectly showed "no managed OAuth credential" even when one was
configured. For the fetch access screen (explicit user action), call
fetchRuntimeToken directly and let real errors surface in the error phase.
The pre-check remains in the invoke flow where silent skip is desired.1 parent d1417fc commit 1f4a3a5
1 file changed
Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 4 | + | |
11 | 5 | | |
12 | 6 | | |
13 | 7 | | |
| |||
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 17 | + | |
| 18 | + | |
32 | 19 | | |
33 | 20 | | |
34 | 21 | | |
| |||
0 commit comments