Skip to content

feat(tui): show parked worker questions on the prompt box - #1389

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-10200-make-parked-worker-ask_director-questions-visible-and
Oct 13, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-10200-make-parked-worker-ask_director-questions-visible-and

Conversation

@bwachman

Copy link
Copy Markdown
Contributor

Summary

  • Shows a persistent WORKER WAITING strip directly above the prompt whenever a worker is parked on ask_director. It names the waiting worker, shows a width-safe preview of the question, says the director must reply via send_input, and adds (+N more) for other parked workers.
  • Drives the strip only from the fleet's agent-ask pending-ask snapshot. Identity is sessionId + questionId; an item disappears only when a later snapshot omits it, and the strip clears on session rotation, stop and teardown.
  • The strip is display-only. Composer input still goes to the director, and the strip never answers or clears a worker's ask. Wake scheduling, send_input, ask_director and stall policy are unchanged, and ask_operator prompts stay separate.
  • Documents the strip in docs/TUI.md.

Verification

  • bun run check passes (lint, typecheck, dead exports, build, full test suite: 8610 pass, 0 fail)
  • Tests cover the view model, chrome placement at full and narrow widths in both themes, repaint invalidation, and wake integration, including that composer submits and ask_operator or permission gates never activate or clear the strip

Fixes CL-10200

@linear-code

linear-code Bot commented Oct 10, 2026

Copy link
Copy Markdown

CL-10200

@bwachman
bwachman force-pushed the cl-10200-make-parked-worker-ask_director-questions-visible-and branch from 9129ee2 to a05f1ab Compare October 11, 2026 02:19
@bwachman
bwachman force-pushed the cl-10200-make-parked-worker-ask_director-questions-visible-and branch from a05f1ab to b72ebc9 Compare October 11, 2026 15:28
Comment thread docs/TUI.md Resolved

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Display-only WORKER WAITING strip verified end-to-end — snapshot lifecycle, identity, teardown clears, and the no-interference invariant all confirmed (180 targeted tests green). One doc nit: the example strip omits the (send_input) hint the full-width tier renders. Everything else is clean.

@bwachman
bwachman force-pushed the cl-10200-make-parked-worker-ask_director-questions-visible-and branch from b72ebc9 to 108bae6 Compare October 13, 2026 00:50
@TheGreatAxios
TheGreatAxios merged commit c40bef5 into main Oct 13, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants