Repository navigation
feat(workspace): browse thread files in a bounded tree - #644
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/workspace-file-tree
branch
4 times, most recently
from
November 13, 2026 20:27
be505fb to
41e3768
Compare
nixuuu
marked this pull request as ready for review
November 13, 2026 20:39
nixuuu
force-pushed
the
feat/workspace-file-tree
branch
2 times, most recently
from
November 13, 2026 22:29
4bb79e4 to
ad60b60
Compare
nixuuu
force-pushed
the
feat/workspace-file-tree
branch
from
November 13, 2026 22:41
ad60b60 to
5bc32c0
Compare
This was referenced Nov 16, 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.
Final integration rebase including history/fold recovery
Rebased all seven layers of stack #643 onto dev
8e78568c7e86c188039743dde6cb879c34de4a6e, including #671 provider warnings, #673 reconnect/backoff, #670 connector refresh, #674 deterministic steer recovery and #672 empty-work/history recovery. Two thread-page conflicts were resolved in their introducing stages: preserve the conversation/file tab wrapper together with history loading rows/actions, prefetch, fold synchronization/coverage, diagnostics and scroll anchors. Feed, history and fold implementation files retain the merged dev behavior. Earlier generated-descriptor conflicts were resolved throughbun run gen; proto additions and field numbers are preserved. The independently confirmed five workspace fixes are unchanged. No pending Git or gh-stack rebase operation.Verification scope on the final heads: install, explicit gen, gen:check, full typecheck, lint, format:check, production web build and focused workspace/feed tests at every stage. Commands run detached with
setsid nohupandnice; heavy files run serially throughcheck:tmp. Stage 3 integration files:thread-directory-race.test.ts,thread-directory.test.ts. Existing feed logic files:feed-rows.test.ts,work-history-gaps.test.ts. No UI/component test suite added.All seven PRs remain ready as requested. The maintainer merges the complete stack after CI is green on every head; no merge is performed here. Device check remains pending as previously authorized. No product copy change in this integration rebase.
Everything below is historical evidence from before this final integration rebase, including earlier draft statuses and export/fingerprint measurements.
The Files module now browses the current thread's cwd/worktree in the sidebar or a full tab. Expanding a directory fetches one bounded page; selecting a file opens the existing replaceable preview tab.
The additive
ListThreadDirectoryRPC routes through the thread's home, checks ownership and relative paths in the gateway, and enumerates on the worker without a recursive snapshot. Pages contain at most 200 entries / 64 KiB protobuf including the envelope. Eight one-use iterators expire after 30 seconds; closing Files releases cursors. Git status uses a shared bounded governor query. Symlinks expose no targets and cannot be expanded.Web and mobile share a bounded tree cache, two concurrent reads and cancellation. Virtual rows preserve the visible path anchor and keyboard focus; Git letters and accessible labels supplement colors. No database migration, native dependency/configuration change, UI test suite, polling or full-snapshot synchronization.
Stage 3 of 7 in stack #643. Base: stage 2. All implementation PRs remain drafts until the entire stack is finished and verified; the maintainer merges it at once.
Related: #613
Pre-merge security correction
Directory iteration and child metadata now use the same verified native directory handle. Unix walks components with
openat(O_NOFOLLOW)and usesfdopendir/fstatat(AT_SYMLINK_NOFOLLOW). Windows pins all ancestors without delete sharing, refuses reparse points and queries entries plus metadata from the final handle. Cursors close these handles on completion, release, expiration and disconnect.The controlled ancestor ABA regression returns only the original inside name and size; replacing an ancestor before handle acquisition is rejected. Both regression tests and the existing 9 directory integration cases passed on Linux, including 10,000 children, owner isolation, cursor limits and symlink refusal. The Linux worker binary builds and starts. Native macOS/Windows execution has not been verified in this correction.
Rebased onto dev
4bb71c80142e0c1d0616502ce428ca2bf19d8cadand propagated through all seven draft layers of stack #643. The rebase preserves the merged thread scroll memory and default tool-group folding. Current-head install, gen:check, full typecheck, lint, format:check, production web build and iOS/Android exports passed withnice; both nightly fingerprints match dev. The 2 directory-race tests and all 9 directory integration cases passed locally, one file at a time (10,385 assertions combined, clean private temp directories). Current-head CI is green, including all four test shards.Local full-suite attempts were interrupted by SIGTERM and are not counted as passes. Before the last dev rebase, a subsequent detached
setsid nohuprun continued beyond the tool timeout but failed existing computer-move reachability/discovery cases under load; its owned process group was stopped after the failures, with a clean private temp directory. The maintainer authorized green CI on every stack layer plus serial corrective/stack integration files as the fallback. The final stack PR records the complete evidence. Native macOS/Windows execution and the mobile device check remain unverified.Current thread-route JS is 769,308 gzip bytes versus dev 756,367: cumulative +12.64 KiB, within the 15 KiB budget. The final stack head was reviewed again in a production browser in light/dark at 1440/820/390 px, including short/long names, Files panel/sheet and summary dock/float/sheet. Earlier performance observations below remain historical.
Earlier implementation verification (historical)
nice: install, gen:check, typecheck (including mobile), lint, format:check and web production build. Fullcheck:tmp: 2768 passed, 166 skipped, 0 failed; nothing left in the private temp directory. CI is green.CANOPY_CHANNEL=nightly: iOS6ddec9ef559ee0095ac33e94ff9418a942053b17, Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9.External changes currently use Reload files; bounded change watching and reconnect recovery belong to stage 5. Expanded/scroll metadata persistence belongs to the resource/recovery stage. This PR does not claim those later slices.
Copy audit — docs/copy.md §8