Skip to content

fix(watch-pr): keep fork PRs out of a watched stack; strip control characters from review text - #24

Merged
backnotprop merged 1 commit into
backnotprop:mainfrom
olibaron:fix/watch-pr-fork-children-terminal-text
Nov 20, 2026
Merged

backnotprop merged 1 commit into
backnotprop:mainfrom
olibaron:fix/watch-pr-fork-children-terminal-text

Conversation

@olibaron

Copy link
Copy Markdown
Contributor

Why

cursor/plugins#1193 reports two gaps in watch-pr. Both are still on this mirror's main, 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 for statechart on Windows.

  • orderStack builds its children map from every open PR. byHead and visit() 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.
  • threadLine prints 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

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

…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>
@backnotprop

Copy link
Copy Markdown
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.

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