Skip to content

tui: singleton activity subgroups add a redundant header around one-line Read rows #792

Open

Description

@agenteinstinct1-max

Problem

A one-line native Read row can acquire an extra Explored 1 file header and toggle inside a mixed activity run. This adds nesting and uses more space than the row itself.

Source diagnosis

At accepted 50d6a232bacf1e280ca576fcbf10f25efa3d74fa, packages/tui/src/routes/session/index.tsx groups a parent activity run when it has at least two tool calls, then computeActivitySubGroups in packages/tui/src/util/activity.ts splits that run by tool kind. A read followed by an edit can therefore produce two singleton subgroups, each with a summary header. The expanded marker is −, the collapsed marker is +; a visible indented Read row is already expanded. The Read renderer is an inline path row, not a file/image body preview, and does not use output line-count overflow collapsing.

Proposed narrow correction, pending approval

Render a singleton subgroup directly when the summary hides no useful additional content. Preserve multi-call grouping and genuinely hidden reasoning/content, native renderer behavior, stable streaming identity, manual toggles and global expand/collapse behavior. Exact UI behavior requires approval before implementation.

Current status

Source explanation is ready; no correction PR or implemented fix is claimed. Do not infer hidden session history or envelope validity from a cropped screenshot. No private screenshot or path is attached.

Activity

  1. added
    priority: medium
    on Nov 12, 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

    priority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions