Repository navigation
feat(workspace): bound resources and recover scoped file access - #647
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/workspace-resources
branch
3 times, most recently
from
November 13, 2026 18:01
0949200 to
3f01749
Compare
nixuuu
force-pushed
the
feat/workspace-resources
branch
3 times, most recently
from
November 13, 2026 20:27
fb739a2 to
9f2ad9f
Compare
nixuuu
marked this pull request as ready for review
November 13, 2026 20:39
nixuuu
force-pushed
the
feat/workspace-resources
branch
2 times, most recently
from
November 13, 2026 22:29
a78cab8 to
0ce3f2b
Compare
nixuuu
force-pushed
the
feat/workspace-resources
branch
from
November 13, 2026 22:41
0ce3f2b to
e164087
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 6 integration files:thread-root-checkpoint.test.ts,thread-watch-cancellation.test.ts,thread-watch-relay.test.ts,thread-watch.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.
Workspace now releases read work, live streams and cached bytes when a paired scope or thread access ends. A replaced worktree root preserves the old draft and requires explicit discard/reload. Clean content is bounded to four warm files on web and two on mobile, in addition to byte budgets; inactive files receive invalidation markers without background reads.
This also forwards file-read cancellation through the BFF, fences late responses after cleanup, clears mobile token caches and excludes IME composition from workspace shortcuts. No database migration or native configuration change.
Stage 6 of 7 in stack #643, based on stage 5. All implementation PRs remain drafts. The maintainer merges the whole stack at once.
Related: #613
Pre-merge root-checkpoint correction
Rebased onto corrected stages 3–5 and dev
4bb71c80142e0c1d0616502ce428ca2bf19d8cad, preserving merged thread scroll memory and default tool-group folding. Root identities are checked for every retained document in a thread, including hidden tabs. Resource/access guards retain the new expected-root argument through writes and deletes; explicit discard and reload remain necessary after a root replacement.Current-head install, gen:check, full typecheck, lint, format:check, production web build and iOS/Android exports passed with
nice. Both nightly native fingerprints match dev. Current-head CI is green, including all four test shards. Serial integration files on the otherwise idle review machine passed with clean private temp directories: root checkpoint (2 tests / 30 assertions), queued cancellation (1 / 10), onward relay (1 / 5), and expanded watch/resource/access coverage (9 / 58). Stages 3 and 5 also passed the three blocker regressions locally on their introducing heads.Current initial thread JS is 771,163 gzip bytes versus dev 756,367: cumulative +14.45 KiB, within the 15 KiB budget. No UI text or web layout changed in this correction. The final stack head received a fresh production-browser review in both themes at 1440/820/390 px, including long names, Files panel/sheet and summary dock/float/sheet. Earlier performance observations below remain historical; Device check pending remains in effect.
Interrupted local full suites are not counted as passes. Before the last dev rebase, a detached full run continued beyond the tool timeout but failed existing computer-move reachability/discovery cases under load and was stopped with a clean private temp directory. The maintainer authorized green CI on every layer plus serial corrective/stack files as the fallback; #648 records the final evidence. This PR remains a draft in stack #643.
Earlier implementation verification (historical)
nice: install, generation check, full typecheck, lint, formatting, production web build and iOS/Android exports. Fullcheck:tmp: 2,785 passed, 166 skipped, 0 failed; nothing left in the temp directory.6ddec9ef559ee0095ac33e94ff9418a942053b17, Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9.Copy audit — docs/copy.md §8