Repository navigation
Show the server's reason when a page action is refused - #444
Merged
Merged
Conversation
The shell's request helpers read only {error}; FastAPI's HTTPException answers
{detail} (a list of {msg} for a validation error), so a refused Inbox Grant or
Resume said "HTTP 400". errText() now reads error, then detail, then falls back
to the status. Pages restamped for the new codec-shell.js.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
A refused page action (an Inbox Grant, Resume or Pause the agents routes turn down) showed "HTTP 400": the shell's
postJSONread only{error}, while FastAPI'sHTTPExceptionanswers{detail}. Found in the Mac merge pass (docs/known-issues.md).errText(d, status)instatic/codec-shell.jsreadserror, thendetail(joining themsgof a validation list), then falls back toHTTP <status>. Used bypostJSONand the shell's other JSON request helper. Pages restamped (tools/stamp_static.py).Checks
tests/test_shell_error_reason.py: both helpers use it; under node, error / detail / validation list / empty / no body give the right text. Negative control on main's shell: 2 failed.node --checkclean, stamps current.Deploy
Restart
codec-dashboard(serves the new shell).🤖 Generated with Claude Code