Repository navigation
fix(pm-stack): prompts appear at once, board-sync links are not replies, and five review findings - #12454
Conversation
…es, and five review findings Found on the host - A prompt sent a second ago was missing from Ask: the list came from GitHub's search index, which runs about a minute behind. It is read from the issue list now. - The board-sync bot's link comment counted as the fleet answering, so a new prompt showed "Answered" and would have raised a notification. Bot comments are not replies. Review findings on #12452, all real - doc/fleet-schedule-registry.md lists pm-console-expose.timer and the console's two process loops. - scripts/demo.ts exits 2 on any argument it does not take. - Choices ticked on a many-answer question survive a background redraw. - "Accept all recommended" sends at most 200 answers a request (the dashboard takes 256), so a large set is accepted whole. - A prompt thread past 100 comments is read from its last page. Tests: 57 bun tests; the new cases cover a 450-question set, a 250-comment thread and a bot comment. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0079303ab
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const page = Math.max(1, Math.ceil(i.comments / 100)); | ||
| const comments = ( | ||
| (await this.ops.gh([`repos/${this.repo}/issues/${i.number}/comments?per_page=100&page=${page}`])) as { |
There was a problem hiding this comment.
Read preceding pages when the final page lacks replies
For a thread with 101 comments where comment 100 is a fleet answer and comment 101 is a board-sync bot message, fetching only page 2 and filtering bots produces no replies. This overwrites the cached conversation and changes an open, unclaimed prompt from answered to waiting or queued; the reply notifier also cannot see the answer. Even without bots, crossing a page boundary reduces the displayed conversation from six replies to one. Read preceding pages until six non-bot replies have been collected or the thread's beginning is reached.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Real. Fixed on the next branch (commit 4c87fe0): replies are read from the last page backwards, up to three pages, until six non-bot replies are in hand; tested with a 101-comment thread whose last page is only the bot, and a 250-comment thread.
Generated by Claude Code
…he Phones screen follows the link through - A prompt thread whose last page held only a bot's link (or fewer than six replies) lost its answer and fell back to "waiting". Replies are now read from the last page backwards, up to three pages, until six are in hand. Found by review on #12454. - Phones: the approval card says to approve only after tapping the widget on this phone; once the phone has collected its token the card goes away and the phone appears in the list when the app is shown again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
What
Two defects found by using the app on the host, and the five findings Codex left on #12452.
Found on the host
Review findings, all real
doc/fleet-schedule-registry.mdlistspm-console-expose.timerand the console's two process loops.scripts/demo.tsexits 2 on any argument it does not take.Evidence
cd pm-stack/console && bun testunknown-questionfrom the dashboard, so the answer path and its token work and nothing changed; a real prompt became #12453 with its task first in the queue at priority 10Undo
Revert this PR.
Refs #12452.
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.