Repository navigation
Commit eaae356
Stop naming a connector with no credential, and clear a stale connector status
A connector stored as "on" that had no token (OpenEvidence was on from before it needed one) showed
as off in the Connectors panel but was still named in every chat request, so each message came back
"no API token: add yours". After the reader added the token, that last-message error stayed on screen,
including across closing and reopening the sidebar.
requestEntries now names only connectors that are on AND may be (the same rule the panel uses), and any
change to a connector's switch or token clears its remembered status.
Verified: tsc, eslint and the 18 connector-state tests pass. In Chrome, from a leftover "on" with no
token: a message names no connectors and shows no error; after pasting a token, closing and reopening,
and switching on, the request names the connector with its token, the server reports it reached with
1 tool, and the approval card appears.
Refs #128
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012XdQQNTxj4XzvBoLxynDRu1 parent e05957b commit eaae356
3 files changed
Lines changed: 29 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
230 | | - | |
231 | | - | |
232 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
56 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
123 | 131 | | |
0 commit comments