Repository navigation
Commit 5dd8733
fix(provider-core): ACP auth-required failures tell the user to sign in
When an ACP agent rejected a session or turn with the auth_required error
(code -32000), the curated failure walk did not recognise it, so the thread
showed the wrapper "Failed to open acpRegistry provider session <id>." with
an internal id and no recovery step.
The walk now maps an AcpRequestError with code -32000, which the ACP schema
reserves for "Authentication required", to a fixed T3 message that names
how to sign in and to retry. The agent's own text stays hidden, as for the
other curated causes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent dfe923d commit 5dd8733
2 files changed
Lines changed: 14 additions & 11 deletions
File tree
- apps/server/src/orchestration-v2/testkit
- packages/provider-core/src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
196 | 191 | | |
197 | 192 | | |
198 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
121 | 129 | | |
122 | 130 | | |
123 | 131 | | |
| |||
0 commit comments