Skip to content

Voice mode: add session awareness and session navigation #329488

Closed

Description

Problem

Voice mode does not have enough application/session context to reliably answer questions such as:

  • What session am I in?
  • How many sessions are running?
  • Is the agent still working?
  • Which model and attachments are selected?
  • Can you switch to another session or start a new one?

This also makes session-changing requests easy to misroute as ordinary chat prompts.

Desired behavior

  • Ground voice interactions with the active target plus recent agent and chat sessions.
  • Include session type, label, work state, selected model, attachment names/count, recent activity, and a short response summary.
  • Let a spoken session-focus action both reveal the requested session and retarget subsequent voice turns.
  • Treat "start a new session" as an application action, not as a question to answer or text to submit to the current coding session.
  • Return structured errors when a session cannot be found or shown.

Implementation split

Frontend — #329493

  • Enrich the voice session context and get_session_info result.
  • Include agent and regular chat sessions, with counts and truncation metadata.
  • Make focus_session update the persistent voice target only after navigation succeeds.
  • Keep the implementation independent of the chat input window work.

Voice backend

  • Consume the added session context fields.
  • Use get_session_info for status/count questions instead of guessing.
  • Route session creation and focus requests to frontend actions.
  • Acknowledge navigation only after an { "ok": true } result.

Related work

The voice-persistence and response-playback bugs are being addressed separately in #329441 and #329451; this feature should not depend on those PRs.

Activity

  1. added
    feature-request
    on Aug 6, 2026
  2. DonJayamanne commented on Aug 31, 2026

    @DonJayamanne
    Contributor

    What session am I in?

    Open Agents Window

    • Create new session
    • Use void mode and ask it to creaet a new session to add number 1 and 5
    • Wait for the new session to get created and wait for turn to complete
    • Select another chat session
    • Use void mode to ask what session am i in right now
    • Response: You're in the chat session to add two numbers (this is wrong)
    • Switch to any session and ask the same question, the response for the void request is the same, it keeps thinking i'm in the same add two numbers session

    How many sessions are running?

    ✅

    Is the agent still working?

    ✅

    Which model and attachments are selected?

    ✅

    Can you switch to another session or start a new one?

    Failed, #329490

  3. meganrogge commented on Aug 31, 2026

    @meganrogge
    CollaboratorAuthor

    I can reproduce

  4. added
    verification-needed
    on Sep 3, 2026
  5. pwang347 commented on Sep 4, 2026

    @pwang347
    Contributor

    Verification failed on macOS with Code OSS Dev 1.137.0 at 55af5cecaa4dd821e366537461b01e95cf4a1b33 against the hosted Voice Mode backend.

    What passed:

    • After manually selecting Alpha and then Beta, "What session am I in right now?" correctly reported the selected session each time.
    • "Start a new session" opened a fresh composer through the structured frontend action.

    What still fails:

    • Alpha and Beta both existed as recent completed sessions. From Beta, "What sessions can you switch to?" said Beta was the only open session.
    • "Switch to the session labeled Reply with exactly session alpha" was transcribed correctly but did not emit focus_session, did not navigate, and answered that Alpha could not be found.
    • Gamma transitioned to idle at 19:39:14Z; a status question recorded at 19:39:26Z still answered that one session was working.
    • The same response reported two total sessions although Alpha, Beta, and Gamma were all recent sessions. No get_session_info tool call was recorded for these state/navigation questions.

    Adding verification-found; not marking verified.

  6. added
    verification-found
    on Sep 4, 2026
  7. added
    verified
    and removed
    verification-found
    on Sep 4, 2026
  8. meganrogge commented on Sep 4, 2026

    @meganrogge
    CollaboratorAuthor

    Marking as verified and opening what you found as a follow up

  9. locked and limited conversation to collaborators on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverification-neededverifiedvoice-mode

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions