Skip to content

fix(pm-stack): prompts appear at once, board-sync links are not replies, and five review findings - #12454

Merged
dezren39 merged 1 commit into
mainfrom
claude/pm-app-fixes
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/pm-app-fixes

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What

Two defects found by using the app on the host, and the five findings Codex left on #12452.

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, 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.

Evidence

Check Result
cd pm-stack/console && bun test 57 pass; new cases cover a 450-question set, a 250-comment thread and a bot comment
On the host after #12452 the app serves its core document in 14 ms warm; a probe answer to a question id that does not exist came back unknown-question from 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 10

Undo

Revert this PR.

Refs #12452.


Generated by Claude Code


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 06:39
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 089b5987-a3ea-415a-bd9c-70b5702abbf4
Commits

Reviewing files that changed from the base of the PR and between 310bae5 and b007930.

Files selected for processing: 5

  • doc/fleet-schedule-registry.md
  • pm-stack/console/public/app.js
  • pm-stack/console/scripts/demo.ts
  • pm-stack/console/src/work.ts
  • pm-stack/console/test/work.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T06:41:02.329540Z b007930 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +457 to +459
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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@dezren39
dezren39 merged commit acb85da into main Nov 22, 2026
2 checks passed
@dezren39
dezren39 deleted the claude/pm-app-fixes branch November 22, 2026 06:41
dezren39 pushed a commit that referenced this pull request Nov 22, 2026
…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
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