Skip to content

fix(threads): make the thread details panel compact - #392

Merged
nixuuu merged 1 commit into
devfrom
fix/compact-thread-panel
Nov 9, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/compact-thread-panel

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 9, 2026

Copy link
Copy Markdown
Member

Thread details use compact chrome typography, 32 px desktop / 36 px phone rows and tighter section spacing. Placement, usage, secrets and footer actions stay on one line where possible; paths and branches retain both ends when truncated, with full values in tooltips. Copy stays in a reserved slot and appears on hover or focus, while touch keeps it visible. Cost is formatted as $3,621.17, with the exact value available in a tooltip.

Background tasks now use a single row with a status dot, truncated title, duration and relative end time. Failed and stopped tasks retain visible text labels. Missing and successful exit codes no longer add noise. Stop is a labelled icon button in a reserved slot; finished tasks retain the list's visible row count so subsequent sections stay in place. The output dialog keeps its existing controls and detailed status.

The native mobile panel was inspected and left unchanged to avoid overlapping the concurrent mobile parity work. This includes the responsive web panel and its phone sheet, without changing mobile application code.

Validation

  • Passed: bun install, bun run gen:check, bun run typecheck, bun run lint, bun run format:check, git diff --check.
  • Passed: bun run check:tmp (1,869 passed, 161 skipped, 0 failed; no test-owned temp entries left) and bun run --filter @canopy/web build. Opt-in live tests were not enabled. The run reported only excluded CLI runtime files before removing its private test directory.
  • Real Chromium on an isolated local port, using temporary synthetic fixtures that rendered the production components: light and dark at 1280×800 (320 px panel), 900 px viewport (260 px panel), and 375×812 phone sheet. Checked short, typical and very long computer names, paths, branches, task titles and secret names; running, completed, failed and stopped tasks; 12-task expansion and scrolling. No horizontal overflow or transparent sheet seams observed. Fixtures and screenshots are not committed.
  • Copy hover and keyboard focus changed visibility without changing the row bounds (300×32 px). On task completion and replacement of the same thread snapshot, the task title bounds remained 160×20 px, the list retained four rows and the Secrets section stayed at the same vertical position. Full path, branch and exact cost tooltips were checked. Backend Stop behavior was not exercised against a live worker; its existing API path is unchanged. No web UI test suite added.

Copy audit — docs/copy.md §8

Checklist Result
1. Sentence case, limits, active voice Done · exit unavailable → Completed; $3621.174 → $3,621.17. Short status text and readable currency replace noisy metadata; exact cost remains available.
2. Glossary Existing terms retained: thread, task, secret, subagent. No new product terms.
3. Action verbs Large Stop → icon labelled Stop task, changing to Stopping…. Show N more, Show fewer and New side thread retain their wording.
4. Actionable errors Compact Stop failure: Could not stop the task. Try again. states the failure and the next action.
5. Empty states No new empty states.
6. Repeated facts No new duplicate controls or explanatory rows. Truncation tooltips reveal full names; status and expiry tooltips provide detail without extra visible lines.
7. Optional gaps Unknown and zero exit codes are omitted for successful tasks. Known non-zero codes and failure labels remain; detailed status remains in the output dialog.
8. Humour None added.
9. Long names and widths Short, typical and long values checked in both themes at desktop, narrow and phone widths.
10. Accessible meaning Stop and copy have accessible action labels. Failed (1) and Stopped remain visible; full task status and end time have accessible text. Secret names retain full tooltips and expiry details.

@nixuuu
nixuuu merged commit 6312d97 into dev Nov 9, 2026
10 checks passed
@nixuuu
nixuuu deleted the fix/compact-thread-panel branch November 9, 2026 10:09
nixuuu added a commit that referenced this pull request Nov 9, 2026
Thread details cut off both the working directory and current branch,
and repeated model, permission, status and usage information already
available elsewhere. The first commit removes that redundant block from
web/desktop and mobile; the feature commit gives placement its own
readable rows and a safe branch picker.

- Show the complete wrapping path, collapse the home directory to `~`,
emphasize the folder name and reserve space for copying. Show the full
current branch, its base on a separate line, and detached HEAD
explicitly.
- Track each checkout's HEAD with a debounced file watch and direct
reads after initial gitdir resolution. Share the watch between threads
and retain reconnect/turn-end recovery.
- Search local and known remote branches without fetching. The gateway
enforces ownership and rejects active/queued turns, pending
interactions, background work and open goals across the checkout,
including path aliases. The worker reserves the checkout, requires a
clean tree and lets git refuse branches already used elsewhere. There is
no stash or force.
- Route linked-thread operations to their home and gate both home and
worker support through additive capabilities. Record “Branch switched to
X by you” and deliver checkout context to the next agent input,
including resumed sessions and shell inputs. A shell failure preserves
the note for the next input.

Ahead/behind remains available in Manage worktree; the placement section
does not add periodic git scans. Contracts are additive,
`WORKER_LINK_PROTOCOL` remains 1 and there is no database migration.

### Verification

- Gateway↔worker coverage: live HEAD updates, local and remote
switching, expired commands, dirty trees, branches used in another
worktree, running/queued turns, shared checkout aliases, owner scoping
and older workers. Linked-computer coverage checks home routing, viewer
HEAD/notices and older-home refusal. Shell integration checks the actual
harness input and recovery after a failed shell command.
- Real browser on a private production server: light/dark, desktop
1280×800, narrow 880×900 and phone 390×844; short/typical/long directory
paths, short branches and
`feature/agent-email-channel-implementujesz-docelowa-architekture-agenta-ai`,
detached HEAD, searchable branch selection and successful switching from
desktop and phone overlays. No horizontal overflow or leftover section
seams. The reserved branch area measured 128 px before and after the
tested short/long switch.
- Mobile changes are JS/TS only. EAS CLI 27.4.1 production fingerprints
were generated for both platforms before/after: iOS
`2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3`, Android
`c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d`; both unchanged. Native
device visuals were not checked.
- Final repository checks pass: `bun install`, `bun run gen:check`, `bun
run typecheck`, `bun run lint`, `bun run format:check`, the web build
and `bun run check:tmp --timeout 30000` (1924 pass, 161 skip, 0 fail
across 343 files; nothing left in the test temp directory). The initial
5-second-default run timed out in two existing plugin/skill tests; both
passed in the complete run with a 30-second default.
- Additional mobile checks: Expo Doctor passes 20/20; both Hermes bundle
exports pass, and ESLint passes for the new picker/placement and the
edited panel, sheets and thread state. The full Expo ESLint command also
reports existing errors in other surfaces (including the unchanged ref
assignment in `ThreadScreen`). CNG prebuild fails in
`@expo/image-utils`/`jimp-compact` with `Could not find MIME for Buffer
<null>`; native config and source assets are unchanged. Generated native
folders were removed. This PR does not change native
dependencies/configuration to address that separate issue.

### Copy audit (§8)

- Duplicate model, permission, status and usage rows → removed. Each
fact keeps its existing primary surface; no replacement copy or empty
section.
- Truncated path/branch with an inline competing base →
“Worktree”/“Directory”, “Branch”, full values, a separate “from …” line
and “Detached at …”. Sentence case, existing glossary and explicit text
preserve meaning without relying on icons or colour.
- New actions use verbs: “Switch branch”, “Search branches”, “Copy
working directory”. The picker groups are “Local branches” and “Remote
branches”; no confirmation or destructive wording is introduced.
- New errors state the problem and next step: commit/discard changes,
choose another branch, wait for work, reconnect or update the relevant
computer. Empty/loading/search states are short and actionable. Raw git
diagnostics and private paths are not exposed as errors.
- No humour or “soul” copy. Checked with short, typical and long values
at desktop and phone widths; accessible labels name actions and errors
use alerts. The requested full-path tooltip supports inspecting the
complete path.

Related: #392, #395
nixuuu added a commit that referenced this pull request Nov 12, 2026
Use full-width task rows with trailing metadata, icon statuses and a duration/stop hover swap. Keep touch controls visible and use the same compact row structure in native mobile.

Fixes: #392
nixuuu added a commit that referenced this pull request Nov 12, 2026
…586)

Background-task rows now fill the panel width. Status uses a blue
running dot, neutral stopped square, red failure icon or green
completion check. Names truncate with their full text and status in the
tooltip and accessible label.

Desktop metadata shares one right edge; hover or keyboard focus swaps
the running duration for Stop without moving the name. Touch and native
mobile keep Stop beside the duration. Finished rows use that trailing
space for `duration · age ago`, with no empty action column. Both values
remain because runtime and recency answer different questions. Native
changes are JavaScript only.

Validation on the isolated SSH review computer:

- `bun install`, `bun run gen:check`, `bun run typecheck`, `bun run
lint`, `bun run format:check`, and `bun run --filter @canopy/web build`
passed.
- Chromium review covered mixed running/stopped/failed/completed rows,
short and long names, full-width hover, keyboard focus and Stop access,
desktop/narrow/phone layouts, light/dark themes and the output dialog.
No web UI tests were added.
- Local Expo fingerprint generation matched the base for both platforms:
iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. `eas fingerprint:generate`
was attempted for both platforms but requires an Expo login on that
computer; the comparison used `expo-updates fingerprint:generate` with
the same fingerprint engine and nightly channel. Native device rendering
was not reviewed.
- Full integration/temp tests were left to CI; this task's local
verification authorization covers the requested checks and browser
review.

Copy audit (§8): visible `Stopped`/`Failed (N)`/`exit N` → status icons
with the reason and exit code retained in accessible labels and web
tooltips; bare finished age → `7m ago` to distinguish recency from
runtime; native `Done` → `Completed`; native `Show full output` → the
row action with the same accessible instruction. Sentence case, action
verbs, glossary and punctuation checked. No new errors, empty states,
jargon or humorous copy. Status remains available without colour, and
full names remain accessible. Short, typical and long names checked at
desktop and phone widths.

Fixes: #392
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