Skip to content

Session Chat: Running and Done tabs in the background work panel #966

Closed

Description

@ivanfenenko

Follow-up to #904 and #907. In a long session the background work panel lists every subagent the session ever ran. Finished ones push running ones down and every row looks the same, so the work in progress is hard to find.

A prototype compared four layouts: folded history, Running / Done tabs, timeline lanes, and recent chips. Running / Done tabs won.

Scope

  • Tabs: a segmented control at the top of the panel, Running N | Done N.
    • The panel opens on Running.
    • Running holds subagents that are running or waiting for input, plus running shells.
    • Done holds finished, failed and stopped subagents, newest first.
    • Running is empty: show "Nothing running. Finished work is under Done."
    • Done gets a dot when a subagent finishes after you last viewed the tab. Viewing it clears the dot. The dot is in-memory state for the open Session Chat.
  • Row data:
    • The task title leads the row. Drop the repeated agent letter avatar and the "general" name. Show the agent name as a small tag only when it isn't general.
    • Running row: spinner, title, and a live elapsed timer. No "running" word. A subagent waiting for input keeps the existing amber state.
      • Show the current step (the latest child tool call, e.g. "Editing TimelineRow.swift") and the tool call count only when the task part carries metadata.summary. Only v1 1.1.x and older sends it; current v1 (1.19) and v2 don't. Make no extra requests for them.
    • Done row: ✓ or ! icon, title, a one-line result, the real run duration, and when it finished ("4m ago"). Failed or stopped rows show the reason as the result line, in the error colour.
    • Fix done rows that show 0:00: use the task part's start and end times, and hide the duration when it is unknown instead of showing zero.
  • Data source: use the task tool part in the parent session, without loading the child session.
    • Current step and count come from metadata.summary when it's present. Don't load the child session to fill them in.
    • The result is the first line of the task output.
    • Check what v1 and v2 actually send. Where a field is missing, leave that bit of the row out instead of faking it.
  • Tapping a row still opens the child session. Shells keep their rows and the output view.
  • Both platforms. Product types only: the Screen Model maps wire data into row fields.

Acceptance

  • Running / Done tabs and the new rows on iOS and Android.
  • Unit tests:
    • Tab split.
    • Done dot.
    • Row mapping: step and count with and without a summary, result, duration, unknown duration, agent tag.
    • v1 and v2 task metadata parsing.
  • Verified in the real apps against the scenario harness on v2 subagent scenarios, with screenshots for both platforms. v1 is covered by unit tests only, since no v1 build is available for the harness.

Activity

  1. added
    enhancement
    ios
    android
    priority: medium
    on Nov 2, 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: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions