Repository navigation
Open
Labels
enhancementNew feature or request
Description
Item 6 of 9 in the Playbooks v2: one owner, flexible staffing milestone. It needs #788 and #790.
The problem
The bar above the chat box counts completed steps and shows the playbook's title. What I actually want at a glance is which step is happening now, and whether it's waiting on me.
Where this sits
This is section 8 of the Playbooks proposal (26 October), "Progress":
- The bar reads "Step 2 of 4 · Implement and review", and the full list expands.
- Waiting for approval shows while a checkpoint request (Playbooks: approval checkpoints #790) is open.
- Blocked shows while the owner has any other open request to a person.
- No new run state is added; both labels come only from open requests.
- The position is recorded progress, not proof that earlier work passed.
What we already have
- Web.
apps/web/src/j5/playbooks/PlaybookStages.tsxcountscompletedSteps/total(:96-102) and shows the playbook's title (:71-73).- Its mini bar is at
:103-121, and the expanded list witharia-currentat:163-208. - Its data comes from
PlaybookComposerControl.tsx:15-49, which usesj5Environment.playbooks(PlaybookStore.listForThread,:768-774) plus theplaybookChangessubscription (packages/client-runtime/src/j5/state.ts:137-147,208).
- Shared logic.
presentPlaybookinpackages/client-runtime/src/j5/playbooks.ts:290-351already builds "Step N of M" (:301) andcurrentTitle, but only uses them in the aria-label. - Mobile.
apps/mobile/src/j5/playbooks/PlaybookComposerControl.tsx:24-200has the samecompletedSteps/totalat:104-108, mounted atThreadDetailScreen.tsx:1190-1191. Desktop uses the web UI. - When the bar hides. It's unmounted while an upstream provider approval or user question is pending (
ChatComposer.tsx:4838-4839,6432, and mobileThreadDetailScreen.tsx:1190). That's fine: those are upstream's own prompts, and J5 asks don't hide the bar. - Open asks.
HumanInboxItemhassenderThreadIdand a status (packages/contracts/src/j5.ts:30-48).- The Inbox list is filtered per person (
HumanInboxService.ts:189-225), so a client can't tell from its own Inbox whether the owner has asks open to someone else. FleetAgent.openAskscounts replies the agent owes, not asks it made (j5.ts:388-389).
Proposal
- The server computes two flags when it reads progress for a run: an open checkpoint request, and any other open ask from the owner's thread to a person. Neither is stored.
PlaybookProgresscarries those flags and the current step's title.- The bar's progress read follows the inbox revision as well as the playbook revision, so the labels update when an ask opens or closes.
Acceptance criteria
- The bar reads "Step N of M · <current step's title>", using the current position, not completed steps. The playbook's title moves to the expanded view.
- Expanding it shows the full step list with the current step marked, and the holder's name when someone other than the owner holds it (Playbooks: the owner hands each step to someone #788).
- Waiting for approval shows while the run's checkpoint request is open.
- Blocked shows while the owner's thread has any other open ask to a person.
- Both labels come from open requests only. There's no new run state, and they clear as soon as the request is answered or withdrawn, on every device, without a reload.
- Every person who can see the thread sees the same labels, whoever the ask was addressed to.
- Web, desktop, and mobile all match.
- No extra websocket traffic beyond the progress rows clients already receive, plus the flags, and no continuously running animation.
- Focused tests on
presentPlaybookand the server flags cover: the current-step label, Waiting for approval, Blocked, both cleared after an answer, and an ask from a different thread not counting. -
docs/j5/product/features/playbooks.mdAC6 is rewritten.
Out of scope
- Fleet's display of the holder, which is Playbooks: the owner hands each step to someone #788.
- Run history, which is Playbooks: each run keeps its own copy #795.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
[-]Playbooks: approval checkpoints[/-][+]Playbooks: progress shows the current step[/+]