Skip to content

fix: stream reasoning in live chat - #68982

Closed
91wan wants to merge 3 commits into
openclaw:mainfrom
91wan:fix/control-ui-streaming-reasoning
Closed

91wan wants to merge 3 commits into
openclaw:mainfrom
91wan:fix/control-ui-streaming-reasoning

Conversation

@91wan

@91wan 91wan commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve assistant streaming message payloads so live chat can carry thinking and text together
  • wire reasoning stream events through gateway chat delta/final payloads
  • allow thinking-only streaming bubbles to render in Control UI
  • add focused gateway and UI regression coverage, plus runtime compatibility for legacy delta broadcast bookkeeping

Validation

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway.config.ts src/gateway/server-chat.agent-events.test.ts src/gateway/server.chat.gateway-server-chat.test.ts src/gateway/server-methods/chat.directive-tags.test.ts
  • cd ui && node ../scripts/run-vitest.mjs run --config vitest.config.ts src/ui/chat-event-reload.test.ts src/ui/controllers/chat.test.ts src/ui/views/chat.test.ts
  • node --check src/gateway/server-chat.ts
  • node --check src/gateway/server-methods/chat.ts
  • node --check ui/src/ui/controllers/chat.ts
  • node --check ui/src/ui/chat/grouped-render.ts
  • node --check ui/src/ui/views/chat.ts

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: L labels Apr 19, 2026
@greptile-apps

greptile-apps Bot commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR wires thinking stream events through the gateway chat delta/final pipeline by adding a reasoningBuffers map to ChatRunState, builds structured assistant messages with both thinking and text content blocks, and updates the Control UI to render thinking-only streaming bubbles. The back-compat deltaLastBroadcastLen alias (sharing the same Map object as deltaLastBroadcastSignature) is safe — abort and clear operations on either key affect the same underlying collection. The one notable inconsistency is that renderStreamingGroup hardcodes showReasoning: true, so thinking blocks are always shown during streaming regardless of the user's "Show Thinking" preference or the session's reasoningLevel.

Confidence Score: 5/5

Safe to merge; the single finding is a cosmetic inconsistency in streaming UI behavior that does not affect correctness or data integrity.

All changes are logically sound. The gateway reasoning buffer, signature-based dedup, and structured message building are correctly implemented. The only finding is P2 (hardcoded showReasoning: true in the streaming group bypassing user preferences), which does not block merge.

ui/src/ui/chat/grouped-render.ts — renderStreamingGroup should accept and forward showReasoning to match renderMessageGroup behavior.

Prompt To Fix All With AI
This is a comment left during a code review.
Path: ui/src/ui/chat/grouped-render.ts
Line: 152-155

Comment:
**`showReasoning` hardcoded true for streaming group**

`renderStreamingGroup` always passes `showReasoning: true`, bypassing the user's "Show Thinking" preference and the session's `reasoningLevel`. A user who has set `showThinking: false` (or is on a session where `reasoningLevel === "off"`) will still see thinking bubbles while the run is in-flight, then have them disappear the moment the message finalises. `renderStreamingGroup` has no corresponding parameter, unlike `renderMessageGroup`. The fix is to thread `showReasoning` through the call site.

Add `showReasoning?: boolean` to the function signature and pass it from `views/chat.ts` where `renderStreamingGroup` is called with `props`-derived `showReasoning`.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "fix(control-ui): stream reasoning in liv..." | Re-trigger Greptile

Comment thread ui/src/ui/chat/grouped-render.ts Outdated
Comment on lines 152 to 155
message,
`stream:${startedAt}`,
{ isStreaming: true, showReasoning: false },
{ isStreaming: true, showReasoning: true },
onOpenSidebar,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 showReasoning hardcoded true for streaming group

renderStreamingGroup always passes showReasoning: true, bypassing the user's "Show Thinking" preference and the session's reasoningLevel. A user who has set showThinking: false (or is on a session where reasoningLevel === "off") will still see thinking bubbles while the run is in-flight, then have them disappear the moment the message finalises. renderStreamingGroup has no corresponding parameter, unlike renderMessageGroup. The fix is to thread showReasoning through the call site.

Add showReasoning?: boolean to the function signature and pass it from views/chat.ts where renderStreamingGroup is called with props-derived showReasoning.

Prompt To Fix With AI
This is a comment left during a code review.
Path: ui/src/ui/chat/grouped-render.ts
Line: 152-155

Comment:
**`showReasoning` hardcoded true for streaming group**

`renderStreamingGroup` always passes `showReasoning: true`, bypassing the user's "Show Thinking" preference and the session's `reasoningLevel`. A user who has set `showThinking: false` (or is on a session where `reasoningLevel === "off"`) will still see thinking bubbles while the run is in-flight, then have them disappear the moment the message finalises. `renderStreamingGroup` has no corresponding parameter, unlike `renderMessageGroup`. The fix is to thread `showReasoning` through the call site.

Add `showReasoning?: boolean` to the function signature and pass it from `views/chat.ts` where `renderStreamingGroup` is called with `props`-derived `showReasoning`.

How can I resolve this? If you propose a fix, please make it concise.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e4a0c38ade

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/ui/chat/grouped-render.ts Outdated
`stream:${startedAt}`,
{ isStreaming: true, showReasoning: false },
{ isStreaming: true, showReasoning: true },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Respect reasoning visibility setting for streaming bubbles

renderChat computes showReasoning from props.showThinking, but the streaming path ignores that and always renders with showReasoning: true. This means users who disabled reasoning still see live thinking blocks during deltas (they then disappear/inconsistently differ from finalized history), which is a behavior regression for the reasoning visibility control.

Useful? React with 👍 / 👎.

Comment thread src/gateway/server-chat.ts Outdated
Comment on lines +702 to +703
if ((!text || shouldSuppressSilent) && !reasoning) {
return undefined;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Suppress hidden heartbeat reasoning in final chat payloads

buildAssistantChatMessage allows a message whenever reasoning exists, even when resolveBufferedChatTextState has already marked text as suppressed (including heartbeat suppression). In heartbeat runs where showOk is false, any streamed thinking event can now produce a reasoning-only final chat message, leaking heartbeat output that the heartbeat visibility gate is meant to hide.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c599a87e76

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gateway/server-chat.ts Outdated
sourceRunId,
);
const hasReasoning = Boolean(resolveBufferedReasoningText(clientRunId));
if (!hasReasoning && (shouldSuppressSilent || shouldSuppressLeadFragment)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep control-token prefixes suppressed during reasoning deltas

Once hasReasoning is true, this guard no longer suppresses lead-fragment control tokens (NO_, ANNOUNCE_, REPLY_). In runs that stream thinking before assistant text, delta payloads can therefore include transient control-token prefixes, because buildAssistantChatMessage only suppresses fully silent tokens and still emits partial text. This leaks internal control text into live chat for silent/skip-style replies; lead-fragment suppression should remain active even when reasoning is present.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af397f9a20

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/ui/app-gateway.ts Outdated
Comment on lines +293 to +297
if (!preserveActiveStream) {
// Reset orphaned chat run state from before disconnect.
// Any in-flight run's final event was lost during the disconnect window.
host.chatRunId = null;
streamingHost.chatStream = null;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Clear stale chat run state when reconnecting after disconnect

This new guard preserves chatRunId/chatStream on hello whenever any streaming state exists, but reconnect creates a fresh gateway client and does not replay events missed during the disconnect window. If a run finishes while the socket is down, the terminal chat event is never seen, this branch skips cleanup, and the UI remains stuck in an active-run state (stop-only controls, deferred history reloads blocked because chatRunId stays non-null). The previous unconditional reset avoided this orphaned-run wedge.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba87576d8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gateway/server-chat.ts Outdated
Comment on lines +1027 to +1029
if (mergedReasoning) {
chatRunState.reasoningBuffers.set(clientRunId, mergedReasoning);
emitChatDelta(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reap reasoning buffers when runs are orphaned

This write path stores per-run reasoning text, but the orphan/timeout cleanup paths still only purge chatRunBuffers, chatDeltaSentAt, and chatDeltaLastBroadcastLen (for example in abortChatRunById and startGatewayMaintenanceTimers). If a run is aborted or the lifecycle terminal event is missed, the new reasoning entry is never deleted, so long-lived gateways can accumulate unbounded stale reasoning data in memory.

Useful? React with 👍 / 👎.

Comment thread ui/src/ui/views/chat.ts Outdated
Comment on lines +1720 to +1721
const hasStreamMessage = !!props.stream && typeof props.stream === "object";
if (hasStreamText || hasStreamMessage) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fall back to reading indicator for hidden reasoning streams

Treating any object stream as renderable means reasoning-only stream payloads now produce kind: "stream" even when showThinking is off. In that case renderGroupedMessage suppresses both text and reasoning content, so the old reading-indicator path is skipped and users see an empty assistant row (avatar/footer) until text arrives, which is a visible regression for reasoning-hidden sessions.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4cd6894a73

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/ui/app-gateway.ts
Comment on lines 454 to 455
if (shouldReplayDeferredSessionMessageReload && !historyReloaded) {
void loadChatHistory(host as unknown as ChatState);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reload history for final events that return no assistant payload

After removing the unconditional state === "final" reload path, this handler now reloads history only for deferred session.message cases. That breaks the existing handleChatEvent contract where a final from a different run returns "final" when payload.message is absent (used to trigger a history refresh for detached/sub-agent announcements), so those messages can be missed while another run is active and no deferred replay fires.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d6b13e19dc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gateway/server-chat.ts Outdated
return;
}
chatRunState.deltaSentAt.set(clientRunId, now);
chatRunState.deltaLastBroadcastLen.set(clientRunId, mergedText.length);
chatRunState.deltaLastBroadcastSignature.set(clientRunId, signature);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reap broadcast signatures when runs are aborted or orphaned

deltaLastBroadcastSignature is populated for every emitted delta, but the abort/orphan cleanup paths still only purge the legacy chatDeltaLastBroadcastLen map (chat-abort.ts and server-maintenance.ts). If a run is timed out/aborted without a normal lifecycle terminal event, this signature entry is never removed, so long-lived gateways can accumulate stale per-run signatures in memory over time.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8dc754d4e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/ui/app-gateway.ts Outdated
function hasActiveStreamingState(host: GatewayHostWithStreamingState) {
return (
host.chatRunId !== null ||
host.chatStream !== null ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat missing chatStream as inactive in stream-state guard

hasActiveStreamingState marks a host as streaming whenever chatStream !== null, but chatStream is optional in GatewayHostWithStreamingState. For hosts that omit this field (so it is undefined), this evaluates to true and causes reconnect onHello to preserve/skip-reset streaming state and skip chat-tab refreshes as if a run were active. That can leave stale chat state and prevent expected history reloads after reconnect for valid GatewayHost callers that don't carry chat-stream fields.

Useful? React with 👍 / 👎.

@openclaw-barnacle openclaw-barnacle Bot added size: S and removed gateway Gateway runtime size: XL labels Apr 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c58063ba94

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (props.stream.trim().length > 0) {
const hasStreamText = typeof props.stream === "string" && props.stream.trim().length > 0;
const hasStreamMessage = !!props.stream && typeof props.stream === "object";
if (hasStreamText || hasStreamMessage) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep reading indicator for reasoning-only structured streams

When props.stream is an object, hasStreamMessage makes buildChatItems emit a kind: "stream" item even if there is no visible text. In that case text becomes "", and the current stream renderer path still renders from item.text only, so reasoning-only deltas (or hidden-reasoning sessions) show an empty assistant bubble instead of the reading indicator. This is a user-visible regression introduced by the new object-stream branch.

Useful? React with 👍 / 👎.

@91wan

91wan commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

Quick status update here:

I replayed the fix onto current main as a minimal 3-file UI change, and the PR is now back to mergeable: MERGEABLE.

At this point, the remaining blocker does not look PR-specific:

  • this PR is failing on check-additional-runtime-topology-gateway / check-additional
  • upstream/main is also failing on the same guard
  • the PR diff is limited to 3 UI files
  • the failure artifact is centered on dist-runtime/extensions/node_modules/..., which does not match the shape of this UI-only change

So my current read is that the PR itself is largely recovered, and it is now blocked by a shared topology-guard failure rather than a PR-local regression.

I do not plan to keep changing these 3 UI files to chase this guard unless there is evidence the failure is actually PR-specific. If this is a known branch-wide/mainline issue, I think the next step is either:

  1. wait for the guard to be fixed on main and rerun, or
  2. have a maintainer confirm it should be treated as a non-PR-specific blocker.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfbf464d7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +297 to +299
const hasStreamText = typeof props.stream === "string" && props.stream.trim().length > 0;
const hasStreamMessage = !!props.stream && typeof props.stream === "object";
if (hasStreamText || hasStreamMessage) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Plumb structured stream payloads through chat state

buildChatItems now treats object-valued props.stream as a renderable stream item, but the rest of the chat pipeline still collapses deltas to plain text (handleChatEvent assigns state.chatStream from extractText(payload.message)) and ChatProps.stream/state are still typed as string | null. That means structured or reasoning-only deltas never reach this new object branch in real runs, so live reasoning still will not render despite the added handling here. This needs end-to-end structured payload plumbing, not only renderer-side support.

Useful? React with 👍 / 👎.

@91wan

91wan commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

Quick update: this PR is now back to a clean, mergeable state.

  • mergeable: MERGEABLE
  • mergeStateStatus: CLEAN
  • the previously failing shared checks are now green, including:
    • check-additional
    • check-additional-runtime-topology-gateway

The latest fixes covered both the history/final bubble path and the live stream rendering path for reasoning visibility, and the targeted UI regressions are now in place on the PR branch.

@clawsweeper

clawsweeper Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Close as superseded: this PR is now a partial Control UI renderer change that does not carry structured thinking payloads through the live gateway/controller path, while the same end-to-end reasoning-stream work is already tracked by #59086 and related open issues.

So I’m closing this here and keeping the remaining discussion on the canonical linked item.

Review details

Best possible solution:

Keep one coordinated end-to-end reasoning stream path that carries structured thinking/text through gateway emission, controller/app state, stream segments, and rendering while preserving the separate /reasoning visibility contract.

Do we have a high-confidence way to reproduce the issue?

Yes at source level. Current main stores live chat streams as text and emits text-only gateway chat messages, so a thinking-only payload has no current path to the renderer branch added here.

Is this the best way to solve the issue?

No. Renderer support is useful, but this PR is not the narrowest maintainable standalone fix because the live stream contract needs to be plumbed end to end and coordinated with #59086.

Security review:

Security review needs attention: The diff has no dependency or workflow changes, but it can widen displayed reasoning by coupling /reasoning visibility to /think effort.

  • [medium] Reasoning visibility can be widened — ui/src/ui/views/chat.ts:199
    resolveStreamingReasoningLevel uses thinking effort when no session reasoning level is set, which can display reasoning blocks for sessions that enabled model thinking without explicitly enabling reasoning display.
    Confidence: 0.9

What I checked:

  • Live PR state: Live GitHub data shows head 33057f4, mergeStateStatus DIRTY, mergeable CONFLICTING, and CI failures on checks-node-agentic-control-plane-agent-chat and checks-node-core. (33057f4720a7)
  • PR diff scope: The current PR diff touches only four UI files, adding object-valued stream handling and renderer tests without changing the gateway chat emission or browser controller live-state plumbing. (ui/src/ui/chat/build-chat-items.ts:17, 33057f4720a7)
  • Current main UI stream state is text-only: Current main still types ChatState.chatStream as string | null, and delta handling stores extractText(payload.message), so structured thinking-only payloads are collapsed before reaching the renderer changed by this PR. (ui/src/ui/controllers/chat.ts:269, 58bfefbad3e3)
  • Current main gateway chat payloads are text-only: Current main emits chat delta, flush, and final assistant messages with only text content blocks, so the live chat path does not currently send thinking blocks to Control UI chat state. (src/gateway/server-chat.ts:502, 58bfefbad3e3)
  • Reasoning visibility contract: The docs describe /reasoning as its own visibility control with fallback off, separate from /think model-effort settings; the PR’s fallback from reasoningLevel to thinkingLevel mixes those controls. Public docs: docs/tools/thinking.md. (docs/tools/thinking.md:102, 58bfefbad3e3)
  • Canonical overlapping implementation: The open broader PR changes src/gateway/server-chat.ts, ui/src/ui/controllers/chat.ts, ui/src/ui/chat/grouped-render.ts, ui/src/ui/types/chat-types.ts, and ui/src/ui/views/chat.ts to emit thinking deltas, preserve structured stream messages, and render them end to end. (src/gateway/server-chat.ts:584, 6bcf01fa051c)

Likely related people:

  • steipete: Recent commits changed v4 chat delta behavior and gateway protocol/chat payload surfaces that this work depends on. (role: recent gateway chat contributor; confidence: medium; commits: a6497b175905, 150bebcd0ce7; files: src/gateway/server-chat.ts, src/gateway/server-chat.agent-events.test.ts, src/gateway/protocol/schema/logs-chat.ts)
  • BunsDev: Recent commits touched Control UI chat state, build-chat-items, and heartbeat/display filtering in the same rendering path changed by this PR. (role: recent Control UI chat contributor; confidence: medium; commits: 60171e863882, 1d6de8da9f03; files: ui/src/ui/chat/build-chat-items.ts, ui/src/ui/controllers/chat.ts, ui/src/ui/app-chat.ts)
  • samzong: Introduced incremental chat delta payload work in the gateway chat path that determines what live Control UI streams receive. (role: adjacent gateway contributor; confidence: medium; commits: 10315ce21593; files: src/gateway/server-chat.ts, src/gateway/server-chat-state.ts, src/gateway/server-methods/chat.ts)
  • jalehman: Recent commits changed gateway chat/tool display and replay behavior adjacent to structured live stream semantics. (role: recent gateway chat contributor; confidence: medium; commits: 4bfd7416f0f9, 30018bddc611; files: src/gateway/server-chat.ts, src/gateway/server-chat.agent-events.test.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against 58bfefbad3e3.

@clawsweeper clawsweeper Bot mentioned this pull request May 10, 2026
@clawsweeper clawsweeper Bot closed this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant