fix(openai): rendered native response images

- Normalized completed image_generation_call results into assistant image blocks.
- Persisted image bytes through the session blob store and rendered them in live, replay, ACP, proxy, telemetry, and HTML paths.
- Added response normalization, persistence, and TUI rendering regressions.

Fixes #4768
This commit is contained in:
roboomp
2026-07-14 16:15:53 +00:00
parent b086c5d669
commit b6b947bdbe
31 changed files with 323 additions and 58 deletions
@@ -57,10 +57,11 @@ function getMessageText(message: AgentMessage): string {
if (!("content" in message)) return "";
if (typeof message.content === "string") return message.content;
if (!Array.isArray(message.content)) return "";
return message.content
.filter(isTextContentBlock)
.map(content => content.text)
.join("\n");
const text: string[] = [];
for (const content of message.content) {
if (isTextContentBlock(content)) text.push(content.text);
}
return text.join("\n");
}
function createAssistantResponse(text: string) {