Skip to content

desktop: long activity group label ("Used … tools") overflows the timeline and is clipped without ellipsis #66820

Done

Description

@opencode-agent

What happens

In the desktop app (New timeline), a collapsed activity group whose label lists many tools runs past the right edge of the timeline and is hard-clipped mid-word, with no ellipsis and no wrap:

Used 274 Shell, Read, Write, Execute, Skill, browser.tabs.open, browser.wait, browser.evaluate, browser.find, browser.screenshot, browser.console, browser.relo|

The text runs under the scrollbar and is cut at the container edge.

Expected

The label stays inside the row: the detail truncates with an ellipsis (the full text is already on the trigger's aria-label, and could go in a title tooltip).

Where

  • Label built in packages/session-ui/src/timeline-next/tools/activity-label.ts (tool mode joins every distinct tool name into main, so there's no length bound).
  • Rendered in packages/session-ui/src/timeline-next/tools/context-group.tsx (context-tool-group-title / context-tool-group-detail).
  • timeline-next.css already gives context-tool-group-detail min-width: 0; overflow: hidden; text-overflow: ellipsis, and message-part.css gives the title min-width: 0, yet no ellipsis renders. So some ancestor between collapsible-trigger and context-tool-group-trigger (likely in BasicTool's trigger wrapper) isn't letting the row shrink below its content width.

Possible extra: cap the listed tool names (e.g. first few, then "+N more") as edit mode already does for files.

Repro

Run a session that calls many distinct tools in one stretch (e.g. a browser-heavy task), collapse the group, and look at its label in a normal-width desktop window.

Reported by Brendan via Slack.

Activity

  1. added
    web
    on Nov 27, 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

    web

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions