Commit 9d3c519
committed
feat(ai): detect expired Claude login and guide re-login
Expired/revoked OAuth logins only fail at request time — auth status
still reports logged in, so the panel previously showed a bare
"exited with error code" message. Classify auth failures in the query
error path (isAuthError on the aiError event) and add strings/styles
for the re-login notice, terminal button and /login hint. API-key
providers keep the existing settings-dialog hint instead.1 parent 153ceb4 commit 9d3c519
3 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2132 | 2132 | | |
2133 | 2133 | | |
2134 | 2134 | | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2135 | 2146 | | |
2136 | 2147 | | |
2137 | | - | |
| 2148 | + | |
| 2149 | + | |
2138 | 2150 | | |
2139 | 2151 | | |
2140 | 2152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2648 | 2648 | | |
2649 | 2649 | | |
2650 | 2650 | | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
2651 | 2654 | | |
2652 | 2655 | | |
2653 | 2656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
242 | 259 | | |
243 | 260 | | |
244 | 261 | | |
| |||
0 commit comments