Skip to content

chore: main into next (claim settle) - #359

Merged
T-Crypt merged 3 commits into
nextfrom
T-Crypt/main-into-next-claim-settle
Nov 20, 2026
Merged

T-Crypt merged 3 commits into
nextfrom
T-Crypt/main-into-next-claim-settle

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Nov 20, 2026

Copy link
Copy Markdown
Owner

A hold claim drained the holder the moment its process appeared. A screenshot
script that ran `gamescope --backend headless` for five seconds took the card
from a serving engine five times in one day, and when the helper exited the
claim was canceled with the card already down (#337).

- `settle = "5s"` on a hold waits for the match to last that long before it
  drains anyone. The clock restarts if the process goes away. Default 0 keeps
  today's behavior, so only rules that ask for it wait.
- The built-in gamescope rule ignores `--backend headless`, the way a capture
  or CI harness runs it.

Tests: TestBuiltinGamescopeSkipsHeadless fails on the old rule, where both
gamescopes matched; TestWatcherHoldSettles covers the wait and the clock
restart; TestCompileRejectsSettleOnTrack refuses a settle on a rule that
drains nothing.
fix(claims): settle a hold before it drains, and skip headless gamescope
@T-Crypt
T-Crypt merged commit 4ed3d52 into next Nov 20, 2026
4 checks passed
@T-Crypt
T-Crypt deleted the T-Crypt/main-into-next-claim-settle branch November 20, 2026 21:52
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