Skip to content

pr-watch: --all-open adopts foreign PRs and floods the prompt; bins called by versioned path #85

Closed

Description

@lx-0

Experience

  • Foreign PRs adopted: a coordinator ran ytstack-pr-watch register --repo <org>/<repo> --all-open. That registered every open PR, including another author's do-not-merge prototype. That PR was then injected as action_required 967 times.
  • Big blocks: single blocks reached 8.4k characters and 34 PRs per prompt, 151 distinct PRs in all. The block is re-sent whole when any line changes, which under load is almost every prompt.
  • status too wide: ytstack-pr-watch status printed 1,176 watches of all repositories and sessions.

Proposals

  1. register --all-open:
    • registers only PRs of the current user by default;
    • --author <login>[,<login>] widens the set;
    • skips drafts and PRs labelled do-not-merge unless --include-drafts / --include-labelled is given.
  2. A PR that stays unchanged and action_required for 24 h gets one line suggesting pause.
  3. The block lists only lines that changed since the last injection, plus "N unchanged".
  4. status shows the current session and repository by default; --all shows everything.

Also: bins are not on PATH

The coordinator called the bins by their versioned cache path (.../ytstack/0.7.0/bin/ytstack-frontier). After an update it kept calling the old version, and one call failed with exit 127. Proposal: the coordinate preamble (and the session-start notice) prints YT_BIN=<path of the running version's bin/>, and the skills use "$YT_BIN/ytstack-...". Alternatively, a stable ~/.ytstack/bin shim pointing at the active version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions