Skip to content

Return a sanitized get_tasks error when task reads fail - #1142

Merged
sidneyswift merged 1 commit into
mainfrom
codex/get-tasks-controlled-error
Oct 25, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/get-tasks-controlled-error

Conversation

@sswiftdrtv

Copy link
Copy Markdown
Contributor

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.

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 25, 2026 5:04am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

1 active deployment
Preview — 6d3abb46 Deployed Oct 25, 2026 by vercel[bot]
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