Skip to content

Session Chat: shells in the background work pill #907

Closed

Description

@ivanfenenko

Follow-up to #904. The Session Chat background work pill also counts shells the agent runs, with live output and Stop where the server supports them.

Server support: see the findings on #899 (#899 (comment)).

v1 v2
Background shells none (the bash tool is foreground only) shell tool with background: true
List running bash tool calls in the timeline GET /api/shell, plus shell.created, shell.exited and shell.deleted events
Output state.metadata.output on message.part.updated (last 30,000 characters) polling GET /api/shell/:id/output
Stop one shell not possible (session abort only) DELETE /api/shell/:id

Open product decision: what to show on v1, so the UI stays the same for both protocols. The options:

  • hide the Shells section on v1
  • list running bash calls with live output and no Stop, the same way on both protocols, with Stop only where supported

Remaining:

  • Decide v1 behaviour
  • Add the shell routes and events to the API contract and domain adapters (v2)
  • Shells section, output sheet and Stop on iOS and Android

Activity

  1. added
    enhancement
    ios
    android
    backlog
    priority: low
    on Oct 31, 2026
  2. ivanfenenko commented on Nov 1, 2026

    @ivanfenenko
    CollaboratorAuthor

    Decision: v1 behaviour

    Show the Shells section on both protocols. Stop appears only where the server supports it.

    • One product type behind the domain adapters (Background Shell: id, command, running or exited, output, can stop). Feature code and Screen Models do not branch on protocol.
    • v1: built from running bash tool calls (message.part.updated), with output from state.metadata.output. No per-shell Stop; aborting the session still works as today.
    • v2: GET /api/shell plus shell.created, shell.exited and shell.deleted events. Output comes from polling GET /api/shell/:id/output, only while the output sheet is open and the app is in the foreground. Stop calls DELETE /api/shell/:id.
    • Where Stop is not supported, it is hidden, not disabled.
    • Accepted difference: v1 shells only exist while the agent's turn runs, so the section is short-lived there. v2 background shells can outlive the turn.
  3. removed
    backlog
    on Nov 1, 2026
  4. added a commit that references this issue on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidenhancementiospriority: low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions