Title: queryWatchFromPatch drops condition.value and windowSec from agent query alert patches · Issue #5065 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: queryWatchFromPatch drops condition.value and windowSec from agent query alert patches · Issue #5065 · triggerdotdev/trigger.dev
X Title: queryWatchFromPatch drops condition.value and windowSec from agent query alert patches · Issue #5065 · triggerdotdev/trigger.dev
Description: hey! while checking out the query alert creation flow added in c5b123d, I noticed queryWatchFromPatch in apps/webapp/app/components/dashboard-agent/alert-creation/draftPatch.ts (lines 60-68) only forwards operator: patch.condition?.opera...
Open Graph Description: hey! while checking out the query alert creation flow added in c5b123d, I noticed queryWatchFromPatch in apps/webapp/app/components/dashboard-agent/alert-creation/draftPatch.ts (lines 60-68) only f...
X Description: hey! while checking out the query alert creation flow added in c5b123d, I noticed queryWatchFromPatch in apps/webapp/app/components/dashboard-agent/alert-creation/draftPatch.ts (lines 60-68) only f...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/5065
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"queryWatchFromPatch drops condition.value and windowSec from agent query alert patches","articleBody":"hey! while checking out the query alert creation flow added in `c5b123d`, I noticed `queryWatchFromPatch` in `apps/webapp/app/components/dashboard-agent/alert-creation/draftPatch.ts` (lines 60-68) only forwards `operator: patch.condition?.operator` into `QueryWatchPrefill` and drops `patch.condition?.value` and `patch.condition?.windowSec`. Because `useQueryAlertDraft` (`apps/webapp/app/components/alerts/useQueryAlertDraft.ts` line 52) also initializes `valueText` to `\"\"`, `draft.valueValid` starts out `false` even when `prefill.operator` is set (so `selected: (done(\"threshold\") || prefill.operator) && draft.valueValid` in `QueryAlertTranscript.tsx` line 240 never pre-selects the threshold step).\n\nis that intentional or should `queryWatchFromPatch` and `useQueryAlertDraft` also carry `condition.value` / `windowSec` when the agent prefills a query alert? happy to put up a quick PR if you want!\n\nss\n","author":{"url":"https://github.com/shafiktanbir","@type":"Person","name":"shafiktanbir"},"datePublished":"2026-10-25T15:00:50Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/5065"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5302e9a7-d6d9-f895-9cc1-86e55af25f9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A72:137FBB:4857A06:60C55DA:6AFAD87A |
| html-safe-nonce | f575c1b3f179f3c9ce199e9f42611ca1cc90c0ef7fa13f7ebd61ccf5b8647a66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTcyOjEzN0ZCQjo0ODU3QTA2OjYwQzU1REE6NkFGQUQ4N0EiLCJ2aXNpdG9yX2lkIjoiODk0MDI4NjI5MDI4OTE1NDE3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5eabaa2769745316d6a455768e4e0e8faf21a2a83197118f8dc078c9afa77a2d |
| hovercard-subject-tag | issue:6025820283 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/5065/issue_layout |
| twitter:image | https://opengraph.githubassets.com/097a5f0068f786a68ef6e7a959d651c0ce85f252f0d3e5b2c6042ed02e939c68/triggerdotdev/trigger.dev/issues/5065 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/097a5f0068f786a68ef6e7a959d651c0ce85f252f0d3e5b2c6042ed02e939c68/triggerdotdev/trigger.dev/issues/5065 |
| og:image:alt | hey! while checking out the query alert creation flow added in c5b123d, I noticed queryWatchFromPatch in apps/webapp/app/components/dashboard-agent/alert-creation/draftPatch.ts (lines 60-68) only f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shafiktanbir |
| hostname | github.com |
| expected-hostname | github.com |
| None | 02f4c00e74911c7cd779fc232c3130cee49eb39fd0ed4bfe3eea3b82c7c18084 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 33c41e9d150e44415272934d676dc63c57d89c3b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width