feat(files): add scoped local file editing over daemon IPC - #44
Merged
Conversation
Keep the assertion tied to the two-second supervisor interval while using the production-like one-second reap deadline from the shared test configuration. This avoids treating a loaded macOS runner's inability to reap within 50 ms as a runtime failure.
guicybercode
changed the base branch from
refactor/canvas-only-shell
to
main
September 6, 2026 02:22
Combine the scoped local file service with the knowledge discovery and canvas changes already merged into main, plus the monotonic process snapshot correction from PR42. Preserve all IPC catalog mirrors, file safety behavior, and regression coverage.\n\nValidated TypeScript, 319 frontend tests, 13 file contract tests, 12 file IPC tests, 21 knowledge tests, Rust formatting and diff checks.
guicybercode
marked this pull request as ready for review
September 6, 2026 02:29
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.
Registered projects, sessions and managed worktrees can now list directories, read bounded UTF-8 text and save existing files through versioned daemon IPC. Saves check the revision the editor read, publish through a sibling temporary file, and coordinate the final rename with target/worktree removal.
file.list,file.read,file.writeto Rust, JSON and TypeScript contracts plus typedIpcClientmethods and response validation. Paths retain exact relative Unix bytes in base64.dd84a49, including its prompt composer, library, worktree refresh and bounded probe handling. Real Linux ETXTBSY regressions complement S1's retry tests.Validation on macOS: 97 core, 68 daemon, 63 agents and 5 descriptor ACL tests; all 278 frontend tests, typecheck and Vite build; Clippy, Rustdoc, rustfmt and version consistency. Linux/macOS CI for this head is pending. Earlier worktree integration passed both CI and packaging matrices.
This increment edits existing text files only. Creation/rename/delete, a watcher and the canvas file editor remain pending. External editors can still race the final comparison/rename; this is optimistic conflict detection. A post-rename durability failure returns
writeApplied: trueso clients re-read before retrying.Integration contracts and remaining parity evidence: runtime report, ADR 0006.