Repository navigation
feat(sessions): add closer guards for ignored and shared files - #1856
Merged
Merged
Conversation
The closer now blocks a worktree whose ignored files fall outside an allowlist, one that another open session uses, an unmanaged or review worktree, and a row with no repository. A failed read of the ignored files or of the other sessions blocks too. A removal that leaves the path in place blocks as remove_failed. The store gets set_blocked, which only touches an open row. Refs #536 Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
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.
Summary
S8c of #536, second of the WU-10 (closer) PRs.
close.rsgains guard 2b (ignored files must sit undertarget,node_modules,dist,buildor.venv; a failed read blocks), guard 3 (another open row on the same worktree, or a failed read, blocks asshared_worktree), the unmanaged and Review block, the nullrepoblock, and theremove_failedblock with the two-run race.store::set_blockedupdates only an open row. The closer is still dead code.Notes for reviewers
test-seams, real-git tests).packages/web/node_modules) block asignored_files, because only the first path part is matched. This fails closed and follows the plan's literal text. It could be widened later.no_worktreepath.close_one.Refs #536