Skip to content

fix(app): keep a waiting question marked until the host hears its answer, on every browser - #679

Merged
iamnbutler merged 3 commits into
mainfrom
fix-needs-you
Oct 23, 2026
Merged

iamnbutler merged 3 commits into
mainfrom
fix-needs-you

Conversation

@iamnbutler

Copy link
Copy Markdown
Contributor

A run waiting on a question now keeps its raised hand (sidebar, Dashboard channel rows, palette's Needs you) until it is answered, not until the channel is opened, and a new browser or phone shows questions that were already waiting.

  • packages/channel: the question tool's onAsk also fires when its wait ends with the run still going (answer, skip, or a queued message instead), and the channel publishes that as a new RunEnd outcome, answered. An aborted wait publishes nothing extra; the run's end already does.
  • apps/app/src/attention.ts: a pending question comes from the host's ran alone, ignoring this profile's since and seen. Notifications still skip a question that predates the profile or was seen while it waited, so a new browser lists it without notifying.
  • docs/architecture.md updated.

Map: ^614 (See which runs need you), ^387 (See a channel that needs you), ^577 (See Needs you on the Dashboard).

Smoke test, run against an isolated bun ace serve --loopback with a real openai/gpt-5.4-mini run and fresh headless Chromium profiles:

  • A question was asked before the browser profile existed. The new profile showed the hand on first load. It still showed on the Dashboard after opening the channel and returning.
  • After ace answer, the host's ran read answered while the run was still busy (sleep 40), and the Dashboard showed no hand. When the run ended, ran read done.

Built in Ace

No. A Claude Code fix-train worker made this outside Ace: it edited in a lane, ran checks in a terminal, and smoke-tested with headless Playwright against an isolated host. The fix train runs agents in parallel from one board, which Ace doesn't drive yet. #5

…wer, on every browser

The channel publishes an answered run state when a question's wait ends with the run still going, and the app reads a pending question from that host state instead of from when this browser profile first visited or last opened the channel.

Why: apps/app/src/attention.ts#function pending | a question is pending from the host's ran outcome alone (question until answered/done/failed/stopped), never from this profile's since or seen
Why: packages/channel/src/questions.ts#class Questions | onAsk hears answered when the tool's wait resolves (answer, skip or a queued message), never on abort, which the run's end already publishes
@iamnbutler
iamnbutler merged commit a0df423 into main Oct 23, 2026
1 check passed
@iamnbutler
iamnbutler deleted the fix-needs-you branch October 23, 2026 12:24
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.

1 participant