Repository navigation
fix(script): make watch-user-replies.sh actually fetch comments - #407
Merged
Merged
Conversation
gh api has no --arg flag, so every per-thread fetch failed with "unknown flag: --arg" and the watcher silently reported nothing. Splice the digits-only issue number into the --jq program instead. A failed fetch is no longer silent: --seed exits 1 instead of seeding a partial set, and a watch cycle with a failed thread prints a WATCH FETCH FAILED line on stdout so Monitor surfaces it. The spec now drives --once / --seed through a gh stub that rejects flags the real CLI lacks; the four new cases fail on the old script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ycpss91255
enabled auto-merge (squash)
September 29, 2026 03:07
CI lint flags $stderr (set by bats run --separate-stderr) as SC2154. Assert on the combined output instead, and also pin the abort message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #406
Summary
watch-user-replies.shnever fetched a single comment:gh apihas no--argflag, so every per-thread call failed withunknown flag: --arg, and the failure only reached stderr, where Monitor does not look. This PR fixes the fetch, makes fetch failures visible, and commits the script and its spec (both were previously untracked).--jqprogram (validated with^[0-9]+$before use).--seedexits 1 without seeding when any thread cannot be read (a partial seed would re-announce history later).WATCH FETCH FAILED: <failed> of <total> thread(s) unreadable this cycleon stdout.Test plan
not ok 11-14), run in the test-tools imagewatch_user_replies_spec.bats20/20 against the fix, in the test-tools image--seedagainst ycpss91255/worktool now marks 5 ids seen (was 0 with every fetch failing)ci-passedgreen (full unit / integration / coverage)Generated with Claude Code