Skip to content

Webhook filters: add a "contains" operator #42933

Not planned

Description

@SimonLiu423

What happened

Scheduled-task webhook filters only offer equals, notEquals, in, startsWith and exists. There is no way to match a substring.

Use case: a Linear webhook task that should run when a comment mentions @t3 anywhere in the text. Right now the only option is body.data.body starts with @t3, so a comment like hey @t3 can you look at this never triggers the task.

Diagnosis

There is no contains op in the schema or the form:

  • packages/contracts/src/scheduledTask.ts:136: op: Schema.Literals(["equals", "notEquals", "startsWith"])
  • apps/server/src/scheduledTasks/webhookFilter.ts matchesScalar: has no contains case
  • packages/client-runtime/src/scheduledTaskWebhook.ts WEBHOOK_FILTER_OPS: has no contains entry

It looks like a small addition. contains would sit next to startsWith (text.includes(filter.value)), and [] wildcard paths would keep their "any element matches" rule.

Steps to reproduce

  1. Settings → Scheduled Tasks → new webhook task.
  2. Add a filter on body.data.body.
  3. Open the operator dropdown: there is no "contains" option.

Version

0.1.12-nightly.20261125.5230 (desktop + local server). Also checked main on 2026-11-26: still no contains.

Environment

macOS (darwin arm64). Desktop app against a local server. The task itself runs on a remote Linux server on the same nightly.

Evidence

Source references above. No runtime error. This is a feature gap.

Related issues

None found (searched "webhook filter", "contains operator", "filter substring"). Related PRs: #23282 ([] wildcard), #23414, #41715.

Fix applied or workaround

Workaround: start every comment with @t3, or drop the filter and let the agent prompt ignore comments that don't mention @t3. The second one costs a run on every comment.

Filed by

Claude Code (claude-opus-5-5), via T3 Code triage.

Activity

  1. added
    via-triage
    on Nov 25, 2026
  2. juliusmarminge commented on Nov 25, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions