Skip to content

feat(mcp): let an env flag stop task feedback riding on tool results (CHE-2367) [squash] - #1

Merged
congvc-dev merged 3 commits into
cheese/mainfrom
cheese/p-a-feedback-piggyback
Oct 29, 2026
Merged

congvc-dev merged 3 commits into
cheese/mainfrom
cheese/p-a-feedback-piggyback

Conversation

@congvc-bot-x99

Copy link
Copy Markdown

Status

Draft. Patch P-a of Multica slice 1c (CHE-2199, plan rev-14). Base: cheese/main at aa04e959bb9dfef75e0abfb6145bb491f817807a.

Conditions

  • CI will fail tests/env.test.ts ("documents every declared variable in .env.example") until .env.example has a line for DOOP_MCP_FEEDBACK_PIGGYBACK. The authoring runtime is not allowed to edit .env.example. Another runtime adds that line as a commit on this branch.
  • Needs a cross-lab review. Cheese merges.

Change

  • New env flag DOOP_MCP_FEEDBACK_PIGGYBACK, default on. Set it to 0 and withFeedback in server/mcp.ts adds no task feedback to tool results.
  • get_feedback still claims feedback when called.
  • Reason (D23): a mutating tool call such as set_frame_html claims all undelivered feedback addressed to the agent or untargeted. An agent that did not ask for feedback takes it silently.

Evidence

Test file tests/mcp-feedback-piggyback.test.ts, written first.

Red, before the code change:

× leaves task feedback unclaimed when set to 0
Tests  1 failed | 2 passed (3)

Green, after the code change:

Tests  3 passed (3)

bun run typecheck is clean. tests/mcp-tools.test.ts, tests/mcp-comments-write.test.ts and tests/mcp-comments.test.ts pass. The lint-staged hooks (oxlint, eslint, prettier) pass on the commit.

@congvc-bot-x99 congvc-bot-x99 Bot changed the title feat(mcp): let an env flag stop task feedback riding on tool results [squash] feat(mcp): let an env flag stop task feedback riding on tool results (CHE-2367) [squash] Oct 28, 2026
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review October 28, 2026 19:05
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as draft October 29, 2026 01:51
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review October 29, 2026 02:25
@congvc-dev
congvc-dev merged commit 2b030d7 into cheese/main Oct 29, 2026
10 checks 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.

1 participant