feat: case-insensitive matching for Sentinel condition#34
Merged
Conversation
Engine becomes a registry of RunControllers. Multiple runs may be in flight at once; folder-touching runs serialize on a per-directory lock and a lazy slot pool (INFLOOP_MAX_CONCURRENT_RUNS, default 4) bounds their concurrency. Folder-free runs (HTTP providers, all-/tmp, all- worktree) run unlimited — they never enter the slot pool. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds an optional `caseInsensitive` flag to SentinelConfig. Plain matches lowercase both sides; regex matches set the `i` flag. Exposed as a "Case-insensitive" checkbox in ConfigPanel next to "Treat as regex". Schema change is backward compatible — existing workflows continue to work unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.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
caseInsensitiveflag toSentinelConfig(backward-compatible — default off).iflag for regex match.Test plan
bun test lib/server/conditions/sentinel.test.ts— 9/9 pass (4 new cases: plain insensitive match, plain default still case-sensitive, regex insensitive match, invalidcaseInsensitivetype rejected).bun test— 721 pass, 1 skip, 0 fail.bun run typecheckclean.DONE, toggle Case-insensitive, run a workflow whose stdout containsdoneand confirm the condition fires.🤖 Generated with Claude Code