GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(app): redesign the goal pill by arvsrn · Pull Request #60001 · anomalyco/opencode

Conversation

@arvsrn

@arvsrn arvsrn commented Oct 28, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Issue for this PR

None. It follows #64577, the icon registry, and takes over the two parts of #60000 that are still needed: the pill's own popover has no host heading, and a pill's leading icon sits tighter. #60000 is closed.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Redesigns the goal plugin's composer pill and popover.

Pill

  • Labels read Following goal, Goal paused and Goal reached.
  • The goal draws its own glyphs. They are three SVG files the plugin declares (Plugin.define({ icons }), feat(plugin): let GUI plugins declare their own icons #64577) and names with ctx.icons:
    • active: an accent ring whose center dot sends out a ripple that fades as it spreads, then grows back (a 2.4s loop)
    • paused: a ring with a faded dot, in --v2-state-fg-warning (tone: "warning")
    • reached: a ring with a check, in --v2-state-fg-success (tone: "success")
  • The ripple is SVG animation inside icons/active.svg. The host keeps it running while the pill renders again.
  • Under reduced motion, the host holds the active glyph still on its ring and dot.

Popover

  • It leads with the objective. Long objectives scroll.
  • Once the goal has a reason, a full-width divider follows, then the colored status (Active, Paused or Finished) with the reason under it. Before the first review there's no reason, so the popover is just the objective and the actions.
  • Left-aligned buttons: Pause or Resume beside a red Clear. A reached goal offers only Dismiss, which clears it. They stay disabled while a command is in flight, as before.
  • The content adds 4px at the top and 8px elsewhere to the host's 4px inset, so it sits 8/12/12 from the edges.

The popover layout ships as plugin CSS through ctx.add(Style, …). The plugin's strings title and met are replaced.

Host changes carried over from #60000

  • For pills with menu, the host no longer draws title (or label) as a heading above the plugin's content. The host keeps the popover's frame, and title still names the popover for assistive technology.
  • A pill that starts with an icon sits it 8px from the edge with a 6px gap to the label, through one rule on the shared pill. This covers the activity, todo and plugin pills.

The goal itself still comes from the plugin's state machine (machine.ts); this PR only changes what the pill and popover draw.

How did you verify your code works?

  • bun typecheck in packages/gui-plugins and packages/app
  • oxlint, prettier and the gui-plugins ast-grep rules
  • In the app against this branch's server, with real /goal runs in a scratch session: active before the first review, paused with "Paused by the user", and reached with the reviewer's evidence and only Dismiss

Visual

<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none">
<style>
.r{animation:r 2.4s infinite;transform-box:fill-box;transform-origin:center}
.c{animation:c 2.4s infinite;transform-box:fill-box;transform-origin:center}
.p{animation:p 4.8s ease-out infinite;transform-origin:60px 34px}
@keyframes r{0%,16.7%{transform:scale(1);opacity:1;animation-timing-function:cubic-bezier(.2,.6,.35,1)}91.7%,100%{transform:scale(2.8);opacity:0}}
@keyframes c{0%,16.6%{transform:scale(1);opacity:1}16.7%,33.3%{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}75%,100%{transform:scale(1);opacity:1}}
@keyframes p{0%,10%{opacity:0;transform:translateY(4px) scale(.97)}22%,84%{opacity:1;transform:none}96%,100%{opacity:0;transform:translateY(4px) scale(.97)}}
@media (prefers-reduced-motion:reduce){.r,.c,.p{animation:none}}
</style>
<rect x="6" y="44" width="92" height="24" rx="6" stroke="currentColor" stroke-opacity=".35" stroke-width=".75"/>
<circle cx="19" cy="56" r="5" stroke="currentColor"/>
<circle class="r" cx="19" cy="56" r="1.6" fill="currentColor"/>
<circle class="c" cx="19" cy="56" r="1.6" fill="currentColor"/>
<rect x="30" y="54" width="58" height="4" rx="2" fill="currentColor" opacity=".7"/>
<g class="p">
<rect x="6" y="2" width="160" height="38" rx="6" fill="currentColor" fill-opacity=".05" stroke="currentColor" stroke-opacity=".3" stroke-width=".75"/>
<rect x="14" y="8" width="128" height="3" rx="1.5" fill="currentColor" opacity=".7"/>
<rect x="14" y="14" width="96" height="3" rx="1.5" fill="currentColor" opacity=".7"/>
<line x1="6" y1="21" x2="166" y2="21" stroke="currentColor" stroke-opacity=".2" stroke-width=".5"/>
<rect x="14" y="25" width="26" height="9" rx="2" stroke="currentColor" stroke-opacity=".4" stroke-width=".75"/>
<rect x="44" y="25" width="24" height="9" rx="2" stroke="currentColor" stroke-opacity=".4" stroke-width=".75"/>
<rect x="18" y="28.5" width="18" height="2" rx="1" fill="currentColor" opacity=".7"/>
<rect x="48" y="28.5" width="16" height="2" rx="1" fill="currentColor" opacity=".45"/>
</g>
</svg>

Screenshots / recordings

Captured in the app against this branch's server: reached (objective, Finished, the reviewer's evidence, Dismiss), active before the first review (objective, Pause, Clear) and paused (objective, Paused, "Paused by the user", Resume, Clear). The pill uses the shared 32px composer pill from #59979.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Update: rebased onto the icon registry (#64577)

  • This branch was 596b614131f on top of pill-icon-render. It is now on dev, and the PR targets dev.
  • The inset commit and the redesign commit are unchanged. The popover heading removal is carried over from feat(plugin): let composer pills render their own icon #60000 as its own commit.
  • One commit on top moves the glyphs from the ComposerPill.icon render to declared icons. The plugin's glyph CSS and keyframes are gone.
  • Each glyph is framed to its 14px ring (viewBox="1 1 14 14"), so the pill's 14px icon draws it at the size the 16px glyph had. Rasterized in Chromium at 12x, the three glyphs at rest match the earlier ones pixel for pixel, colors included.
  • The active glyph sets the accent color in its own SVG, because no tone gives the accent.
  • Not checked: the ripple in motion in the running app. The registry's component test covers motion, re-render and reduced motion with a similar glyph.

Added by the opencode bot (AI-generated).

Related: #61333

Public API: ComposerPill.menu popovers no longer get a host-drawn heading; title/label only names them for screen readers (types unchanged; plugins that relied on the heading must draw their own)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@arvsrn
arvsrn force-pushed the pill-icon-render branch from 9f3ded6 to 51cde9c Compare October 29, 2026 13:51
@arvsrn
arvsrn requested review from Brendonovich and Hona as code owners October 29, 2026 13:51
@arvsrn
arvsrn force-pushed the goal-pill-plugin branch from 2084cd8 to 115ad65 Compare October 29, 2026 13:51
@arvsrn
arvsrn force-pushed the pill-icon-render branch from d171d3f to 8f14c7e Compare October 29, 2026 16:18
@arvsrn
arvsrn force-pushed the goal-pill-plugin branch 2 times, most recently from 2632187 to 492fb92 Compare October 29, 2026 16:32
@opencodejr opencodejr Bot mentioned this pull request Nov 3, 2026
goal: add Copy/View full to the pill menu and keep the objective readable after Clear #61333
Open
@arvsrn
arvsrn force-pushed the goal-pill-plugin branch from 492fb92 to 596b614 Compare November 17, 2026 15:18
@arvsrn
arvsrn force-pushed the pill-icon-render branch from 9337bc1 to 581eb0e Compare November 17, 2026 15:18
@Hona Hona mentioned this pull request Nov 18, 2026
feat(plugin): let GUI plugins declare their own icons #64577
Merged
2 of 6 tasks
arvsrn and others added 4 commits November 18, 2026 19:31
@arvsrn @Hona
fix(app): tighten the leading inset of composer pills with an icon
9ce443b
A pill that starts with an icon now sits it 8px from the edge with a 6px gap to its
label, through one rule on the shared pill instead of the todo pill's own override.
Pills without an icon keep 10px on both sides. The activity menu's rows follow the
capsule's new inset and gap.
@arvsrn @Hona
feat(app): redesign the goal pill
93d522a
The goal plugin's pill gets its own glyph through the composer pill icon: a ripple
for an active goal, a faded dot when paused and a check once reached. The labels
now read Following goal, Goal paused and Goal reached.

The popover leads with the objective. Once the goal has a reason, a divider and
the colored status follow with the reason under it. Pause or Resume sit beside a
red Clear, and a reached goal offers only Dismiss.
@arvsrn @Hona
feat(plugin): leave a composer pill's own popover to the plugin
4714897
A pill's own popover (menu) no longer gets a host heading. The host keeps the popover's
frame, and everything inside belongs to the plugin; the view's title names the popover
for assistive technology.

Carried over from #60000 without its icon render, which the icon registry of #64577 replaces.
@Hona
refactor(app): draw the goal pill's glyphs as declared icons
dc50e33
The glyphs are now three SVG files the goal plugin declares, named through ctx.icons, instead of a render function on the pill. The host draws them like any icon: it colors a paused and a reached goal by tone, keeps the ripple running while the pill renders again, and holds it under reduced motion, so the plugin's glyph CSS and keyframes go.

Each glyph is framed to its 14px ring, so the pill's 14px icon draws it at the size the 16px glyph had. The goal plugin no longer ships the steer icon.
@Hona
Hona force-pushed the goal-pill-plugin branch from 596b614 to dc50e33 Compare November 18, 2026 09:44
@Hona
Hona changed the base branch from pill-icon-render to dev November 18, 2026 09:44
@Hona Hona mentioned this pull request Nov 18, 2026
feat(plugin): let composer pills render their own icon #60000
Closed
3 of 6 tasks
opencodejr[bot]
opencodejr Bot reviewed Nov 18, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The code looks sound. I couldn't see it running: it's in the web/desktop app and not the TUI, and this environment has no Playwright browser, so I took no screenshots and didn't run the component tests. Type checks for packages/gui-plugins and packages/app pass (with tsc, since bun check isn't available here). oxlint on the changed files, script/sdk-docs.ts (the README blocks match their source) and check-greys also pass. The reduced-motion behaviour holds: the active glyph uses SVG animation elements, and the icon registry pauses those on their first frame, which is the still ring and dot.

Public API: the plugin API changes what ComposerPill.menu and ComposerPillView.title mean, but no types change. The host no longer draws a heading over a pill's own popover. title (else label) now only names that popover for screen readers; it still heads rows menus. This mostly stays compatible. A third-party plugin whose popover relied on the host heading would lose it and has to draw its own. In this repo, the goal plugin is the only pill with a menu.

No blocking concerns.

Related: #61333

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona Hona closed this Nov 18, 2026
@Hona Hona reopened this Nov 18, 2026
@Hona
fix(app): keep the activity menu's rows on the capsule's grid
6815332
Each row is a subgrid of the menu's table, and a menu row's own 8px gap replaced the table's 6px gap inside it, so row text sat 2px after the capsule's label. The rows now take the table's gap.
opencodejr[bot]
opencodejr Bot reviewed Nov 18, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The new commit looks fine, and I have no new concerns. It sets the activity menu's rows to the table's 6px gap, so their columns stay on the capsule's grid. I read the CSS but couldn't see it running: it's in the app, not the TUI, and there's no browser here. The public API is unchanged by this commit; the plugin API note from my earlier review still applies.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
Hona merged commit d412042 into dev Nov 18, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona deleted the goal-pill-plugin branch November 18, 2026 10:11
@thdxr thdxr mentioned this pull request Nov 20, 2026
port goal pill and stop session updates anomalyco/opencode-rune#230
Open
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments
@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@arvsrn @Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.