Skip to content

Show the server's reason when a page action is refused - #444

Merged
AVADSA25 merged 1 commit into
mainfrom
inbox-error-reason
Oct 7, 2026
Merged

AVADSA25 merged 1 commit into
mainfrom
inbox-error-reason

Conversation

@AVADSA25

@AVADSA25 AVADSA25 commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What

A refused page action (an Inbox Grant, Resume or Pause the agents routes turn down) showed "HTTP 400": the shell's postJSON read only {error}, while FastAPI's HTTPException answers {detail}. Found in the Mac merge pass (docs/known-issues.md).

errText(d, status) in static/codec-shell.js reads error, then detail (joining the msg of a validation list), then falls back to HTTP <status>. Used by postJSON and 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.
  • PWA, Inbox and shell tests: 44 passed. node --check clean, stamps current.

Deploy

Restart codec-dashboard (serves the new shell).

🤖 Generated with Claude Code

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>
@AVADSA25
AVADSA25 merged commit 2e7e136 into main Oct 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants