Repository navigation
fix(watch-pr): keep fork PRs out of a watched stack; strip control characters from review text - #24
Merged
backnotprop merged 1 commit intoNov 20, 2026
Conversation
…aracters from review text Carries cursor/plugins#1194 as a community fix until Cursor ships it (cursor/plugins#1193). - orderStack built its children map from every open PR, so a PR opened from a fork against a stack branch joined the watched stack and its review threads reached the agent. Fork PRs are now skipped there, as byHead and visit() already skip them. - threadLine printed review paths, authors and comment bodies as-is, so ANSI escapes or a carriage return could rewrite the watcher's output. C0 and C1 control characters are now stripped before printing. Co-authored-by: Mangesh Raut <mbr63@drexel.edu> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Merged as a community fix, thank you @olibaron. I fixed the README line count by hand, since the #17 patch left today: Cursor fixed statechart on Windows upstream in 0.15.46. When Cursor merges cursor/plugins#1194, the mirror will switch to their version on the next sync. |
backnotprop
added a commit
that referenced
this pull request
Nov 20, 2026
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.
Why
cursor/plugins#1193 reports two gaps in
watch-pr. Both are still on this mirror'smain, and the upstream fix, cursor/plugins#1194, has been open since 2026-11-08. MIRROR.md lets the mirror carry a bug fix as a community fix until Cursor ships it, as it did forstatecharton Windows.orderStackbuilds itschildrenmap from every open PR.byHeadandvisit()already refuse fork heads, but a PR opened from a fork against a stack branch still joins the watched stack, and its review threads reach the agent.threadLineprints review paths, authors, and comment bodies as they are. An ANSI escape or a carriage return in a comment can rewrite or hide lines of the watcher's output.What changed
github.ts: fork PRs are skipped when buildingchildren.render.ts: C0 and C1 control characters are stripped from the path, author, and first comment line before printing.README.md: the fix is listed under "What this mirror changes".The four code and test files are cursor/plugins#1194's
pstack/changes, applied unchanged at this mirror's paths and credited to its author.Verification
In
skills/poteto-mode/scripts:bun test watch-pr: 56 pass, 0 fail.bun run typecheck: clean.🤖 Generated with Claude Code