What Changed#
Workflow phases now live in their own activity row with a stable id (task-phases:${threadId}:${taskId}) instead of riding on the coordinator's task-progress: row. The row is written only when an event actually carries phases, so nothing can overwrite it with an empty list. It is marked usageSnapshot, which keeps the client fold from reading it as a status change.
Why#
Pending phase chips flicker out and back in the Agents panel during a run. task.progress upserts the coordinator under one stable task-progress: id, so a later tick without phases overwrites the row that had them; the fold then keeps only phases with live members and drops the pending ones until the next tick. A dedicated task-phases: row can't be blanked by a phaseless tick.
Different from #8720 / #8749, which fix the between-phases agent count in client-runtime — this is the phase list dropped at server ingestion during a phase.
UI Changes#
Before — the pending Sequential chip and its greyed-out section blink in and out during the run (sped up ~5x; the appearances are held slightly longer so they're visible):
https://github.com/user-attachments/assets/ee743ee9-1143-4fe1-bb38-962c17dcbeca
After — the pending phase stays visible for the whole run:
https://github.com/user-attachments/assets/07688001-d524-4d31-aef8-141b63a80a6d
Stills from the same before run, seconds apart — the greyed-out Sequential section is there, then gone. After the fix it stays put:
Checklist#
Model: Claude Fable 5
Harness: Claude Code in T3 Code
Note
Low Risk
Scoped change to task.progress activity projection and tests; no auth, persistence schema, or client code changes in this diff.
Overview
Workflow phase chips in the Agents panel stop flickering because server ingestion no longer stores phases on the same upserted task-progress: activity that plain progress ticks overwrite.
When a task.progress event includes a non-empty phases array, ingestion now also emits a separate activity with id task-phases:{threadId}:{taskId}, mirroring the existing split between task-progress: and task-usage:. That row is only created on ticks that carry phases, is marked usageSnapshot: true so the client fold does not treat it as a status change, and includes phase metadata via the same linkage fields as other task activities. Phaseless ticks still update task-progress: only, so they cannot blank the last known phase list.
A regression test asserts phases survive on the dedicated row and that a plain progress tick does not emit or replace task-phases:.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit fb995132acae7afa8312d00cf5c67a21f3f382ca. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Note
Emit dedicated task-phases activity in runtimeEventToActivities for task.progress events#
- In ProviderRuntimeIngestion.ts, the
task.progress branch now detects event.payload.phases via hasPhases and emits an additional activity with id task-phases:<threadId>:<taskId>, tone info, kind task.progress, and usageSnapshot: true.
- The new activity preserves phases and identity linkage in a snapshot that a later plain progress tick cannot blank, fixing workflow phases vanishing from the Agents panel.
- Adds a regression test in ProviderRuntimeIngestion.activity.test.ts verifying the phases activity survives a subsequent plain tick.
- Behavioral Change:
runtimeEventToActivities now produces an extra activity for any task.progress event with a non-empty phases array; downstream consumers of the task-phases:<threadId>:<taskId> id format should be checked.
📊 Macroscope summarized d383942. 1 file reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues#
Summary by CodeRabbit#
New Features
- Workflow phase updates now appear as a dedicated activity snapshot.
- Phase details remain visible when subsequent progress updates are received.
Bug Fixes
- Prevented progress-only updates from overwriting previously displayed workflow phase information.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Team
Run ID:
02d6227a-5d4a-49bc-9060-86d4b4ad6be0📥 Commits
Reviewing files that changed from the base of the PR and between 31c1c5996f88e3acf1566adc11c9b51ac7561554 and fb995132acae7afa8312d00cf5c67a21f3f382ca.
📒 Files selected for processing (2)
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.activity.test.tsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.tsIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The runtime ingestion logic now emits a dedicated activity snapshot when
task.progressincludes workflow phases. Tests verify the stable activity ID, preserved phase payload,usageSnapshotflag, and exclusion for plain progress events.Changes#
Runtime ingestion
apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts,apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.activity.test.tstask.progresshandler detects non-emptyphasesarrays and emits a stabletask-phases:${threadId}:${taskId}activity with the phase payload andusageSnapshot: true. Tests verify phased and plain progress events.Estimated code review effort: 2 (Simple) | ~10 minutes
Merge Risk: ⚪ Minimal · up to
fb995The PR separates workflow phase snapshots from ordinary progress updates so pending phases remain visible in the Agents panel; no actionable merge-blocking risk remains beyond normal checks and review.
Suggested reviewers:
t3dotgg,juliusmarminge,maria-rcks🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
Full details: Description check
Explanation
The description includes the required What Changed, Why, UI Changes, and Checklist sections. It explains the root cause and implementation, provides before-and-after media for the UI change, and marks the checklist items complete.
✨ Finishing Touches
🧪 Generate unit tests (beta)
Warning
Your free Security trial is over. An organization admin can activate Security or dismiss this notice.
Comment `@coderabbitai help` to get the list of available commands.
Warning
⚠️ This pull request shows signs of AI-generated slop (ai_padded_prose). It has been flagged by CodeRabbit slop detection and should be reviewed carefully.