Repository navigation
fix(contracts): accept webhook dedupe placeholders for query keys containing spaces - #46569
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Allows webhook dedupe placeholders to reference keys containing spaces. The change is limited to validation of explicitly configured templates; runtime rendering and product defaults remain unchanged. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…emplate table Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dismissing prior approval to re-evaluate a9e901b
EvidenceReal web app and server on each exact commit, driven by one e2e scenario with Chromium at 1280×800, light theme. Fresh isolated databases; synthetic project and setup thread seeded through t3.project/t3.thread with Replay (dev). Both dedupe fields were populated together. Webhook URL text was hidden in the recording; recordings omit initial app loading. In Settings → Scheduled tasks → New task, entered name PR webhook, prompt Reply with OK. PR value: {{query.pull request}}, selected On webhook, set Duplicate request key to {{query.pull request}} and Coalesce key to {{body.pull request.id}}, then clicked Create task. Base blocked saving with Invalid webhook settings. Head saved as On webhook · Listening. On head, POSTed twice to the saved webhook with ?pull+request=42 and JSON containing {"pull request":{"id":42}}; opened Deliveries and observed Opened window followed by Duplicate. The base could not reach delivery steps because saving was blocked. Scenario: Webhook dedupe keys accept query and JSON paths containing spacesProven: the scenario fails on base 42f4bcf63f and passes on head a9e901b04b.
Not shown:
|
**v0.1.14-nightly.20261201.5550** · 102 changes from 16 contributors - **Connect more MCP servers.** Connect servers such as Gmail, Drive, and Calendar using your own registered client credentials. - **Faster thread search.** Jump directly to old Find in Thread matches without loading the intervening history. - **Resizable workflow runs.** Open workflow runs in the resizable right panel and use more of wide windows. - **Resumable voice model downloads.** Large voice model downloads resume after connection drops instead of starting over. - **Bitbucket reviewers.** Request reviewers from across your Bitbucket workspace, including members beyond the first 50. - **Organization pull request labels.** View and edit organization labels on Forgejo and Gitea pull requests. - **Unlink pull requests.** Unlink a branch’s pull request from a thread without it automatically reappearing. ### Plus 92 more bug fixes and performance improvements. <details> <summary>Full changelog</summary> ## What's Changed * fix(web): reload workflow definitions after undoing all edits by @StiensWout in pingdotgg/t3code#46471 * fix(web): right-panel launcher keys no longer fire while a context menu is open by @only21mil in pingdotgg/t3code#46481 * fix(web): pressing Escape to dismiss Cite no longer closes Find in Thread by @only21mil in pingdotgg/t3code#46482 * fix(bitbucket): reviewer lookup finds members past the first page of 50 by @shivamhwp in pingdotgg/t3code#46223 * fix(web): stashing a prompt with a failed file upload reports the failure instead of asking to wait by @saphid in pingdotgg/t3code#43991 * fix(web): Enter restores the highlighted stashed prompt by @StiensWout in pingdotgg/t3code#46489 * fix(web): Escape closes an open context menu before the layer beneath it by @only21mil in pingdotgg/t3code#46490 * fix(claude): keep sleep timers with multiple durations awaited across restart by @saphid in pingdotgg/t3code#46488 * fix(gitlab): preserve mode changes in reconstructed merge request patches by @saphid in pingdotgg/t3code#46495 * fix(web): workflows page uses the width of a wide window by @juliusmarminge in pingdotgg/t3code#46487 * fix(server): stalled preview viewers no longer wedge snapshots by @aravhawk in pingdotgg/t3code#46472 * fix(web): keep joined emoji whole in screen-reader announcements by @StiensWout in pingdotgg/t3code#46485 * fix(opencode): count filename globs as file searches by @StiensWout in pingdotgg/t3code#46492 * fix(web): holding the stash shortcut keeps the prompt saved by @StiensWout in pingdotgg/t3code#46493 * fix(shared): first threads stay local in POSIX project paths with backslashes by @saphid in pingdotgg/t3code#46496 * fix(web): keep Workflows open when a pane link has a blank ID by @tiliakoos in pingdotgg/t3code#46494 * fix(web): Mod+S moves an edited queued reply to the prompt stash by @only21mil in pingdotgg/t3code#46499 * feat(server): MCP servers can use an OAuth client you registered by @juliusmarminge in pingdotgg/t3code#46510 * fix(forgejo): pull request label picker and label edits include organization labels by @omaribrahim6 in pingdotgg/t3code#46497 * fix(shared): single-slash http preview URLs no longer open a host named http by @saphid in pingdotgg/t3code#46502 * fix(shared): reject a comma as the only JSON array or object entry by @saphid in pingdotgg/t3code#46501 * fix(source-control): fetched inline comments keep filenames with leading or trailing spaces by @saphid in pingdotgg/t3code#46500 * fix(web): Python traceback links open at the frame's line by @Michel-Liao in pingdotgg/t3code#46505 * fix(web): skip JPEG fill bytes and standalone markers when detecting Display P3 by @saphid in pingdotgg/t3code#46507 * fix(web): holding the stash delete shortcut removes one prompt by @StiensWout in pingdotgg/t3code#46506 * fix(web): bare web URLs stay bare when copied and pasted into the composer by @only21mil in pingdotgg/t3code#46513 * fix(server): reload keybindings when the file is a symlink and its target is edited by @iamshadmantaqi in pingdotgg/t3code#46521 * fix(server): storage cleanup removes task-folder checkouts whose branch changed by @juliusmarminge in pingdotgg/t3code#46527 * fix(contracts): keep trailing spaces in listed file names by @iamshadmantaqi in pingdotgg/t3code#46524 * fix(shared): wildcard preview addresses stay on http after URL canonicalization by @saphid in pingdotgg/t3code#46529 * fix(web): pressing Escape to close Find in Thread keeps the citation highlight by @only21mil in pingdotgg/t3code#46522 * fix(cli): t3 thread start titles keep flag and joined emoji whole by @saphid in pingdotgg/t3code#46532 * fix(server): keep pruned issue workflow runs from repeating by @StiensWout in pingdotgg/t3code#46474 * fix(client-runtime): the PR Author menu can replace a typed author qualifier by @saphid in pingdotgg/t3code#43968 * fix(web): fold the PR diff whose header was clicked by @saphid in pingdotgg/t3code#44079 * fix(server): long browser dialog messages no longer end in a broken character by @tiliakoos in pingdotgg/t3code#46538 * fix(web): screen readers hear pace, reset time and error reason on usage rows by @juliusmarminge in pingdotgg/t3code#46544 * fix(web): open absolute localhost names from the Browser address bar by @saphid in pingdotgg/t3code#46540 * fix(ssh): disconnect no longer waits on a stopped server left as a zombie by @iamshadmantaqi in pingdotgg/t3code#46533 * fix(contracts): let VCS ref search find long valid branch names by @saphid in pingdotgg/t3code#46550 * fix(web): imported VS Code themes color code with their own syntax colors by @Bil0000 in pingdotgg/t3code#46111 * fix(usage): skip non-regular transcript files during usage scans by @saphid in pingdotgg/t3code#46543 * fix(projects): keep the clone folder for a file URL at the filesystem root by @saphid in pingdotgg/t3code#46552 * fix(client-runtime): highlight inline scripts after bundled env unset options by @saphid in pingdotgg/t3code#46556 * fix(server): shortened commit text keeps a joined emoji whole by @iamshadmantaqi in pingdotgg/t3code#46545 * fix(shared): preview .cts files that Linux labels application/typescript by @iamshadmantaqi in pingdotgg/t3code#46563 * fix(web): second Mod+T keeps right-panel Add menu shortcuts working by @only21mil in pingdotgg/t3code#46562 * fix(web): issue rows show the hand cursor on hover, like pull request rows by @flamboh in pingdotgg/t3code#46553 * fix(server): imported thread titles no longer end in half a flag or joined emoji by @iamshadmantaqi in pingdotgg/t3code#46558 * fix(server): parse webhook JSON by media type rather than a parameter substring by @saphid in pingdotgg/t3code#46567 * fix(source-control): route nested GitLab merge requests before GitHub prefix matches by @saphid in pingdotgg/t3code#46560 * fix: jump directly to old thread search matches by @Yash-Singh1 in pingdotgg/t3code#46285 * fix(client-runtime): do not label heredoc body text as a command after a continued line by @saphid in pingdotgg/t3code#46555 * fix(server): do not schedule a fixed-time task twice during fall-back by @saphid in pingdotgg/t3code#46564 * fix(client-runtime): keep literal backslashes in double-quoted heredoc delimiters by @saphid in pingdotgg/t3code#46570 * test(web): wait for the dialog's own focus before opening the context menu over it by @juliusmarminge in pingdotgg/t3code#46592 * fix(contracts): accept webhook dedupe placeholders for query keys containing spaces by @saphid in pingdotgg/t3code#46569 * fix(web): open schemeless local addresses with spaces in their paths by @juliusmarminge in pingdotgg/t3code#46586 * perf(web): resting on an issue row loads its detail, so the panel opens filled in by @flamboh in pingdotgg/t3code#46579 * fix(web): keep explicit links when bare URLs end in autolink-trimmed punctuation by @only21mil in pingdotgg/t3code#46577 * fix(mobile): SVG images open full screen on Android instead of spinning forever by @Jacksondr5 in pingdotgg/t3code#39530 * fix(client-runtime): highlight Python inline code after the hash-based pyc option by @saphid in pingdotgg/t3code#46580 * fix(web): slash-command description tooltip closes when a modal opens over the menu by @juliusmarminge in pingdotgg/t3code#46593 * fix(usage): reparse a grown transcript after atomic file replacement by @saphid in pingdotgg/t3code#46581 * fix(web): end terminal links at CJK punctuation that follows ASCII by @iamshadmantaqi in pingdotgg/t3code#46585 * chore(cursor): upgrade SDK to 1.5.3 by @Yash-Singh1 in pingdotgg/t3code#46595 * fix(client-runtime): highlight inline scripts after bundled sudo user options by @iamshadmantaqi in pingdotgg/t3code#46587 * fix(server): keep pull request watches from waking moved threads by @StiensWout in pingdotgg/t3code#46571 * fix(web): keep the selected tab in Workflows links by @StiensWout in pingdotgg/t3code#46603 * fix(preview): size a desktop-hosted tab for the client watching it by @juliusmarminge in pingdotgg/t3code#45961 * fix(web): / and Mod+F in Settings no longer jump to search over an open context menu by @only21mil in pingdotgg/t3code#46597 * fix(server): preserve the pending run when saving a legacy one-minute interval by @saphid in pingdotgg/t3code#46583 * fix(web): holding the settle or pin shortcut no longer toggles it back by @Mnigos in pingdotgg/t3code#46602 * fix(server): large voice model downloads resume after connection drops by @juliusmarminge in pingdotgg/t3code#46611 * fix(server): distinguish literal brackets from webhook filter wildcards by @saphid in pingdotgg/t3code#46606 * fix(server): long select options in the streamed browser no longer end in a broken character by @saphid in pingdotgg/t3code#46610 * fix(server): preserve a leading question mark in webhook parameter names by @saphid in pingdotgg/t3code#46598 * fix(shared): preview Perl, awk and csh scripts labelled by Linux MIME types by @iamshadmantaqi in pingdotgg/t3code#46619 * fix(web): Mod+S no longer stashes or restores while a dialog or context menu is open by @only21mil in pingdotgg/t3code#46623 * fix(source-control): preserve mixed line endings when removing merge credits by @saphid in pingdotgg/t3code#46620 * fix(gitlab): keep multiline issue titles in rename activity by @saphid in pingdotgg/t3code#46622 * fix(web): keep both items when copying a list at the nine-digit marker limit by @saphid in pingdotgg/t3code#46625 * fix(contracts): keep preview annotations from pages with long URLs by @saphid in pingdotgg/t3code#46612 * fix(client-runtime): typed absolute project paths with dot segments are collapsed by @iamshadmantaqi in pingdotgg/t3code#46618 * fix(web): ODT previews keep bold, italic, underline and strikethrough by @iamshadmantaqi in pingdotgg/t3code#46626 * fix(web): text generation settings skip providers turned off for the project by @saphid in pingdotgg/t3code#46632 * fix(web): clear unsaved workflow status after undo by @StiensWout in pingdotgg/t3code#46636 * fix(web): effort shortcut closes the nested Permissions menu in the model picker by @only21mil in pingdotgg/t3code#46640 * fix(server): large OpenCode events no longer stall the server by @juliusmarminge in pingdotgg/t3code#46643 * fix(web): inline thread details card grows with the interface font size by @juliusmarminge in pingdotgg/t3code#46641 * fix(web): workflow runs open in the resizable right panel by @juliusmarminge in pingdotgg/t3code#46644 * fix(web): copied chat links keep literal character references in their destination by @saphid in pingdotgg/t3code#46657 * fix(source-control): preserve merge-message code fences with Unicode line separators in their info strings by @saphid in pingdotgg/t3code#46649 * fix(server): delegated worktrees in multi-repo folders keep the parent's repositories and branch by @juliusmarminge in pingdotgg/t3code#46654 * fix(mobile): render inline base64 SVGs with URL fragments by @saphid in pingdotgg/t3code#46658 * fix(acp): disconnect sessions opened by an in-flight MCP initialize by @saphid in pingdotgg/t3code#46652 * fix(mobile): Android thread search no longer jumps back to an older query by @juliusmarminge in pingdotgg/t3code#46671 * fix: the branch's pull request stays unlinked once you unlink it by @kr4chinin in pingdotgg/t3code#46662 * fix(dev): restart the server when a populated source directory is moved into place by @saphid in pingdotgg/t3code#46670 * fix(acp): omit skipped optional text that cannot be empty by @saphid in pingdotgg/t3code#46667 * fix(client-runtime): highlight inline scripts after sudo prompt, host, role and type options by @saphid in pingdotgg/t3code#46674 * fix(opencode): republish models when a catalog change only affects legacy flags by @juliusmarminge in pingdotgg/t3code#46677 **Full Changelog**: pingdotgg/t3code@v0.1.14-nightly.20261201.5530...v0.1.14-nightly.20261201.5550 </details> Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.14-nightly.20261201.5550
…Wave 1B) Ported 92 clean, non-locked, non-redline upstream commits from 772e3d4..1e6e7d7 with automated i18n catalog sync (vp run sync:t4-i18n --ref 1e6e7d7), shared-tooltip alignment (pingdotgg#47040), and macOS realpath compatibility in UsageService.test.ts (pingdotgg#46543). Upstream commits: - 46a13b9 fix(web): reload workflow definitions after undoing all edits (pingdotgg#46471) - 6cb0e70 fix(web): pressing Escape to dismiss Cite no longer closes Find in Thread (pingdotgg#46482) - 97811c9 fix(bitbucket): reviewer lookup finds members past the first page of 50 (pingdotgg#46223) - 9183596 fix(gitlab): preserve mode changes in reconstructed merge request patches (pingdotgg#46495) - b16c455 fix(shared): first threads stay local in POSIX project paths with backslashes (pingdotgg#46496) - f5b0d08 fix(web): keep Workflows open when a pane link has a blank ID (pingdotgg#46494) - 2c5bbcd fix(shared): reject a comma as the only JSON array or object entry (pingdotgg#46501) - d0e786c fix(source-control): fetched inline comments keep filenames with leading or trailing spaces (pingdotgg#46500) - 8dd95ca fix(web): skip JPEG fill bytes and standalone markers when detecting Display P3 (pingdotgg#46507) - a4ae535 fix(server): reload keybindings when the file is a symlink and its target is edited (pingdotgg#46521) - 9790b79 fix(server): storage cleanup removes task-folder checkouts whose branch changed (pingdotgg#46527) - 8983bb4 fix(web): pressing Escape to close Find in Thread keeps the citation highlight (pingdotgg#46522) - adf6562 fix(ssh): disconnect no longer waits on a stopped server left as a zombie (pingdotgg#46533) - 4230a15 fix(usage): skip non-regular transcript files during usage scans (pingdotgg#46543) - 9eba01e fix(web): issue rows show the hand cursor on hover, like pull request rows (pingdotgg#46553) - ae9bc1b fix(server): imported thread titles no longer end in half a flag or joined emoji (pingdotgg#46558) - 8adc39c fix(server): parse webhook JSON by media type rather than a parameter substring (pingdotgg#46567) - 3abbeba fix(source-control): route nested GitLab merge requests before GitHub prefix matches (pingdotgg#46560) - cb92d66 fix(server): do not schedule a fixed-time task twice during fall-back (pingdotgg#46564) - 4861433 fix(contracts): accept webhook dedupe placeholders for query keys containing spaces (pingdotgg#46569) - 7b0d949 fix(usage): reparse a grown transcript after atomic file replacement (pingdotgg#46581) - 48440ca fix(server): preserve the pending run when saving a legacy one-minute interval (pingdotgg#46583) - 60c4a83 fix(web): holding the settle or pin shortcut no longer toggles it back (pingdotgg#46602) - ec97f79 fix(server): large voice model downloads resume after connection drops (pingdotgg#46611) - c246a87 fix(server): distinguish literal brackets from webhook filter wildcards (pingdotgg#46606) - 85471b3 fix(server): preserve a leading question mark in webhook parameter names (pingdotgg#46598) - 0d0c744 fix(source-control): preserve mixed line endings when removing merge credits (pingdotgg#46620) - 81ddaaa fix(contracts): keep preview annotations from pages with long URLs (pingdotgg#46612) - eec16a0 fix(web): text generation settings skip providers turned off for the project (pingdotgg#46632) - 14b32cc fix(web): clear unsaved workflow status after undo (pingdotgg#46636) - 3ed86fd fix(source-control): preserve merge-message code fences with Unicode line separators in their info strings (pingdotgg#46649) - 9c5fc72 fix(mobile): render inline base64 SVGs with URL fragments (pingdotgg#46658) - 9485d30 fix(acp): disconnect sessions opened by an in-flight MCP initialize (pingdotgg#46652) - a2fc74d fix(dev): restart the server when a populated source directory is moved into place (pingdotgg#46670) - eca5cb0 fix(opencode): republish models when a catalog change only affects legacy flags (pingdotgg#46677) - 72d1b52 fix(web): do not throttle Changes revalidation after a skipped read (pingdotgg#46685) - 2e42465 fix(web): keep preview annotations from pages with very long titles (pingdotgg#46678) - 6c0cd0b fix(shared): keep backticks literal in sent file mention labels (pingdotgg#46706) - fafe64b fix(web): ignore insight openers inside Markdown comments (pingdotgg#46710) - ed721f7 fix(web): terminal excerpts number the rows that hold the selected text (pingdotgg#46703) - af4760c fix(server): remove retained partial voice downloads when deleting a model (pingdotgg#46715) - ec128fa fix(server): fall back to JS realpath when Windows native realpath fails on FUSE drives (pingdotgg#46695) - 894696d fix(server): follow a retargeted keybindings symlink without restarting (pingdotgg#46726) - 5c5dfbd fix(server): Send now on a provider disabled for the project reports why instead of doing nothing (pingdotgg#46734) - facc02e fix(web): browser tests no longer reach the live server through T3CODE_PORT (pingdotgg#46738) - 1636cca fix(web): let Enter exit code blocks with CRLF blank lines (pingdotgg#46747) - 47e9e6b fix(shared): render insight callouts after a leading byte-order mark (pingdotgg#46748) - 3249d18 fix(shared): preserve dot-segment IDs in assistant citations (pingdotgg#46749) - 60aff83 fix(web): Escape dismisses the keyboard-focused timeline minimap preview card (pingdotgg#46762) - 63c11ea fix(web): preserve wrapped reference labels in quoted PR definitions (pingdotgg#46772) - 89ba000 fix(mobile): show the correct unit for a single cache-write token (pingdotgg#46787) - e1fe44d fix(shared): palette search finds stroke letters by their plain look-alike (pingdotgg#46811) - 8a69a83 fix(server): a failed Claude workspace probe keeps the machine's slash commands (pingdotgg#46795) - 4c32975 test(web): clear storage before each browser test file (pingdotgg#46820) - 86d1ea6 fix(web): say one rotated log when cleanup removes one file (pingdotgg#46822) - 5aa4fb6 fix(web): dismissing a focused toast with Escape no longer triggers lower layers (pingdotgg#46810) - 76f5300 test(web): fake environment answers the app's first discovery (pingdotgg#46858) - 8a165fa fix(server): follow an intermediate link retargeted behind the keybindings symlink (pingdotgg#46851) - 6043feb fix(web): keep typed double underscores literal in the rich text composer (pingdotgg#46863) - efff167 fix(shared): pasted links to same-id threads on two machines each keep their machine (pingdotgg#46856) - f2d53fd fix(i18n): give labels that share one key across meanings their own context (pingdotgg#46875) - 3c7ca38 chore(evals): mcp-tool-use can send Claude calls to another endpoint (pingdotgg#46628) - b5c30ad fix(web): closing an editor during a failing autosave retries the draft (pingdotgg#46896) - ac11549 fix(web): keep IME Enter from committing a snooze duration (pingdotgg#46939) - 43061f4 fix(web): keep terminal selections of the same rows that hold different text (pingdotgg#46945) - f039a7b fix(desktop): Linux .deb updates no longer freeze the window while installing (pingdotgg#46949) - f068ca4 fix(web): show an attached image whose file name starts with preview-annotation- (pingdotgg#46938) - 2e0b779 fix(server): long commands typed into a starting terminal are no longer cut off (pingdotgg#46948) - d5ebed7 fix(web): terminal chip points at the held excerpt when the same rows are re-imported (pingdotgg#46959) - 4abc904 fix(web): thread shortcuts no longer act behind open menus or dialogs (pingdotgg#46993) - 23fad95 fix(web): project picker tooltips fade where they opened when the list scrolls (pingdotgg#47040) - ff26e6a fix(server): snoozed threads settle when their pull request merges (pingdotgg#46857) - 3f2afb0 fix(web): new drafts take the workspace default from a refreshing t3.json (pingdotgg#47044) - e7204fd fix(web): editing an attached image cancels a message waiting to send (pingdotgg#47054) - 7e2b094 fix(web): inline math in right-to-left paragraphs no longer renders garbled (pingdotgg#47066) - 4ce0193 fix(server): over-limit messages from workflows are refused before they are stored (pingdotgg#47087) - aa75b46 fix(web): reloaded drafts keep typed underscores (pingdotgg#47082) - 68abffd fix(web): an upload named preview-annotation- no longer shows as an annotation's screenshot (pingdotgg#47081) - 74a0ccb fix(server): find unaccented messages with accented queries in scan mode (pingdotgg#47091) - 11193d8 fix(shared): detect model option changes when repeated IDs change precedence (pingdotgg#47083) - aa6c98f fix(web): assemble multi-segment JPEG ICC profiles by sequence number when detecting Display P3 (pingdotgg#47086) - 63f7006 fix(server): clip workflow source without adding a broken character (pingdotgg#47104) - 8aa5803 fix(server): preserve literal replacement characters in clipped tool diffs (pingdotgg#47108) - 2b2bc06 fix(desktop): SnapShot setup ignores slash-dashed Niri include paths (pingdotgg#47117) - 3c17dbf fix(web): the Voice language filter focuses its search field when opened from the keyboard (pingdotgg#47130) - 3f6d0dd fix(desktop): capture inline favicons with percent-encoded base64 (pingdotgg#47137) - 0b591c7 fix(web): Alt-click and Shift-click on issue links in chat act like ordinary links (pingdotgg#47144) - cd9cda5 feat(web): add arrows and text to image annotations (pingdotgg#45251) - 90e07c6 fix(mobile): stop large reviews freezing when a file is folded (pingdotgg#47128) - c27ae19 fix(mobile): keep image filenames when Android shares a photo with another file (pingdotgg#47147) - fb9f6d0 fix(web): accept HEIC attachments with metadata after a large padding box (pingdotgg#47150) - 4453c5a fix(desktop): removing a SnapShot shortcut leaves compact Niri configs valid (pingdotgg#47134)






Problem
A webhook scheduled task can't be saved with a replay or coalesce key that reads a query parameter (or JSON body field) whose name has a space, such as
{{query.pull request}}. The dedupe runtime resolves exactly that key, butisWebhookDedupeTemplaterejects any whitespace inside a path segment. Web and mobile form validation and the RPC/MCP upsert decode all use that check.Deterministic repro on
origin/main(adf6562ced8207c6becdbbf846d05339fbcaa786): decode{type:"webhook",dedupe:{replayKey:"{{query.pull request}}"}}withScheduledTaskUpsertSchedule, then render the same key withrenderWebhookPrompt(key, {method:"POST",path:"/hook",query:"pull+request=42",headers:{},bodyText:""}, "", true). This is the callwebhookDedupe.tsmakes.isWebhookDedupeTemplatereturnsfalseand decoding fails withSchemaError: Expected <filter> at ["dedupe"]["replayKey"]. The renderer returns{"prompt":"42","missing":[]}for the same key.42dedupes deliveries that carry that parameter.Change
isWebhookDedupeTemplatenow matches{{…}}the way the renderer does and trims the whole expression. It allows whitespace inside key names. It still requires the same roots (body,headers,query,request) and rejects stray braces. Every dot-separated segment must contain a character that is neither a dot nor whitespace, so{{body.issue..id}},{{body.issue. .id}}and{{query.foo.}}are still rejected. Web, mobile, and server all use this one shared helper, so the fix covers every surface.Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
accepts dedupe templates whose key names contain spacesinpackages/contracts/src/scheduledTask.test.ts: fails on base (SchemaError: Expected <filter> at ["dedupe"]["replayKey"]) and passes on head. The invalid-template table now also covers empty, blank and trailing segments ({{body.issue..id}},{{body.issue. .id}},{{query.foo.}}), and all 12 tests in the file pass on head1b80aa948784.vp run check:changedon head1b80aa948784: exit 0 (format, lint, knip, typecheck, tests).Not shown: saving the schedule in a running server and POSTing to its webhook twice. I also did not click through the web or mobile settings forms. Both only call the shared helper changed here.
Authored by Claude Opus 5.5 (Model Hub); reviewed by GPT-6.2 Sol (Codex).
Not shown
1b3321092afdand reports 9 tests; refresh it for1b80aa948784and include the focused 12-test result andvp run check:changedexit output. The current-head check result was reported but not independently verified in this read-only review.scenarios:proverun. If adding integration proof, exercise the actual schedule save on base and head, then assert that a second matching POST on head returnsx-t3-hook-outcome: duplicate; the draft already discloses that this was not run.