Skip to content

fix(tools): content_read returns graceful not-found on 404 instead of error - #74

Merged
anfibiacreativa merged 1 commit into
mainfrom
fix/content-read-graceful-missing-file
Aug 19, 2026
Merged

fix(tools): content_read returns graceful not-found on 404 instead of error#74
anfibiacreativa merged 1 commit into
mainfrom
fix/content-read-graceful-missing-file

Conversation

@anfibiacreativa

Copy link
Copy Markdown
Member

Reading a file that doesn't exist (e.g. probing an optional workflow/approvals JSON when the backing MCP server isn't wired) returned { error, status: 404 }, which the client renders as a red OUTPUT-ERROR badge. Treat 404 as a graceful not-found result ({ content: null, found: false, status: 404 }, no error field) so absence reads cleanly and non-404 failures still surface as errors.

… error

Reading a file that doesn't exist (e.g. probing an optional workflow/approvals
JSON when the backing MCP server isn't wired) returned { error, status: 404 },
which the client renders as a red OUTPUT-ERROR badge. Treat 404 as a graceful
not-found result ({ content: null, found: false, status: 404 }, no error field)
so absence reads cleanly and non-404 failures still surface as errors.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@anfibiacreativa
anfibiacreativa requested a review from mhaack August 18, 2026 07:15
@anfibiacreativa
anfibiacreativa merged commit ce019b9 into main Aug 19, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.30.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants