Skip to content

stage-line: a trigger clause is read outside Markdown code spans - #642

Merged
bompus merged 2 commits into
mainfrom
fix/stage-line-codespans-20261113
Nov 14, 2026
Merged

bompus merged 2 commits into
mainfrom
fix/stage-line-codespans-20261113

Conversation

@bompus

@bompus bompus commented Nov 13, 2026

Copy link
Copy Markdown
Owner

splitStage (added in #641) found the trigger: field by excluding only a trigger: with a backtick directly before it, and ended the clause at the first ;, recheck: or done-when: anywhere. A private-reviewer point on the setupLinuxHost pin to f4bca77 said these also match inside Markdown code spans.

Reproduced first: three new tests failed on the old code (a ;, a recheck: and a done-when: quoted in a code span after the real trigger: ended the clause early; a trigger: inside a span not directly after its backtick was taken for the field). The fix blanks code spans (same length) before matching, so indices still map onto the original text, and drops the lookbehind. bun run check, bun test test/ (1335 tests) and bun test skills/ (1014) pass, 0 failures.

Not changed: the offer-clause split of the rest of the line, which still splits on ;, , and "and" and does not read code spans.

@bompus bompus added author:anthropic Pull request written by a anthropic model author-model:sonnet-5-5 A model that wrote part of this pull request labels Nov 13, 2026

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Argon, high reasoning): 1 finding(s).

@bompus-ai-review bompus-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bompus AI Review (Gemini 4 Argon, high reasoning): 0 finding(s).

Review 2: findings below high are posted only within 3 lines of a change since d42e066.

@bompus bompus closed this Nov 14, 2026
@bompus
bompus merged commit 39f4ce2 into main Nov 14, 2026
2 checks passed
@bompus
bompus deleted the fix/stage-line-codespans-20261113 branch November 14, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:anthropic Pull request written by a anthropic model author-model:sonnet-5-5 A model that wrote part of this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant