fix(server,web): show Claude thinking blocks in thread timelines #6429
Closedryanhmasten(GitHub profile, opens in a new tab)wants to merge 5 commits into
main fromrefs/pull/6429/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
- apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts lines 379 to 381OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -368,3 +374,8 @@368374 : {};369375 })();370376 switch (event.type) {377+ case "content.delta": {378+ if (379+ (event.payload.streamKind !== "reasoning_text" &&380+ event.payload.streamKind !== "reasoning_summary_text") ||381+ event.payload.delta.length === 0
- apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts line 847OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -809,3 +840,8 @@809840 }810841811842 case "item.completed": {843+ if (event.payload.itemType === "reasoning") {844+ const detail = event.payload.detail?.trim();845+ if (!detail) {846+ return [];847+ }
- apps/server/src/orchestration/Layers/ProjectionPipeline.ts line 1104Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1084,0 +1090,21 @@1090+ kind: row.kind,1091+ summary: row.summary,1092+ payload: row.payload,1093+ turnId: row.turnId,1094+ ...(row.sequence !== undefined ? { sequence: row.sequence } : {}),1095+ createdAt: row.createdAt,1096+ })).pipe(Option.getOrUndefined);1097+ const activity = mergeOrchestrationThreadActivity(1098+ previousActivity,1099+ event.payload.activity,1100+ );1101+ // A reasoning settle with no streamed row and no text of its own is an1102+ // orphan (codex completes reasoning items without a detail string);1103+ // inserting it would render an empty Thought entry.1104+ if (1105+ activity.kind === "reasoning" &&1106+ previousActivity === undefined &&1107+ typeof (activity.payload as { detail?: unknown } | null)?.detail !== "string"1108+ ) {1109+ return;1110+ }
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
5bfa64eb-d638-42bf-acf3-c0a4c2be6d44You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share