Repository navigation
fix(projects): copy the repository with optional ignored files - #510
Merged
Merged
Conversation
nixuuu
force-pushed
the
fix/workspace-copy-scope
branch
from
November 10, 2026 16:10
9ca1e73 to
db3e05f
Compare
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.
PR #503 allowed selecting individual repository files, which could produce a partial checkout. Copy the whole repository state instead: Git metadata, tracked files and nonignored untracked work are mandatory, enforced by the source worker before any reads. Web and mobile show a fixed repository summary and offer only ignored local files.
Ignored dependency, build and cache directories are pruned before walking their contents and listed in a disclosure. Secret-like and local configuration files retain explicit confirmation; large ignored groups start collapsed. Old presets apply only to available ignored files and are narrowed on their next save. Limits, chunk transfer, integrity checks and cleanup remain in place.
The copy dialog has its own persistent footer alongside the shared palette header action, including Enter handling and disabled/busy states. Its full-width primary action stays visible while the preview scrolls, explains disabled states and shows progress with a cancel action. Scroll containers, including the file tree, use
scroll-stable. Both clients use a three-line repository summary, a truncated monospace branch with access to its full name, animated kit disclosures, file lock icons with contextual help and muted folder counts. The root keeps its indeterminate checkbox without repeating a secrets warning.Contracts are additive, generated code is included, and legacy full-selection fields are deprecated. The new
workspace_copy_scope_v2capability requires updated workers and linked gateways. Polish documentation is updated.Fixes: #503
Validation
Rebased onto
devat26f61cce, retaining the shared palette actions from #511, scrollbar gutters from #512 and linked-bot fixes from #509. Re-ran generation, typecheck, lint, format check, both focused workspace-copy test files separately (14 tests, 98 assertions, no temporary files left), and the web build; all passed. Browser screenshots and mobile fingerprint evidence below were collected before this rebase.bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check, and the web build. The final layout adjustment also passed web typecheck and build.check:tmp: workspace-copy (12 tests, 90 assertions) and workspace-copy-durability (2 tests, 8 assertions). Coverage includes mandatory tracked and nonignored untracked files, direct worker rejection of partial selections, dependency requests, ignored choices, old presets, linked transfers, integrity and recovery. Both left no temporary files. The full repository test suite was not run..envfiles, local configuration, over 100,000 dependency entries,target, and a 205-file unusual ignored data directory. Replaced all six screenshots after checking the visible, clickable footer before and after scrolling, animated disclosure, branch/file tooltips, fixed row heights and disabled confirmation with a reason. A real 64 MB browser transfer exercised the busy state and completed successfully; the copied tracked file matched byte-for-byte and Git retained the tracked modification and nonignored untracked file. Screenshot artifacts stay outside the repository; the before image is the maintainer-supplied screenshot.[email protected]are unchanged: iOS6ddec9ef559ee0095ac33e94ff9418a942053b17, Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9. No native device runtime validation.Copy audit