Skip to content

fix: avoid pages watcher when no page is owned - #3492

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-3490
Oct 21, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-3490

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

A session with only kept claims passes the hook gate but owns no page. The pages follower previously constructed FileChanges before reading ownership, so it could exhaust an inotify instance before it printed [] and exited. It now reads ownership first and returns [] without constructing a watcher when no page is owned.

The regression test creates a retained claim without active ownership, fails on the previous code when watcher construction is intercepted, and passes with this change. The focused hook checks pass.

Closes #3490 — automated triage

@leaf-agent
leaf-agent merged commit c060d6b into main Oct 21, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-3490 branch October 21, 2026 16:15
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.

Pages follower opens an inotify watcher for a session that owns no page, and dies when the user has none left

1 participant