Skip to content

goal: add Copy/View full to the pill menu and keep the objective readable after Clear #61333

Open

Description

@magiccodelab

Description

The goal pill is the only place that shows the full goal objective, but its popover heading is clamped to three lines and the menu has no Copy or "View full" action. Clearing the goal deletes the goal state, hides the pill, and leaves the truncated timeline notice as the only record.

Steps to reproduce

  1. Run /goal <long objective>.
  2. Click the Goal / Goal met pill above the composer.
  3. Observe the three-line heading; try to copy the full objective or find a copy action.
  4. Click Clear.
  5. The pill disappears. The timeline still shows only Goal: <truncated>.

Expected

  • A Copy action copies the complete objective.
  • A "View full" action or scrollable view shows the complete objective.
  • Clearing the goal does not remove the only readable copy; the transcript should stay self-sufficient.
  • Clear should ask for confirmation, since it is destructive.

Actual

  • The heading uses line-clamp-3 at 11px in a 320px popover.
  • The menu only offers Pause, Resume, and Clear.
  • Clear removes the goal state; the full objective remains in messages[0].text but has no UI entry point.

Root cause

  • packages/app/src/session/composer/plugin-pills.tsx:110-119: generic popover header with w-80, text-[11px], and line-clamp-3.
  • packages/gui-plugins/src/goal/renderer.tsx:94-112: menu only has Pause, Resume, and Clear.
  • packages/core/src/plugin/goal.ts:374-383: clear writes undefined to the goal storage.

Additional context

Built-in goal plugin (#59437). The same objective is also hidden in the timeline; see #61332.

Environment

  • OpenCode Desktop v2.2.5 (source checkout 1bf08ae; Desktop and web share the same packages/app renderer).
  • Windows desktop app.
  • No third-party plugins; this is the built-in goal plugin.

Activity

  1. opencodejr commented on Nov 3, 2026

    @opencodejr

    Thanks for the detailed write-up! You're asking for the goal pill to let you copy and view the complete objective, for the objective to stay readable in the session after Clear, and for Clear to ask for confirmation first. Right now the popover clamps the heading to three lines and the menu only has Pause, Resume and Clear, so this is a feature request for the goal UI rather than a bug. Maintainers will consider it.

    Related:

  2. magiccodelab commented on Nov 3, 2026

    @magiccodelab
    Author

    #60001 covers the display side of the popover (the objective leads, and long objectives scroll), so the three-line clamp may be resolved there. The parts this issue still needs are the Copy action and keeping the objective readable after Clear; as far as I can tell #60001 does not address either.

    If #60001 lands first, this can be narrowed to those two items.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions