Repository navigation
feat(workspace): watch disk changes and preserve drafts - #646
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/workspace-file-changes
branch
from
November 13, 2026 17:23
07394c2 to
603f564
Compare
nixuuu
force-pushed
the
feat/workspace-file-changes
branch
3 times, most recently
from
November 13, 2026 20:27
5e83cc6 to
382666f
Compare
nixuuu
marked this pull request as ready for review
November 13, 2026 20:39
nixuuu
force-pushed
the
feat/workspace-file-changes
branch
2 times, most recently
from
November 13, 2026 22:29
ea2ba8a to
7a6f683
Compare
nixuuu
force-pushed
the
feat/workspace-file-changes
branch
from
November 13, 2026 22:41
7a6f683 to
397413b
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 5 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.
Files now watch only the visible directories and active document. External changes refresh clean content and preserve dirty drafts, with Compare changes, Copy changes and a confirmed Discard and reload. The comparison switches between virtual read-only disk/draft versions; it never force-overwrites a file.
The additive
WatchThreadFilesstream carries bounded invalidations, never source or a tree snapshot. Gateway ownership, path checks and home routing apply before subscription. Shared checkout watches have bounded replay, reconnect requests visible-scope revalidation, and cancellation/background releases the stream and retries. Save conflicts use a typed Connect code and HTTP 412 in the BFF. No database migration or native configuration change.Stage 5 of 7 in stack #643, based on stage 4. Every implementation PR remains a draft until the whole stack is finished and verified; the maintainer merges the stack at once.
Related: #613
Pre-merge root, watch and relay corrections
expected_root_identityfields reach the home worker for writes and deletes; a stale root yieldsAborted. Unsupported workers cannot silently ignore a supplied checkpoint.thread_files_watch_v1. A new three-gateway integration covers negotiation, delivery of a file change and cancellation at the home worker.Rebased onto corrected stages 3–4 and dev
4bb71c80142e0c1d0616502ce428ca2bf19d8cad, preserving 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 native fingerprints match dev. Current-head CI is green, including all four test shards.Serial integration files all passed with clean private temp directories: root checkpoint (2 tests / 30 assertions, both with and without a reopened watch) and queued cancellation (1 / 10) locally; three-gateway onward watch (1 / 5) and existing watches (6 / 43) on the otherwise idle review machine. The old draft cannot write or delete identical-byte replacement files; explicit discard/reload permits the new checkout. Thirty-five released queued subscriptions leave no subscribers, watches or callbacks.
Interrupted local full-suite attempts 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. Device check pending remains in effect. The final stack head received a fresh production-browser review in both themes at 1440/820/390 px; prior performance observations below remain historical. This PR stays a draft in stack #643.
Current initial thread JS is 770,777 gzip bytes versus dev 756,367: cumulative +14.07 KiB, within the 15 KiB budget.
Copy audit for this correction: “reopen the file” → “reload the file” names the explicit recovery action for a root conflict; an unsupported checkpoint asks the user to update the computer and reload before changing the file. Existing conflict copy is reused for rejected mutations. No new labels, layout, glossary terms or humorous copy.
Earlier implementation verification (historical)
nice: install, generation check, full typecheck, lint, formatting check, production web build and fullcheck:tmp(nothing left in the private temp directory). CI is green.6ddec9ef559ee0095ac33e94ff9418a942053b17, Android5f6eae3ab278f1cd543e9ed763f923a319b65ec9.Copy audit — docs/copy.md §8