Repository navigation
Conversation
…"Internal error" Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Closing: Paseo already shows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #139.
When a claude-tty request handler failed, Paseo showed only
Internal error, even though the adapter had thrown an error that said what went wrong.The adapter throws plain
Errors.@agentclientprotocol/sdkanswers any error that isn't aRequestErrorwith JSON-RPC-32603and the messageInternal error, and puts the real text indata.details. Some Paseo daemons dropdataentirely. Paseo 0.11.2 keeps it, but shows it behind the prefix:Internal error: Claude never took the prompt….What this changes
withRequestErrorsinsrc/request-errors.ts): it wraps the agent beforemain.tshands it to the SDK. When a handler throws, the error is rethrown as aRequestErrorwhose message is the error's own text. ARequestErrorthrown on purpose passes through unchanged. Because there is one wrap point, no throw site changed.-32603: Paseo 0.11.2 (providers/acp-agent.js) treats only-32602differently, using it for its set-model fallback. With nodataattached, it shows the message as-is.Verification
Session missing not found. Without the wrapper, the same test getsInternal error. Another test checks that aRequestErrorpasses through as it was thrown.claude-tty-acptypecheck is clean and 247 tests pass.Not covered