Skip to content

feat: persistent "waiting for your answer" marker for sessions with a pending ask_user - #385

Open
Zoz92 wants to merge 2 commits into
co-l:developfrom
Zoz92:feat/session-awaiting-answer-marker
Open

Zoz92 wants to merge 2 commits into
co-l:developfrom
Zoz92:feat/session-awaiting-answer-marker

Conversation

@Zoz92

@Zoz92 Zoz92 commented Sep 27, 2026

Copy link
Copy Markdown

feat: show a persistent "waiting for your answer" marker on sessions with a pending ask_user

A session blocked on an ask_user question was indistinguishable in the
sidebar from any other session with unread activity: the amber unread dot
disappears as soon as the session is opened, even though the agent is still
waiting for an answer. Only tool confirmations had a dedicated marker.

  • server: ask.ts tracks per-session awaiting state and notifies listeners on
    transitions (question asked / answered / cancelled)
  • server: broadcasts session.awaiting_answer to all clients, and exposes
    awaitingAnswer on session summaries (/api/sessions, /api/sessions/home)
    so the marker survives a reload
  • web: sidebar shows a pulsing amber marker "Waiting for your answer" that
    takes precedence over running/unread; homepage status dot treats a pending
    question like a pending confirmation

…with a pending ask_user

A session blocked on an ask_user question was indistinguishable in the
sidebar from any other session with unread activity: the amber unread dot
disappears as soon as the session is opened, even though the agent is still
waiting for an answer. Only tool confirmations had a dedicated marker.

- server: ask.ts tracks per-session awaiting state and notifies listeners on
  transitions (question asked / answered / cancelled)
- server: broadcasts `session.awaiting_answer` to all clients, and exposes
  `awaitingAnswer` on session summaries (/api/sessions, /api/sessions/home)
  so the marker survives a reload
- web: sidebar shows a pulsing amber marker "Waiting for your answer" that
  takes precedence over running/unread; homepage status dot treats a pending
  question like a pending confirmation
@github-actions github-actions Bot added the enhancement New feature or request label Sep 27, 2026
…iting-answer-marker

# Conflicts:
#	web/src/components/HomePage.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant