Repository navigation
feat(workspace): log every move of the working copy - #110
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
feat/events-log-moves
branch
2 times, most recently
from
November 22, 2026 18:54
1673d78 to
2c483b9
Compare
To take a command back, a workspace must know where its working copy was before it. Nothing recorded that: `workspace` only names where it is now. Every move of the working copy is now logged in the op log, as an entry made durable with the `workspace` file naming the new revision, so it costs no sync of its own. An entry says where the working copy moved from and to, and why: a command recorded its draft, a command such as `new` or `edit` moved it, or it was created. A command that records the draft along with its own records logs the draft's move with its own. Each workspace's store writes for an `Actor`: the command line, as text so that an argument that isn't UTF-8 is never an error, and the workspace's root, which is now canonical, however it was spelled, so the op log names each working copy one way.
PiquelChips
force-pushed
the
feat/events-log-moves
branch
from
November 22, 2026 19:20
2c483b9 to
64da092
Compare
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.
To take a command back, a workspace must know where its working copy was before. Nothing recorded that:
workspaceonly names where it is now.Every move of the working copy is now logged in the op log. The entry is made durable with the
workspacefile that names the new revision, so it costs no extra sync. It says where the working copy moved from and to, and why. Either a command recorded its draft, a command such asneworeditmoved it, or it was created. A command that records the draft along with its own records logs the draft's move with its own. If the pointer commit fails, the draft's move stays pending for the next commit to log.Each workspace's store writes for an
Actor. The actor holds the command line, kept as text so an argument that isn't UTF-8 is never an error. It also holds the workspace's root, which is now canonical however it was spelled, nested paths that don't exist yet included. So the op log names each working copy one way.Benchmarks:
statusandneware unchanged by the op log, measured withjust bench-giton the whole stack.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)