Skip to content

feat: case-insensitive matching for Sentinel condition#34

Merged
rhoninl merged 2 commits into
mainfrom
worktree-quiet-wobbling-bonbon
May 18, 2026
Merged

feat: case-insensitive matching for Sentinel condition#34
rhoninl merged 2 commits into
mainfrom
worktree-quiet-wobbling-bonbon

Conversation

@rhoninl
Copy link
Copy Markdown
Owner

@rhoninl rhoninl commented May 18, 2026

Summary

  • Add optional caseInsensitive flag to SentinelConfig (backward-compatible — default off).
  • Sentinel evaluator lowercases both sides for plain match and sets the i flag for regex match.
  • ConfigPanel exposes a new "Case-insensitive" checkbox under the Sentinel Pattern field.

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, invalid caseInsensitive type rejected).
  • bun test — 721 pass, 1 skip, 0 fail.
  • bun run typecheck clean.
  • Manual: in a Condition node, set Kind=Sentinel, pattern=DONE, toggle Case-insensitive, run a workflow whose stdout contains done and confirm the condition fires.

🤖 Generated with Claude Code

rhoninl and others added 2 commits May 18, 2026 17:41
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>
@rhoninl rhoninl merged commit 3e7cfe2 into main May 18, 2026
1 check passed
@rhoninl rhoninl deleted the worktree-quiet-wobbling-bonbon branch May 18, 2026 10:17
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