Skip to content

feat(navigation): Consolidated gaps in pins, sidebar and Home picker (opencode#66265) - #1144

Merged
Hona merged 3 commits into
devfrom
upstream-f/consolidated-gaps
Nov 25, 2026
Merged

Hona merged 3 commits into
devfrom
upstream-f/consolidated-gaps

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Ports opencode#66265 (13d601e31f): four gaps of the Consolidated navigation, in pins, the sidebar and Home's picker.

What changes

  • A middle click on a pinned session unpins it and closes its tab, if one is open (pinned-area.tsx's close, tab-nav.tsx's onMiddleClick). It did nothing before. Side and top tabs alike.
  • A pin group's chevron shows only with the pointer over its row or the keyboard's focus in it (PinnedGroupView, vertical). It was always shown.
  • Under Consolidated, a Recent group header's chevron shows the same way (GroupHeader's hoverReveal). Under the other arrangement it stays always shown.
  • Home's project picker names the focused server in place of "All projects" under Consolidated, with several servers and no project chosen (view.tsx's scopedServer): the server's name with the server glyph, in the compact picker at the end of Home's search field and in the narrow window's dropdown. The dropdown then drops its second line, which would repeat the name.

How it differs from official

Official: packages/app/src/shell/titlebar/pinned-area.tsx:376 (the pin group's chevron: the row's hover or keyboard focus on the toggle, a 150 ms opacity fade) and :417 (the row's menu button: the row's hover or its own focus, no fade); the Recent header the same at recent-sessions.tsx:1225 and :1231.

  • The fade. Ours' chevron follows its toggle's hover track (at once in, 0.1 s out), not a 150 ms fade.
  • The pointer over the row's menu button. Official still shows the chevron there (the row is hovered); ours shows it with the pointer over the toggle, which is the rest of the row.
  • Keyboard focus on the toggle shows the chevron, as official's does. With it ours also draws the toggle's hover fill, as its other fold headers do under focus; official draws only the focus ring.
  • The menu button shows for keyboard focus anywhere in the row; official only for its own focus. That was so before this change.

All four need one addition to Rune (a member of a hover group with curves and a focus trigger of its own); it is written and waits for a pin bump.

An earlier head of this PR said the chevron showed for keyboard focus anywhere in the row. That was wrong: it showed for no keyboard focus at all, and a run found it. The chevron sits inside the toggle, and a toggle with a hover colour is the hover group of what it holds; only an element marked as a group lights for focus. The toggle is marked now.

Run

Headless, on this PR's own Windows x64 CI build (head 0875f7a24) beside a build of dev without the change, against a fixture server, with a second server added by address for the picker.

  • A pin group's chevron (side tabs). Hidden at rest; shown with the pointer on the toggle; hidden with the pointer on the row's menu button (the second difference above); hidden again with the pointer away. With keyboard focus on the toggle it shows; with focus on the menu button it does not, and the menu button's dots do. Before, the chevron was drawn at rest.
  • The third difference above, seen: with keyboard focus on the toggle, the toggle's hover fill is drawn under the focus ring.
  • A Recent group header's chevron in List. Hidden at rest, shown under the pointer, hidden with the pointer away; shown with keyboard focus on the header's button, hidden with focus on its Group and sort button.
  • A middle click on a pinned session. With its tab open the pin and the tab go and the next session shows; with no tab the pin goes and nothing else moves; the same on a grouped pin that is not the session shown. Before, a middle click did nothing.
  • Home's picker, two servers, no project chosen. In a narrow window the dropdown reads the focused server's name on one line with the server glyph; before, the folder, All projects and the server's name under it. At 900 wide (the picker at the end of the search field): the server glyph and the server's name; before, All projects with no glyph. With a project chosen: its avatar and name, the server's name under it. With one server: All projects.

Not run: a real window; the search field's picker under side tabs at full width (the same function as at 900 wide under top tabs); a project chosen in the search field's picker; the Recent arrangement's own grouped header; a pin group in top tabs under the keyboard; macOS and Linux (compiled only).

@Hona
Hona marked this pull request as ready for review November 25, 2026 10:44
@Hona
Hona merged commit 2e0d7d3 into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the upstream-f/consolidated-gaps branch November 25, 2026 10:44
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
…ocus; a quote's source icon has its name (#1262)

* fix(deps): pin rune to e16732a5 (92 commits)

* fix(deps): pin rune to 5342f14d (rune#2356 on top: 93 commits)

* A fold header's chevron and menu button follow official's hover and focus; a quote's source icon has its name

The four differences #1144 left open, with rune#2231 and rune#2215 from the pin bump.

A pin group's header and a Recent group's header: the row is a hover group that only the pointer lights; the chevron shows for the row's hover or the keyboard's focus on the toggle, on a 150 ms fade, and turns over the same time; the menu button shows for the row's hover or its own focus; a pin group's fill follows the row and is not drawn for focus; a Recent header's button has no fill and its words take the base ink (packages/app/src/shell/titlebar/pinned-area.tsx:350, :376, :417; recent-sessions.tsx:1201, :1222-1225, :1231).

A quote's source icon carries its source's name and shows it as a tooltip (packages/session-ui/src/message/user-message-quotes.tsx:76); the quote's description goes.
Hona added a commit that referenced this pull request Nov 26, 2026
… UP-226 (#1262) partly; UP-212 light-theme note (#1282)

Nine new official commits since c85b83eb08, none changing the desktop app, all skipped (6 server/core/ai/util, 1 cli-rs, 2 test-only). UP-232 -> partly (#1202 merged, three named gaps open). UP-226 -> partly (#1262 merged closing #1144's four differences; Recent header words under menu button and instant chevron turn remain open). UP-212 updated with the pin walk's light-theme reading.
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.

1 participant