Repository navigation
fix(threads): drop the computer badge from the thread header - #515
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 11, 2026
## Change **Rebase update (2026-11-11):** the complete stack was rebased bottom-up onto `origin/dev` `48cd5e9c3ce07b7a46873ac40d92819ca847f85a`, preserving #522, #526 and #527. This layer's current CI is green; implementation layers passed typecheck, lint and formatting after conflict resolution. The migration maximum at this layer is **0116**; this supersedes historical numbering below. Proto generation was repeated in each affected layer (worker git-context fields use 227, preserving dev's file API fields). Final cross-stack security, parity, performance and verification evidence is in #534. Earlier results below describe the pre-rebase implementation. All layers remain draft; native device UI remains unverified. Stage 4 enables Summary, Timeline and Code on web/desktop and mobile. PRs now have paginated timeline/review threads and replies, checks/jobs with lazy in-app redacted logs, and a paginated file list with commit filtering and lazy unified/split diffs. Binary, renamed, truncated and stale-SHA files have explicit fallback states. Viewed remains hidden until stage 5; this stage makes no GitHub mutations. Visible PRs share a watch producer and durable fetch leases; hidden clients stop their streams, reconnect gaps invalidate pages, and active background threads fetch bounded header batches. Linked homes retain verified offline snapshots without mirroring logs. Cache retention, owner quotas and fixed-label metrics cover the new resources. Composer actions prepare bounded, quoted, untrusted attachments through the existing attachment/harness path and never send a message automatically. The release catalog stays CDN-first and can use an administrator's own connected GitHub account for its authenticated API fallback. The visible setting defaults on; missing, expired, disconnected or disabled accounts retain the public update path. Credentials stay in the gateway and are stripped from storage/CDN redirects. Individual check/review states use Tabler outline glyphs with tooltips and accessible labels, including mobile accessibility labels. The PR's primary state stays readable as a compact icon-and-text badge. Aggregate check counts remain text. Thread PR links use quiet source captions and panel rows. Summary/Timeline/Code, checks, logs and the file-list scrollport follow #512's `scroll-stable` helper and balanced padding. The design pass gives Code one compact toolbar for commit filtering, file count, layout, wrap, whitespace and tree view. File rows expand their diff directly below a sticky file header; paths truncate in the middle, renames retain both paths, and binary/large patches have inline recovery actions. Timeline uses a compact event menu and sort toggle, an avatar rail, grouped commits with short SHAs, relative timestamps with absolute-time tooltips, markdown cards and inline review threads with indented replies. Checks and review replies use progressive loading. Shared activity/file presentation and focused components keep web/desktop and mobile aligned; existing thread diff controls retain their defaults. ## Stack and migrations Rebased #485 → #487 → #501 → #508 with `gh stack` onto `origin/dev` at `26f61cce`, including #486's static release index and #512's scrollbar helper. Resolved conflicts, regenerated contracts where needed, checked typecheck/lint/format at each layer, and force-pushed the rewritten layers with explicit leases. All PRs remain drafts and their bases still chain. Dev subsequently advanced with #510, #513 and #515; those changes are outside this completed prerequisite rebase. Renumbered the stack migrations above dev's 0112 in layer order: 0113 accounts, 0114 manual links, 0115 detection, then 0116 full read. Updated the expected schema list and migration registration. Frozen `update/v1` is unchanged; generated additive contracts are committed. No material design deviations. ## Verification - Passed `bun install`, `bun run gen:check`, root `bun run typecheck`, `bun run lint`, `bun run format:check`, and the web build, including final typecheck/build after the sticky-padding correction and mobile typecheck/lint/format after the final mobile reset correction. The build reports the existing chunk-size advisory. Final head `429c46af353546c433e87293dd128910e524c04e`: CI is green. All five layers #485/#487/#501/#508/#518 have SUCCESS check rollups, remain draft, and retain the correct chained bases. No GitHub reviews have been submitted for this stage. - Sequential local fixture files passed: full-read pagination (5 tests), security/composer (5), lifecycle/retention (4), release fallback (4), linked-home offline/cache scope (3), and paired mobile transport (1). Coverage includes >100 timeline/check/thread/reply/job items, 304/429/403, GraphQL partial errors, independent-client single-flight, stream gaps/restart, 300 files/SHA races, log SSRF/redaction/download/page limits, concurrent owner log quota, retention, and authenticated/public release paths. Composer attachments reached the scripted worker blob path. No live tests or anonymous production API calls were used. - Fresh-process full `bun run check:tmp` after the design pass: **2242 passed, 165 skipped, 0 failed**, **25397 assertions**, 2407 tests across 413 files, **1120.32 seconds**; exit 0 and **no Canopy temp entries remained**. Harness-owned runtime entries were listed separately by the runner and removed with its private directory. This rerun includes the earlier cache-eviction correction and linked-home regression coverage. The historical run was 2236 passed / 165 skipped / 6 failed; it is superseded by this clean full run, not relabelled as passing. The final two-file mobile state-reset correction additionally passed focused ESLint, mobile typecheck, root lint/format and native JS exports. - Browser fixture QA: light/dark, desktop 1440×1000, narrow 768×1000, phone 390×844, with 18 new screenshots. Verified grouped commits, inline review threads/replies (3→50→100), event filter/sort, relative-time accessible labels containing absolute dates, folder collapse, long paths, binary notices, long inline diffs and global layout/wrap/whitespace controls. Checks progress 5→50→100→137 using one control. Sticky toolbar/file-header bounds remain flush while scrolling; phone panel has no horizontal overflow. Prior stage-4 fixture QA also covered failing-job logs, huge/truncated/renamed patches, commit filtering and all three composer attachments, including preserving an existing draft when adding a second context. - Mobile JS only: `bunx [email protected] fingerprint:generate --platform ios --build-profile production --json --non-interactive` and the Android equivalent passed. Fingerprints unchanged from stage 3: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Expo Doctor passed 20/20; prebuild passed in a scratch checkout with no package changes; iOS and Android Hermes exports passed, both limited to one bundler worker. Additional mobile ESLint found existing app-wide findings; two findings in the new reset effects were corrected and focused ESLint on those files now passes. Mobile typecheck, canonical repository lint and format checks passed again after that correction. App-wide mobile ESLint still reports 40 errors / 5 warnings in unchanged code and is not claimed green. Native simulator visual QA is unverified: device tools returned “Device list failed: Could not communicate with device support. Try refreshing devices.” Refreshing once produced the same error; no alternate device control was used. Mobile RPC parity is covered over the real pinned, paired and revocable mobile transport. Live GitHub tests remain optional. ### Performance Real gRPC/Postgres fixture benchmark, same scripted GitHub 503 load, stage-3 baseline versus stage 4. 10 warmups and 80 samples per read/ACK operation, 40 dispatch samples. ACK measures committed ACK enqueue, not network round trip. | Existing operation | Baseline p95 ms | Stage 4 p95 ms | | --- | ---: | ---: | | GetOverview | 3.705 | 3.453 | | GetThread | 1.094 | 0.893 | | Send → worker input | 13.466 | 8.095 | | Ingest → ACK enqueue | 2.294 | 2.309 | No material regression observed; ACK's +0.015 ms (+0.6%) is within shared-machine noise. This is a local sample comparison, not a confidence-interval study. Candidate measurements precede the final cache-write byte-accounting and access-error eviction corrections; those change cache misses and GitHub access-error paths, not the measured existing operations or warm-read paths. Warm-read p95: PR 3.091, Timeline 5.392, Checks 4.412, Files 15.145, Diff 14.059, Log 6.460 ms, all below the 50 ms target. Browser/native rendering p95, cold upstream latency and an unavailable-partner performance comparison were not measured; the offline partner behavior has integration coverage. ### Copy audit (§8) Reviewed new/changed labels, settings, errors and empty states against `docs/copy.md`: sentence case, active verbs, glossary, actionable recovery, no decorative prose or duplicate facts. Long check names, branches and paths were inspected at desktop and phone widths. | Before → after | Reason | | --- | --- | | Author login input and separate review section → compact activity menu, inline threads and relative times | Reduce filter weight and preserve chronological context | | Per-file display controls → one shared icon toolbar | Keep file rows focused on paths and changes | | “Show 45 more checks” plus “Next page” → progressive “Show more checks” | One paging pattern transparently loads further pages | | Bare SHA → “on aaaaaaa”; primary state glyph → icon plus “Open”/“Merged”/“Draft”/“Closed” | Clarify the revision and keep the PR's primary fact readable | | Individual “Failed”/“Requested” status text → labelled glyphs and tooltips | More room for names; state remains available to assistive technology | | “Auto”/“Manual” chips → quiet source captions | Reduce visual weight without hiding provenance | | Bordered “Link pull request”/“Show less” → “+ Link pull request” and quiet “Show N more”/“Show less” rows | Match panel row actions | | Generic missing patch → “Binary file”, “File renamed with no text changes”, or explicit size-limit guidance | Explain the actual limitation and recovery | No new glossary term or “soul” sentence. Empty/error text keeps the necessary status words; aggregate counts remain readable text. Icons have distinct shapes and labels rather than relying on colour. ### Screenshot evidence (uncommitted) New design matrix under `/var/tmp/canopy-github-4/`: `{desktop,narrow,phone}-{summary,timeline,code}-{light,dark}.png` (18 files), plus `desktop-code-sticky-dark.png`. Desktop is 1440×1000, narrow 768×1000 and phone 390×844. Phone Code light shows stacked and dark shows split. Existing logs/composer screenshots remain in the same uncommitted directory. Related: #485, #486, #487, #501, #503, #508, #512.
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.
Linked-computer pills consumed breadcrumb space and reduced the project name to a few characters. Remove the repeated location from thread, new-side-thread and bot chat headers. Keep the existing location details and away notices, and associate
Read-only. {reason}with the breadcrumb or bot heading usingaria-describedby.Related: #453, #475
Surface audit
threads/[threadId]/+page.svelteMachineBadge. The details panel and composer already identify the computer. Preserve the existingComputerAwayBar, dimmed/disabled controls and full accessible read-only reason.NewSideThread.svelteSideThreadContextalready explains the inherited computer/directory. Preserve the full away reason in the breadcrumb's accessible description.ConversationHeader.svelteBotHome.svelteMachineBadgeconsumer.ThreadHeader.tsx/BotChatHeaderinBotChatScreen.tsxUpdate the existing bot, linked-computer and UI documentation to remove stale instructions to retain header pills.
Verification
bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check,bun run --cwd apps/web buildandgit diff --checkon the latestdevbase. The build completes with its existing chunk-size warning.Read-only. {reason}througharia-describedby./var/tmp/canopy-header-badge/:before-{linked,away,local,bot}-{desktop,narrow,phone}-{light,dark}.png, matchingafter-*images, plusafter-side-*,after-short-*,after-typical-*,after-away-final-*andafter-bot-away-*.check:tmpremains for CI under the task's verification restrictions. Browser verification covers shared web/desktop rendering; native Electron and mobile runtimes were not launched.Copy audit — docs/copy.md §8
Read-only. {existing reason}associated with the breadcrumb or chat headingChecked §8.1–8: existing English terminology, sentence case and punctuation retained; no new glossary terms, actions, errors, empty states or humour. Checked §8.9–10: short, typical and long text at desktop, narrow and phone widths in light/dark. Availability has a full text explanation and does not depend on colour or icon shape.