You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): a queued scheduled-task run no longer blocks snoozing its thread - #44827
When a scheduled task has a run queued on a thread, snoozing the thread fails with Thread <id> has a queued run and cannot be snoozed. instead of snoozing it. #43139 made scheduled-task runs automatic wakes, and thread.settle excludes them, but thread.snooze still checks only notification and delegatedCompletion.
Change
Add message.scheduledTaskId !== undefined to automaticMessageIds in thread.snooze (apps/server/src/orchestration-v2/Orchestrator.ts). Scheduled-task messages carry scheduledTaskId (usually createdBy: "user"), so queued scheduled runs no longer block snooze while user-sent queued runs still do unless held behind a usage limit. Extend snooze queued runs in apps/server/src/orchestration-v2/runtimeLayer.test.ts with a scheduled-task row.
Scope
Bug fix for an error refusing a valid snooze action. Small single-file fix for an oversight noted under "Not in this change" in #43139; no separate issue needed.
Verification
Found by auditing Orchestrator.ts snooze guards against #43139 and thread.settle, then reproduced on Linux web (T3CODE_DEV_SEED=0 TZ=UTC, Replay (dev) with defaultRuntimeMode: "approval-required" and the approval scenario).
Setup: Linux Chromium 156, light theme, 1280×800, fresh isolated data (TZ=UTC, Replay (dev)). Steps: Start approval-held thread → create continuing scheduled task (Queued check) → Run now → Stop generation → sidebar Snooze thread → In 3 hours (on 7be43220ff, reopen from Snoozed 1 to show snooze status and the held queued message).
Desktop (Electron) and mobile (iOS/Android) clients (server-only fix verified on Linux web).
Cron and webhook triggers (same scheduledTaskId message), and snoozing through MCP t3_thread_organize (same thread.snooze command).
Focused tests and checks
Base 9762a3c219 (vp test run src/orchestration-v2/runtimeLayer.test.ts -t "only user messages block snooze" with scheduled-task row): 1 failed (Thread snooze-queued:scheduled-task has a queued run and cannot be snoozed.), 4 passed.
Head 7be43220ff (vp test run src/orchestration-v2/runtimeLayer.test.ts -t "snooze"): 15 passed, 0 failed.
Head 7be43220ff (vp run check:changed 9762a3c2195e04678661fc6a6c73d364e3911d46): exit 0 (format, lint 0 warnings/0 errors, knip 1/2, knip 2/2, graphql, typecheck 3 packages, test 5 files / 254 tests passed).
Real web scenario on 9762a3c219 vs 7be43220ff: failed on base (ASSERTION_FAILED on Snoozed 1, refusal toast observed), passed on head (Snoozed 1, Wake now, and held Automation Queued check observed).
Reviewing files that changed from the base of the PR and between 7be4322 and bacb0d8.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
Scheduled-task messages are now classified as automatic during queued-run snooze validation. The test covers scheduled-task messages alongside other queued-run kinds.
Changes: Queued-run snooze validation
Layer / File(s)
Summary
Classify scheduled-task runs as automatic apps/server/src/orchestration-v2/Orchestrator.ts, apps/server/src/orchestration-v2/runtimeLayer.test.ts
The orchestrator excludes messages with a scheduledTaskId from the user-run snooze check. The test covers scheduled-task messages and confirms that ordinary queued user work remains subject to the existing check.
Snoozing a thread with a queued scheduled-task run now succeeds, while user-sent queued runs still block it. No remaining merge risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a queued scheduled-task run no longer blocks snoozing a thread. The raw summary shows thread.snooze now treats messages with a scheduledTaskId as automatic, so que…
Description check
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section states the failure and its cause. The Change section names the file and t…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: a queued scheduled-task run no longer blocks snoozing a thread. The raw summary shows thread.snooze now treats messages with a scheduledTaskId as automatic, so queued scheduled-task runs are excluded from the queued-run check. The title is specific and matches the changeset, and it uses the conventional commit format from the repository template.
Full details: Description check
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section states the failure and its cause. The Change section names the file and the one-line fix. The Scope section explains why no issue link is needed for this small fix and links #43139. The Verification section lists focused test commands, observed results, before/after screenshots, and items not checked (desktop, mobile, cron, webhook, MCP). The author also reports the agent model at the end, as the template asks. The description is detailed and matches the change.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Real web app, Replay (dev), fresh synthetic data, light theme, 1440×1000 screenshots.
Steps: Start an approval-held thread in Supervised mode → create Queued check targeting that thread → Run now → Stop generation while the automation remains queued → sidebar Snooze → In 3 hours → await server response → reload and check snooze and queue preservation.
Proven: the scenario fails on base and passes on head.
…rver)
Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix (react-native-worklets@0.14.0 patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)
Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes
Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes
Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a scheduled task has a run queued on a thread, snoozing the thread fails with
Thread <id> has a queued run and cannot be snoozed.instead of snoozing it. #43139 made scheduled-task runs automatic wakes, andthread.settleexcludes them, butthread.snoozestill checks onlynotificationanddelegatedCompletion.Change
Add
message.scheduledTaskId !== undefinedtoautomaticMessageIdsinthread.snooze(apps/server/src/orchestration-v2/Orchestrator.ts). Scheduled-task messages carryscheduledTaskId(usuallycreatedBy: "user"), so queued scheduled runs no longer block snooze while user-sent queued runs still do unless held behind a usage limit. Extendsnooze queued runsinapps/server/src/orchestration-v2/runtimeLayer.test.tswith ascheduled-taskrow.Scope
Bug fix for an error refusing a valid snooze action. Small single-file fix for an oversight noted under "Not in this change" in #43139; no separate issue needed.
Verification
Found by auditing
Orchestrator.tssnooze guards against #43139 andthread.settle, then reproduced on Linux web (T3CODE_DEV_SEED=0 TZ=UTC,Replay (dev)withdefaultRuntimeMode: "approval-required"and theapprovalscenario).Setup: Linux Chromium 156, light theme, 1280×800, fresh isolated data (
TZ=UTC,Replay (dev)).Steps: Start approval-held thread → create continuing scheduled task (
Queued check) → Run now → Stop generation → sidebarSnooze thread→In 3 hours(on7be43220ff, reopen fromSnoozed 1to show snooze status and the held queued message).Base 9762a3c: Snooze fails with queued-run toast and thread stays active
Head 7be4322: Thread snoozed, scheduled run still queued
Links:
apps/server/src/orchestration-v2/runtimeLayer.test.ts, #43139.Not shown:
scheduledTaskIdmessage), and snoozing through MCPt3_thread_organize(samethread.snoozecommand).Focused tests and checks
9762a3c219(vp test run src/orchestration-v2/runtimeLayer.test.ts -t "only user messages block snooze"withscheduled-taskrow): 1 failed (Thread snooze-queued:scheduled-task has a queued run and cannot be snoozed.), 4 passed.7be43220ff(vp test run src/orchestration-v2/runtimeLayer.test.ts -t "snooze"): 15 passed, 0 failed.7be43220ff(vp run check:changed 9762a3c2195e04678661fc6a6c73d364e3911d46): exit 0 (format,lint0 warnings/0 errors,knip 1/2,knip 2/2,graphql,typecheck3 packages,test5 files / 254 tests passed).9762a3c219vs7be43220ff: failed on base (ASSERTION_FAILEDonSnoozed 1, refusal toast observed), passed on head (Snoozed 1,Wake now, and heldAutomation Queued checkobserved).Generated with Gemini 4 Neon in T3 Code Nightly