Skip to content

feat(sessions): add closer guards for ignored and shared files - #1856

Merged
igorjs merged 1 commit into
mainfrom
feat/issue-536-s8c-closer-blocks
Nov 15, 2026
Merged

igorjs merged 1 commit into
mainfrom
feat/issue-536-s8c-closer-blocks

Conversation

@igorjs

@igorjs igorjs commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

S8c of #536, second of the WU-10 (closer) PRs. close.rs gains guard 2b (ignored files must sit under target, node_modules, dist, build or .venv; a failed read blocks), guard 3 (another open row on the same worktree, or a failed read, blocks as shared_worktree), the unmanaged and Review block, the null repo block, and the remove_failed block with the two-run race. store::set_blocked updates only an open row. The closer is still dead code.

Notes for reviewers

  • Still to come: S8d (branch step, no-worktree and closed-PR rows, still_closable) and S8e (bounds, real guards, test-seams, real-git tests).
  • Open item: ignored folders nested below the top level (for example packages/web/node_modules) block as ignored_files, because only the first path part is matched. This fails closed and follows the plan's literal text. It could be widened later.
  • A missing worktree path is left untouched for now; S8d replaces that with the no_worktree path.
  • About 510 lines, about 190 production. 5 lens reviews; fixed an unchecked ignored-files read, weak log and argument assertions, a long close_one.

Refs #536

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>
@igorjs
igorjs enabled auto-merge November 15, 2026 11:38
@igorjs
igorjs added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 6bdc778 Nov 15, 2026
30 checks passed
@igorjs
igorjs deleted the feat/issue-536-s8c-closer-blocks branch November 15, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant