Repository navigation
fix(threads): make the thread details panel compact - #392
Merged
Merged
Conversation
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
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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
bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check,git diff --check.bun run check:tmp(1,869 passed, 161 skipped, 0 failed; no test-owned temp entries left) andbun 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.Copy audit — docs/copy.md §8
Done · exit unavailable→Completed;$3621.174→$3,621.17. Short status text and readable currency replace noisy metadata; exact cost remains available.Stop→ icon labelledStop task, changing toStopping….Show N more,Show fewerandNew side threadretain their wording.Could not stop the task. Try again.states the failure and the next action.Failed (1)andStoppedremain visible; full task status and end time have accessible text. Secret names retain full tooltips and expiry details.