Repository navigation
Refuse a save over a project another session saved - #8
Merged
Merged
Conversation
Each project's file is checked, before a save, against what this session last read from or wrote to it. Where another session saved it since, nothing is written: the board takes the file, and an edit Claude made from an older read is denied until it reads the project again, with Claude told the change came from another session. On the board, one undo brings back the person's version with the refused edit made on it; text typed in a field stays there to be sent again. Claude-Session: https://claude.ai/code/session_01KAmaXmom3mXgvd45vXco4U
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.
Address karanb192/awesome-claude-code-mods#362
Two sessions sharing a root could overwrite each other's project saves without either one noticing. Now a save first checks the file against what this session last read from or wrote to it. If another session saved the file since, nothing is written.
What changes
Board edits (keys, clicks, typed text): the board loads the other session's file, and a notice says why.
ubrings back the user's version, with the refused edit made on it, and saves it. A secondugoes back to before that edit.Claude's edits (
apply,write,attach): the edit is refused with nothing changed, whether the board is open or closed.Where the check happens
Undo or redo during a clash: the undo history goes back to where it was before the step.
Other: version 0.4.2 → 0.4.3, and one line in
docs/SPEC.md.Known gaps
ubrings back.Testing
bun run checkpasses: validation,tscand 178 tests.sameProject.writefrom an older read is refused and the file left alone. This test fails if the closed-board check is removed.uto get back their own version, with history keptwrite