Repository navigation
feat(sidebar): pin agents from a row menu; drop Workspace cards and Quiet opened finishes - #1120
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: 🔵 Low · up to
|
…uiet opened finishes - Agents rows get a ⋯ (as workspace rows have) and a right-click menu with Pin agent / Unpin agent; the pin star and the Pin agents setting are gone, pins always apply. - Pinned agents stand under a quiet Pinned head; the state dot sits at the row's right edge after the ⋯, as on workspace rows. - Remove Settings -> Appearance -> Workspace cards and Quiet opened finishes, with the card UI, the per-browser seen records and their tests. - Telemetry and shared preferences drop agentCards, agentPins and quietOpenedDone.
fdc2fea to
6972eb0
Compare
…desktop (#1137) ## Change Replaces #1126. Two commits, squash-merged as one: the first removes the desktop row `⋯` and marks pinned agents (with a hairline under them); the second turns that hairline into the card below and adds workspace pins. **No row `⋯` on a desktop; a quieter pinned-agents card** #1120 made pinning an agent row action. On a desktop the selected row always showed a `⋯` (kept, with a focus ring, after its menu closed), and a "Pinned" head stacked right under the "Agents" head while the pinned rows themselves carried no mark. - Workspace, worktree and agent rows draw no `⋯` where the pointer is fine and the window is wider than 768px (the tab strip's rule). A right-click or the context-menu key (Shift+F10) opens the same menu, at the pointer or at the row, and focus goes back where it was. Touch screens and narrow windows keep the `⋯`. - `onRowContextMenu` anchors the menu on the row when its `⋯` is not drawn. - Pinned agents: no second head. They stand in a card (hairline `--border` edge, `--radius-lg`, `--space-1` padding, no fill, so hover and selection read inside it as elsewhere; a filled tray read as a selection), each with an `--accent` pin after its title. The list keeps the name "Pinned" for screen readers. **Pin workspaces and worktrees** Researched against Paseo (pins workspaces/chats into a top Pinned section, server-stored `pinnedAt`), T3 Code (pins threads above active work) and Codex (pins projects and chats). herdr's usual flow is one worktree workspace per task, so the workspace row is the unit. - **Pin workspace / Unpin workspace** leads each workspace row's menu (right-click, Shift+F10, or the `⋯` on touch). - Pinned workspaces leave their place and stand first in their PC's list, in pin order, in the same card with the same pin. A pinned repository's workspace brings its worktrees; a pinned worktree leaves its repository's group, which stays (as Paseo keeps a project whose chats are pinned). - Pinned rows are not dragged (mouse or touch) and Alt+↑/↓ does not move them; the rest reorder among the neighbours the list shows (`moveIndex` / `dropIndex` work on the unpinned groups). - Storage: the existing shared pin list (`/api/preferences`), with a workspace keyed `machine:workspace:id`. No protocol change; other browsers see the pins. The Agents list's prune leaves workspace keys alone, and each PC's list prunes only its own gone workspaces, on a change of the user's. - The focus returns to the moved row after a pin or unpin from it. - New strings in ko/ja/zh; DESIGN.md, docs/development.md, `shared/preferences.ts`'s comment and `changelog.d` follow. ## Validation - `bun run typecheck`: pass. - `bun run test:unit`: 3719 pass, 0 fail (8 skip). New in `src/lib/sidebarPins.test.ts`: workspace keys, per-kind pruning, and the group split (a pinned repository with its worktrees, a pinned worktree alone, a missing id ignored). - `bun scripts/sidebar-activity-demo-regression.ts`: 7/7 pass. Adds: a workspace pins from its right-click menu into the card with its pin, the rest keep herdr's order, the pinned row is not draggable, the key is saved with the agents' pins, and unpinning restores the order. - `bun scripts/workspace-touch-reorder-demo-regression.ts`, `bun scripts/workspace-rows-regression.ts`: pass. - `bun scripts/ui-regression.ts`: pass, including a new check that a real linked worktree leaves its group for the card when pinned and returns when unpinned, plus the keyboard and right-click workspace menus and the close confirm's focus. One earlier run timed out in a `until` wait right after "a desktop's chat offers the mic", which this PR does not touch; the rerun passed whole. - Demo screenshots at 1440px (dark and light: workspace and agent cards, the pinned workspace's menu, keyboard pin with focus kept on the moved row) and on a 390px phone (`⋯` on every row, the card in the drawer). The demo has no linked worktree, so worktree pinning was checked through ui-regression only.
## Change Release 0.4.9 from main at 6e575a8 (v0.4.8 + 193 commits), plus one blocker fix found in pre-release QA. - **`fix(terminal)` (ededf39)**: an open terminal re-attaches by itself after herdr restarts or updates. Before, the pane kept "terminal ended" and dropped typed input until another pane was picked (also in v0.4.8). The renderer now keys its attachment on the pane's `terminal_id`, which herdr changes on restore, and a cached tab waits until it is shown again. Locked by `scripts/herdr-restart-regression.ts` (fails on main, passes here), added to the browser lane. - `package.json` and `herdr-plugin.toml`: 0.4.9. - CHANGELOG: `[Unreleased]` and 147 changelog.d fragments become `[0.4.9] - 2026-10-16`, with `by @login` for outside contributors (22 PRs) and #1164 by @aisensiy carried in #1169. The reattach entry has no PR link yet: it is this PR's. - `release-summaries.json`: 0.4.9 in en/ko/ja/zh (7 new, 7 improved, 8 fixed in each). - `REMOTE_BUNDLE_VERSION` 27 -> 28: the bundle's inputs changed since remote-v27. - `telemetry/deployed.json`: the Worker was redeployed (version 431d6e07) for the settings schema changes since v0.4.8 (#1120, #1123, #1135); before it, this build's install event got HTTP 400. ## Release notes (as installs will show them) ### New features - New workspace → Browse makes a new folder and starts in it. - Shortcuts record chords with their exact modifiers; New tab and splits can be bound. - Pin workspaces, worktrees and agents from a row's menu or a right-click. - A Jump to bottom button returns a terminal scrolled up into history to the live end. - Pick a skill anywhere in a message, not only at its start. - Connect to remote PCs from a Windows PC. - Mod+Shift+E puts the cursor in the pane's input. ### Improvements - Split view halves are independent, and both may show the same tab. - Phones start in direct typing; the key bar's keyboard key lights for the input line. - Claude's whole plan shows from its plan file, and its answer review reads correctly. - Send shows progress until the agent takes the message, and Stop always goes first. - Recent tabs stay ready, so switching back shows the chat at once. - Sign out moved into Settings behind a confirm; menus and settings were trimmed. - A workspace or tab reopens on the pane you last saw, also after a reload. ### Bug fixes - Open terminals reconnect by themselves after herdr restarts or updates. - With herdr 0.9.4 or later, a second device no longer types stray characters into a pane. - Typing Hangul from an iPad hardware keyboard composes syllables. - Opening an Android keyboard no longer resizes the shared terminal. - When the app's folder is replaced under it, it asks for a restart, not an endless reload. - Hermes: Stop ends a running turn, and Chat will not send over text typed in its input. - The sidebar no longer breaks on a worktree without a branch. - A click on a lone pane's top right corner reaches the program there. The full changelog is the [`[0.4.9]` section of CHANGELOG.md on this branch](https://github.com/devswha/herdr-web-ui/blob/chore/release-0.4.9/CHANGELOG.md) (too long for a PR body). ## Verification Scenarios ran on c5f297e. The two commits after it (a978847, 14387e5) change only CHANGELOG.md, from the gate review: links for #863, #864, #869, #870, #972 and #1161, #811 moved from 0.4.7 (where a merge put it) into 0.4.9, and entries no longer name the removed Files at once setting or Find. No runtime behaviour differs from what was verified. QA plan with scenarios and pass conditions: user flows install → first run → daily use → errors, on Linux, macOS, Windows and remote PCs. Each scenario ran twice: a first pass on main 6e575a8, then an independent re-run by separate agents on this head (c5f297e), checked artifact by artifact. Browser checks drove a real Chrome at 1440 px and 390 px (iPhone emulation), light and dark. Local herdr was 0.9.5 (CI pins 0.9.3), so this also covers the newer herdr users have. | ID | Flow | Where | Result on c5f297e | |---|---|---|---| | L1 | Fresh install: README plugin path and `install.sh` one-liner | Clean Ubuntu 24.04 (Docker) | PASS: both exit 0, health ok, startup hook after a herdr restart | | M1 | Plugin install, start, first terminal | MacBook, macOS 26.6, herdr 0.9.5 | PASS: installed in ~1 min, health ok, `echo` runs | | W1(a) | Fresh native install | windows-latest ("Real Windows install" check) | PASS (CI) | | W1(b) | Plugin install on an existing herdr 0.9.3, mirrored pane | Windows 11 PC | PASS; installer unit test PASS | | L2 | First run: workspace list, new workspace, type in a pane | Linux, herdr 0.9.5 | PASS | | L3 | Daily use: split halves on one tab, Browse → New folder, pin, record a shortcut, Sign out confirm, phone direct typing and input-line key | Linux | PASS 7/7 | | L4 | herdr down, server restart, typing while disconnected (kept as a draft), token-protected server refuses a fresh browser | Linux | PASS | | FIX1 | herdr stop + start with a pane open: re-attaches without re-pick or reload | Linux | PASS (screenshots below) | | R1 | Remote PC over SSH: bundle smoke, key + password logins, desktop and phone | Linux sshd, Debian container | PASS | | L5 | In-place update and PWA update | Linux | PASS for the product; `update-browser-qa.ts` needs a fixture body after a fold (#1178) | | C1 | Integration suite on herdr 0.9.5 + settings/split/shortcut/chat browser scripts | Linux | 521 pass / 0 fail; `chat-browser-qa.ts` script drift (#1178) | | T1 | 1,484/2,000-char one-line messages into real Claude Code | Linux; macOS | Linux PASS; **macOS input line: known issue #1174, see below** | CI on this head: Fast checks, Integration and browser, Native Windows install, Real Windows install, macOS session identity and the remote bundle builds all pass. Local `bun run check fast`: 3,825 unit tests pass; `bun scripts/release-guards.ts` passes. ### Known issue shipped: #1174 (not a regression) On macOS, a single-line message of about 1.5 KB sent through the terminal **input line** can reach Claude Code without its first 1,022 characters (5/5 in the re-run; the first pass kept it whole). It predates 0.4.8. Two fixes were built and rejected on runtime evidence: bracketed paste over `pane.send_text` corrupts plain shells, and sending through the attach stream lets a following Stop overtake the message. A safe fix needs a program-aware paste RPC from herdr or a shared delivery barrier. Direct typing, which phones start in from this release, and the desktop terminal delivered the same messages whole. Details in #1174. **Shipping with it is the maintainer's call at merge**: the QA plan counted it as a blocker, and no safe fix exists in this release. ### Follow-ups filed #1177 (Homebrew Bun hint), #1178 (three QA scripts outside CI drifted), #1179 (small UI findings). ### Screenshots (from the re-run on this head) **Reattach after a herdr restart (FIX1)** <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/FIX1/restarted-1440-dark.png" alt="pane re-attached after herdr restart, desktop" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/FIX1/restarted-390-light.png" alt="phone" width="240"> **First run (L2)** <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L2/echo-terminal-1440-dark.png" alt="first terminal" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L2/echo-terminal-390-light.png" alt="phone" width="240"> **Daily use (L3)** <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L3/split-03-typed-in-active-half-both-draw-1440-dark.png" alt="split halves on one tab" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L3/newfolder-03-created-directory-follows-1440-light.png" alt="Browse, new folder" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L3/pin-02-workspace-pinned-1440-dark.png" alt="pinned workspace" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L3/signout-02-confirm-dialog-1440-dark.png" alt="sign out confirm" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L3/phone-02-input-line-key-lit-390-dark.png" alt="phone input line key lit" width="240"> **Errors (L4)** <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L4/herdr-stopped-disconnected-1440-dark.png" alt="herdr stopped" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L4/server-restarted-reconnected-draft-offered-1440-dark.png" alt="draft offered after reconnect" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L4/server-killed-typed-draft-kept-390-light.png" alt="phone draft kept" width="240"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L4/unauth-gate-signin-1440-dark.png" alt="token gate" width="560"> **macOS (M1) and Windows (W1)** <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/M1/06-echo-1440-dark.png" alt="macOS" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/W1/echo-1440-dark.png" alt="Windows mirrored pane" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/W1/echo-390-light.png" alt="Windows, phone" width="240"> **Remote PC (R1), Claude long message on Linux (T1), update notes (L5)** <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/R1/machines-1440-dark.png" alt="remote PCs" width="560"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/R1/add-pc-390-light.png" alt="add PC, phone" width="240"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/T1/claude-1484-390-dark.png" alt="1,484 chars into Claude" width="240"> <img src="https://raw.githubusercontent.com/devswha/herdr-web-ui/9bc3d185945572068f3fe9746e646312a009618c/L5/notes-desktop.png" alt="release notes beside the update" width="560"> Screenshots live on the `qa/v0.4.9-evidence` branch (not for merging; delete it after this release). ## Release After this merges and its CI on `main` passes: push `remote-v28` on the merged commit, wait for the Remote PC bundles workflow, then run the Release workflow with `0.4.9`. None of that was done here.
Change
Three Appearance settings added surface without much use, and pinning hid behind one of them. This removes them and makes pinning an ordinary row action.
⋯, shown like a workspace row's (on hover, focus, selection, an open menu, and always on touch). It and a right-click (or the context-menu key) open one menu: Pin agent / Unpin agent. A right-click opens at the pointer and leaves the focus where it was. Pins always apply; pins saved before stay. The star button is gone.--text-dim,--fs-xs, aligned with the titles), the rest follow--space-2below with no head; no pins, no head. Modeled on Paseo's and Codex's pinned sections.⋯, as on workspace rows, so both lists line up on a phone.groupRows/agentContext'sgrouped, the per-browser "seen" records (herdr-web-ui:seen:*) andSeqMemory.promoted/restarts, which only they read. The Agents list is always flat, and a finished agent keeps herdr's DONE.shared/preferences.tsstops sharingagentCards/agentPins; a stored file or an older browser that still sends them is filtered by the existing key allowlist.changelog.dfragment are updated; the three settings' strings leave ko/ja/zh, andPinnedis added.Telemetry Worker redeploy needed before the next release.
shared/telemetry.tsdropsagentCards,agentPinsandquietOpenedDonefrom the snapshot. No released version sends a snapshot yet (0.4.8 still sendschanged_settings), so nothing in the field breaks, butrelease-guardswill refuse the release until the Worker is redeployed andtelemetry/deployed.jsonrecorded (telemetry/README.md).Known gap: iOS Safari reports no context menu for a long press, so on an iPhone the
⋯is the way to pin (it is always visible on touch).Validation
bun run typecheckandbun run build: pass.bun run test:unit: 3667 pass, 0 fail (8 skip).bun scripts/sidebar-activity-demo-regression.ts: 7/7 pass, rewritten for the new behavior. Pin from a right-click (focus stays on the prior element), survives a reload; Unpin with Shift+F10 (focus back on the row); pin/unpin from the⋯(Pinned head appears and goes, focus back on the⋯); a phone pins from the⋯sheet, and a tap on a row selects without a menu; Activity order unchanged; an opened DONE keeps its dot.scripts/ui-regression.ts: the Quiet opened finishes toggle steps are removed; the BG checks stay. Not run locally (needs the test herdr session); CI's Integration and browser lane covers it.⋯, the Pinned head, the phone sheet, and Settings → Appearance without the three toggles.