fix(chat): keep successful quiet scheduled checks out of replies #48275
main fromrefs/pull/48275/head·opened View on GitHubProblem#
A scheduled check that finishes with no report can leave (empty response) in its thread. If the assistant posted progress first, the current timeline can instead display that progress as its final answer. Both make a successful quiet check look like it has something to report. Fixes #48199.
Change#
Use the scheduled prompt and its completed run to recognize a blank terminal answer. Leave the prompt in the timeline and keep earlier commentary under Worked. A human steer, a real answer or a provider error remains visible. An embedded result keeps its card. This changes the web timeline and its fold lookup; the scheduler, stored messages and provider output stay the same.
Verification#
On the same two synthetic turns in Chromium, a75e74eb48 showed a blank reply or promoted commentary. On this branch the first turn ends at the scheduled prompt. The second ends at Worked; opening it shows the original commentary.
| Case | Before | After |
|---|---|---|
| No progress or report | ||
| Progress, no report |
All 149 timeline logic tests and all 114 timeline Chromium tests passed. Coverage includes historical and current runs, a human steer, a real report, a completed transport error and an HTML result. The web package typechecked. These screenshots exercise the rendered web timeline with synthetic projected runs; no live provider was used.
Model: GPT-6.2 Astra (Codex harness).
- 1
valkyriweb(GitHub profile, opens in a new tab) linked this to fix #48199
tanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
Approvability#
Verdict: Approved at
07afd44Macroscope's review found this PR approvable — This hides empty replies from successful quiet scheduled checks while retaining work history and protecting diagnostic and embedded-result visibility. The changes are confined to timeline presentation and do not alter task execution or stored data.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
The timeline now uses run status and prompt linkage to classify blank completed scheduled replies. Eligible quiet replies can be omitted, while failures and embedded results remain represented. The timeline and thread-find fold lookup receive the expanded run data.
Changes: Scheduled timeline handling
Layer / File(s) Summary Run metadata wiring
apps/web/src/components/chat/MessagesTimeline.tsx,apps/web/src/components/chat/useThreadFindPositionReader.tsThe timeline and thread-find position reader pass run status and user-message IDs into row and fold derivation. Scheduled blank-final classification
apps/web/src/components/chat/MessagesTimeline.logic.tsRun-aware classification identifies eligible blank completed scheduled finals as quiet or diagnostic based on errors and embedded results. Row visibility and folding
apps/web/src/components/chat/MessagesTimeline.logic.tsRow construction omits eligible quiet terminal messages. Diagnostic runs are excluded from folding. Scheduled-final regression coverage
apps/web/src/components/chat/scheduledTimeline.test-fixtures.ts,apps/web/src/components/chat/MessagesTimeline.logic.test.ts,apps/web/src/components/chat/MessagesTimeline.browser.test.tsxA shared fixture supports tests for quiet finals, visible reports, and failures. Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers:
t3dotgg,juliusmarminge
Merge Risk:
Minimal · up to07afd-
The change hides blank replies from successful scheduled runs in the timeline while keeping real reports, errors, steers, and embedded results visible. It affects display only, with no data or backend changes, and no concrete merge-blocking risk was found.
Pre-merge checks:
4-
Check name Status Explanation Title check The title names the primary change: successful quiet scheduled checks no longer show up as replies in the chat timeline. The raw summary and objectives confirm the timeline classifies blank terminal a… Description check The description follows the template. Problem explains the empty-response and promoted-commentary bugs and links #48199. Change explains the timeline and fold lookup fix and what stays visible. Scope …Linked Issues check Linked issue #48199has three coding requirements. (1) A successful no-report scheduled check adds no empty-response placeholder and keeps its work inspectable: the change in MessagesTimeline.logic.ts…Out of Scope Changes check All changed files are in the web timeline area: MessagesTimeline.logic.ts, MessagesTimeline.tsx, useThreadFindPositionReader.ts, and their tests and a test fixture. The change adds an optional runs in… Full details: Title check
-
Explanation
The title names the primary change: successful quiet scheduled checks no longer show up as replies in the chat timeline. The raw summary and objectives confirm the timeline classifies blank terminal answers on completed scheduled runs as quiet, keeps the scheduled prompt visible, and folds earlier commentary under Worked. The title uses the conventional commit form with a fix(chat) scope and stays within the 72-character guideline in the template example.
Full details: Description check
-
Explanation
The description follows the template. Problem explains the empty-response and promoted-commentary bugs and links
#48199. Change explains the timeline and fold lookup fix and what stays visible. Scope is covered by the linked issue, which describes a bug rather than a feature. Verification reports focused test counts, a Chromium before/after comparison with screenshots, and a typecheck. It also states that no live provider was used, and it names the model and harness as the template asks. Scope does not explain why no issue is needed, but it links one, so the gap is minor.
Full details: Linked Issues check
-
Explanation
Linked issue
#48199has three coding requirements. (1) A successful no-report scheduled check adds no empty-response placeholder and keeps its work inspectable: the change in MessagesTimeline.logic.ts marks a completed scheduled run with a blank final answer as quiet, omits that message from row creation, and keeps earlier commentary under the fold (Worked). The PR description screenshots and the scheduledTimeline.test-fixtures.ts cases show this result. (2) Scheduled reports with text or an embedded result stay visible: the summary states that nonblank output counts as an answer and that embedded results keep their card. The logic and browser tests cover a real report and an HTML-render result. (3) Provider failures and unanswered interactive requests are not reclassified: the summary states that a completed error marks the run diagnostic and that the quiet rule applies only when the scheduled prompt is the run's user message. Tests cover a completed transport error and a human steer. Limit: the full logic.ts diff could not be read (output truncated at 16000 bytes; the diff tool reported missing blobs). The verdict relies on the change summary, the PR description, and the described test coverage, which are consistent with each other.
Full details: Out of Scope Changes check
-
Explanation
All changed files are in the web timeline area: MessagesTimeline.logic.ts, MessagesTimeline.tsx, useThreadFindPositionReader.ts, and their tests and a test fixture. The change adds an optional runs input and status/userMessageId fields needed to classify runs, and it threads that data through fold lookup and thread-find position reading. The PR description states that the scheduler, stored messages, and provider output are unchanged. The summary lists no changes to exported declarations beyond these input signatures. No unrelated change is evident. Limit: the complete logic.ts diff was not readable, so the absence of unrelated edits inside that file rests on the summary.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 4b81999
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1fdefbdc-a600-4f71-944a-21dc8ec999fb
Commits-
Reviewing files that changed from the base of the PR and between 4b8199987cb63f82912b8f3dbe9de6a96cdb057b and 07afd442f4a20cc9129197590be70fb9a5dee1be.
Files selected for processing: 6-
apps/web/src/components/chat/MessagesTimeline.browser.test.tsxapps/web/src/components/chat/MessagesTimeline.logic.test.tsapps/web/src/components/chat/MessagesTimeline.logic.tsapps/web/src/components/chat/MessagesTimeline.tsxapps/web/src/components/chat/scheduledTimeline.test-fixtures.tsapps/web/src/components/chat/useThreadFindPositionReader.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
-
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes