Repository navigation
Return a sanitized get_tasks error when task reads fail - #1142
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This branch was successfully deployed
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.
A rejected task selector escaped the standard MCP callback, allowing the SDK to expose the exception message. Return the existing getToolResultError("Failed to fetch tasks") body from the shared callback instead, without logging raw storage errors. Success, input schema and selector arguments remain unchanged; full OAuth still checks grant, scope and ownership before callback execution.
The established helper uses JSON text with success:false and does not set isError; this fix preserves that contract without changing the global helper. Three regression tests failed before the fix, including actual in-memory SDK exposure of a synthetic internal message. After the fix, all 36 focused tests across four files pass; OAuth typecheck, full lint, formatting and diff checks pass. Independent Standards review is clear; Spec review pending.
Restores only the controlled task-error outcome from API #297 under Mono #358. Startup/lazy-bot and provider-setup residuals remain separate; this does not close the entire original PR. Mocked storage only, with no live database, Redis, Slack, scheduling, credentials or provider operations. Coordinator owns merge.