Repository navigation
feat(mcp): let an env flag stop task feedback riding on tool results (CHE-2367) [squash] - #1
Merged
Merged
Conversation
…x-luna/che-2367-47c7a9222dac
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.
Status
Draft. Patch P-a of Multica slice 1c (CHE-2199, plan rev-14). Base:
cheese/mainataa04e959bb9dfef75e0abfb6145bb491f817807a.Conditions
tests/env.test.ts("documents every declared variable in .env.example") until.env.examplehas a line forDOOP_MCP_FEEDBACK_PIGGYBACK. The authoring runtime is not allowed to edit.env.example. Another runtime adds that line as a commit on this branch.Change
DOOP_MCP_FEEDBACK_PIGGYBACK, default on. Set it to0andwithFeedbackinserver/mcp.tsadds no task feedback to tool results.get_feedbackstill claims feedback when called.set_frame_htmlclaims 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:
Green, after the code change:
bun run typecheckis clean.tests/mcp-tools.test.ts,tests/mcp-comments-write.test.tsandtests/mcp-comments.test.tspass. The lint-staged hooks (oxlint, eslint, prettier) pass on the commit.