Repository navigation
fix(core): skip an oversized MCP event instead of pausing its watch - #65673
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
I found no blocking issues. On the base, the updated oversized-event tests time out because the watch pauses on the event. With this change, the event is recorded as skipped with its reason, the cursor moves past it and the watch stays active. Automation tests pass (71). tsc -b on the core package shows no errors outside the unrelated test/worktree.test.ts.
The skip writes the outcome and the new cursor in one update, and only while the watch is still active, so a watch paused at the same moment isn't advanced. Dropping the 16 KiB check from the shared stream means code actions now get the full event, which matches the description.
Public API is unchanged.
3 of 6 tasks
1 task
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.
Issue for this PR
Closes #
Type of change
What does this PR do?
An oversized MCP event paused its watch without moving the cursor past it, so resuming replayed the same event and paused again until the server stopped replaying it.
last_outcome: "skipped"with the reason and moves the cursor past it. The watch stays active.How did you verify your code works?
Updated the two oversized-event tests in
automation-event.test.tsto expect a skip and an advanced cursor. Automation tests pass (79) andbun run checkpasses.Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist