Skip to content

Playbooks: progress shows the current step #791

Open

Description

@bryantderosier

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.tsx counts completedSteps/total (:96-102) and shows the playbook's title (:71-73).
    • Its mini bar is at :103-121, and the expanded list with aria-current at :163-208.
    • Its data comes from PlaybookComposerControl.tsx:15-49, which uses j5Environment.playbooks (PlaybookStore.listForThread, :768-774) plus the playbookChanges subscription (packages/client-runtime/src/j5/state.ts:137-147,208).
  • Shared logic. presentPlaybook in packages/client-runtime/src/j5/playbooks.ts:290-351 already builds "Step N of M" (:301) and currentTitle, but only uses them in the aria-label.
  • Mobile. apps/mobile/src/j5/playbooks/PlaybookComposerControl.tsx:24-200 has the same completedSteps/total at :104-108, mounted at ThreadDetailScreen.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 mobile ThreadDetailScreen.tsx:1190). That's fine: those are upstream's own prompts, and J5 asks don't hide the bar.
  • Open asks.
    • HumanInboxItem has senderThreadId and 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.openAsks counts 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.
  • PlaybookProgress carries 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 presentPlaybook and 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.md AC6 is rewritten.

Out of scope

Activity

  1. added
    enhancement
    on Oct 29, 2026
  2. changed the title [-]Playbooks: approval checkpoints[/-] [+]Playbooks: progress shows the current step[/+] on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions