Skip to content

feat(session-ui): group adjacent reads into one row - #52207

Merged
Hona merged 1 commit into
anomalyco:v2from
Hona:group-read-rows
Sep 30, 2026
Merged

Hona merged 1 commit into
anomalyco:v2from
Hona:group-read-rows

Conversation

@Hona

@Hona Hona commented Sep 30, 2026

Copy link
Copy Markdown
Member

Adjacent reads now render as one comma-separated row: Read index.tsx, main.ts, rpc.ts. Thoughts, shells, and other tools still split the runs, so the order stays chronological.

  • The grouping is automatic. It works inside a Used group, and also when tools render outside one (the everything preset). It has no timeline detail setting.
  • Each file keeps its details (connection.ts limit=120) and uses the same title, filename, and arg colors as the single-read rows.
  • A long row truncates with an ellipsis. Only a truncated row can be clicked: click, Enter, or Space wraps it in place to show every file. The open state is persisted like other tool rows.
  • Image reads, reads that loaded instruction files, and failed reads keep their own rows.
flowchart LR
  A[read a.ts] --> G1["Read a.ts, b.ts limit=120"]
  B[read b.ts limit=120] --> G1
  T[thought] --> T1[Thought 4s]
  C[read c.ts] --> G2["Read c.ts"]
  I[read logo.png] --> I1["Read logo.png (own row, image preview)"]
Loading
Before After
Inside Used
Without a Used group

Narrow width, with one row expanded and one row hovered:

Fixture: OpenCode/Work/Read group (packages/session-ui/src/tools/read-group.stories.tsx) reproduces the reported 65-tool turn. It has a width control.

Copilot AI balanced review requested due to automatic review settings September 30, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Hona
Hona merged commit 1b02abc into anomalyco:v2 Sep 30, 2026
10 checks passed
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants