YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(chat): show live Codex and Claude activity (#6710)
Louis Beaumontab4121503965
diff --git a/COVERAGE.md b/COVERAGE.mdindex 66c3d5b30..647c66399 100644--- a/COVERAGE.md+++ b/COVERAGE.md@@ -28,9 +28,9 @@ results and `cargo llvm-cov` data on top when judging release confidence.| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 102 | 321 | 264.7 | 15 | 114 | 92% |+| windows | 102 | 321 | 264.7 | 15 | 115 | 92% || macos | 128 | 339 | 268.5 | 17 | 123 | 90% |-| linux | 90 | 279 | 234.1 | 14 | 110 | 89% |+| linux | 90 | 279 | 234.1 | 14 | 111 | 89% |### Core Enginediff --git a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx b/apps/screenpipe-app-tauri/components/chat-sidebar.tsxindex d1ea0dd8c..66196de74 100644--- a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx+++ b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx@@ -141,7 +141,10 @@ import {startExternalChatSync,type ExternalChatSyncController,} from "@/lib/chat/external-chat-sync";-import type { ExternalChatSource } from "@/lib/chat/external-chat-parser";+import type {+ ExternalChatSource,+ ExternalChatTurnState,+} from "@/lib/chat/external-chat-parser";import {PIPES_SIDEBAR_COLLAPSED_EVENT,PIPES_SIDEBAR_COLLAPSED_KEY,@@ -492,7 +495,10 @@ export function ChatSidebar({ className, onViewAll }: ChatSidebarProps) {let cancelled = false;const unlistenFns: Array<() => void> = [];- const syncConversationFromDisk = async (id: string) => {+ const syncConversationFromDisk = async (+ id: string,+ externalTurnState?: ExternalChatTurnState,+ ) => {try {const conv = await loadConversationFile(id);if (cancelled || !conv) return;@@ -544,22 +550,50 @@ export function ChatSidebar({ className, onViewAll }: ChatSidebarProps) {importedFrom: meta.importedFrom,draft: false,});- return;+ } else {+ store.actions.upsert(sessionRecordFromMeta(meta));}- store.actions.upsert(sessionRecordFromMeta(meta));+ if (externalTurnState) {+ const active = externalTurnState.isLoading || externalTurnState.isStreaming;+ const assistant = [...conv.messages]+ .reverse()+ .find((message) => message.role === "assistant");+ store.actions.setMessages(id, conv.messages as any);+ store.actions.setStreaming(id, {+ isLoading: externalTurnState.isLoading,+ isStreaming: externalTurnState.isStreaming,+ streamingMessageId: active ? assistant?.id ?? null : null,+ streamingText:+ active && assistant?.content !== "Processing..."+ ? assistant?.content ?? ""+ : "",+ contentBlocks: active ? assistant?.contentBlocks ?? [] : [],+ });+ store.actions.patch(id, {+ status: active ? "streaming" : "idle",+ lastError: undefined,+ });+ }} catch {// ignore: a later save / hydrate can repair the row}};(async () => {- const unlistenSaved = await listen<{ id: string }>(+ const unlistenSaved = await listen<{+ id: string;+ importedFrom?: ExternalChatSource;+ turnState?: ExternalChatTurnState;+ }>("chat-conversation-saved",(event) => {- const id = event.payload?.id;+ const { id, importedFrom, turnState } = event.payload ?? {};if (!id) return;- void syncConversationFromDisk(id);+ void syncConversationFromDisk(+ id,+ importedFrom ? turnState : undefined,+ );});unlistenFns.push(unlistenSaved);diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex 95591deae..54259cee9 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -301,9 +301,9 @@ export function StandaloneChat({setInput,inputRef,});- // Local buffer for regular (agent) sessions. Pipe-watch sessions source- // their messages from the chat store instead — see the `messages` derivation- // below, after `conversationId` is known.+ // Local buffer for regular Screenpipe agent sessions. Read-only live+ // sessions source messages from the chat store instead — see the `messages`+ // derivation below, after `conversationId` is known.const [localMessages, setMessages] = useState<Message[]>([]);// One dialog for every ACP sign-in — CLI login (Cursor, Kimi, OpenCode) and// in-protocol auth-method selection alike. Single piece of state → deduped.@@ -718,18 +718,25 @@ export function StandaloneChat({// eslint-disable-next-line react-hooks/exhaustive-deps}, []);- // Pipe-watch sessions keep their messages in the chat store, not in this- // component's local state. Read them from the store directly and fall back to- // the local buffer for regular sessions, instead of an effect that mirrored- // the store into local state (an extra render + a frame of stale messages).- // Pipe-watch and regular sessions are mutually exclusive — the agent- // foreground handler early-returns for pipe-watch — so the two sources never- // feed the same session. Every `messages` reader below is unchanged.- const pipeWatchMessages = useChatStore((state) =>- conversationId && state.sessions[conversationId]?.kind === "pipe-watch"- ? state.sessions[conversationId]?.messages- : undefined,- );+ // Live read-only sessions keep their messages in the chat store, not in this+ // component's local agent buffer. Pipe watches are written by their event+ // writer; imported Codex/Claude chats are written by the JSONL watcher. Read+ // both directly so a provider append cannot wait on a second local-state+ // adoption path before it appears in the open chat.+ const storeBackedMessages = useChatStore((state) => {+ if (!conversationId) return undefined;+ const session = state.sessions[conversationId];+ const isExternalAgent = session?.importedFrom?.source === "codex"+ || session?.importedFrom?.source === "claude-code";+ return session?.kind === "pipe-watch" || isExternalAgent+ ? session?.messages+ : undefined;+ });+ const isExternalAgentConversation = useChatStore((state) => {+ if (!conversationId) return false;+ const source = state.sessions[conversationId]?.importedFrom?.source;+ return source === "codex" || source === "claude-code";+ });const pipeRunArtifactSource = useChatStore((state) => {if (!conversationId) return null;const context = state.sessions[conversationId]?.pipeContext;@@ -737,7 +744,7 @@ export function StandaloneChat({? `pipe:${context.pipeName}:${context.executionId}`: null;});- const messages = (pipeWatchMessages ?? localMessages) as Message[];+ const messages = (storeBackedMessages ?? localMessages) as Message[];const {consumePendingAttachments,@@ -1779,7 +1786,9 @@ export function StandaloneChat({const activeSourceFooterMessageId =isLoading || isStreaming- ? piMessageIdRef.current ?? currentStreamingMessageId ?? null+ ? isExternalAgentConversation+ ? currentStreamingMessageId ?? piMessageIdRef.current ?? null+ : piMessageIdRef.current ?? currentStreamingMessageId ?? null: null;// Per-turn aggregation plan. Pipe sessions (pipe-run, pipe-watch) and anydiff --git a/apps/screenpipe-app-tauri/e2e/COVERAGE.md b/apps/screenpipe-app-tauri/e2e/COVERAGE.mdindex b3511fc4a..c04dfaa35 100644--- a/apps/screenpipe-app-tauri/e2e/COVERAGE.md+++ b/apps/screenpipe-app-tauri/e2e/COVERAGE.md@@ -23,9 +23,9 @@ can execute more runtime cases than this number shows.| Platform | Specs | Declared tests | Weighted points | Layers | Features | Critical score || --- | --- | --- | --- | --- | --- | --- |-| windows | 102 | 321 | 264.7 | 15 | 114 | 92% |+| windows | 102 | 321 | 264.7 | 15 | 115 | 92% || macos | 128 | 339 | 268.5 | 17 | 123 | 90% |-| linux | 90 | 279 | 234.1 | 14 | 110 | 89% |+| linux | 90 | 279 | 234.1 | 14 | 111 | 89% |## Runtime Results@@ -120,7 +120,7 @@ pass/fail/skip counts.| capture-restart-device-recovery.spec.ts | windows, macos | audio-device, local-api, real-ui-e2e | audio-device-health | high | conditional | real-user-flow | 3 | Opt-in real-audio continuous lane for #6089: a capture-session restart must bring back the same running device set, and the device monitor must survive to recover a device stopped afterwards. || capture-stall-recovery.spec.ts | macos | capture-ocr, local-api, os-integration, real-ui-e2e | app-launch, capture-ocr, health, recording-health-alerts | high | conditional | mixed | 3 | Opt-in macOS full-stack lane proves all selected user-paused monitors remain an intentional disabled/normal state and resume cleanly, bounds a wedged SCK frame worker, proves the privacy-gated CoreGraphics fallback, reproduces a status-Running capture loop going silent, verifies stale and the failure pill, independent per-monitor stall detection with a VisionManager restart and resumed terminal capture progress, same-process UI recovery, and bounded id-based SCK lookup retry. || capture-stall-stage-marker.spec.ts | macos | capture-ocr, local-api, os-integration | app-launch, capture-ocr | high | conditional | api | 1 | Opt-in macOS fault injection parks the capture loop; asserts /health names the frozen CaptureLoopStage with an advancing age while frame_status is stale, and that the stage age collapses once the watchdog recovers capture. |-| chat-agent-activity-sidebar.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-sidebar-groups, chat-unread-state, chat-structured-output | high | strong | real-user-flow | 3 | Recent local Codex and Claude histories sync automatically into the same Recents stream as native Screenpipe chats. Isolated real JSONL files prove that a background provider update does not invent an unread dot when the transcript has no provider attention state, and that a later assistant message updates the already-open chat without a page reload for both providers. A large Claude JSON response stays compact by default and expands into readable, pretty-printed output. The primary sidebar has no import action; right-clicking View all filters by only the sources present, while a hover-only organizer exposes the same filters plus source grouping and priority or latest-update sorting. Captures sparse, crowded mixed-provider, Codex-heavy, and structured-output native UI states with one harness icon per row, expanded pinned rows, and the capped recent working set. |+| chat-agent-activity-sidebar.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-sidebar-groups, chat-unread-state, chat-structured-output, chat-turn-status | high | strong | real-user-flow | 3 | Recent local Codex and Claude histories sync automatically into the same Recents stream as native Screenpipe chats. Isolated real JSONL files prove that a background provider update does not invent an unread dot when the transcript has no provider attention state, that an opened provider chat shows live thinking and running tool feedback, and that tool completion plus later assistant text arrive without a page reload for both providers. A large Claude JSON response stays compact by default and expands into readable, pretty-printed output. The primary sidebar has no import action; right-clicking View all filters by only the sources present, while a hover-only organizer exposes the same filters plus source grouping and priority or latest-update sorting. Captures sparse, crowded mixed-provider, Codex-heavy, and structured-output native UI states with one harness icon per row, expanded pinned rows, and the capped recent working set. || chat-ask-user-tool-card.spec.ts | windows, macos, linux | chat-ai, tauri-command, window-lifecycle | chat, chat-tools, pi-ask-user | medium | partial | mixed | 1 | Synthetic assistant tool block renders the Pi ask_user dropdown and sends the selected answer through the normal chat reply path. || chat-automation-card-duplicate.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-home-card-placeholder-preview, chat-sidebar-dedupe, chat-session-activity | medium | partial | real-user-flow | 1 | The Day Recap automation card previews its user-facing prompt in the empty composer on hover, restores the default placeholder on leave, and creates exactly one persisted conversation and one sidebar row; status-only activity for an unknown session must not create an empty untitled sibling. || chat-coding-worktree.spec.ts | windows, macos, linux | chat-ai, real-ui-e2e | chat, chat-coding-worktrees | high | strong | real-user-flow | 1 | Arms worktree mode without a folder picker, gives a vague ‘make the button blue’ task plus nearby repositories to a real local model, requires that model to call only start_worktree, then creates the conversation-owned worktree through the authenticated desktop broker. Also proves dirty-source preservation, conversation isolation and resume, keeps the worktree identity visible in the chat tab, launches Pi in the owned cwd while ignoring a hostile project-local extension, and verifies work survives Pi stop. Runs in the focused Windows CI list as well as the recursive macOS and Linux suites. |diff --git a/apps/screenpipe-app-tauri/e2e/coverage-map.json b/apps/screenpipe-app-tauri/e2e/coverage-map.jsonindex d2d31de2e..6ef81dc7e 100644--- a/apps/screenpipe-app-tauri/e2e/coverage-map.json+++ b/apps/screenpipe-app-tauri/e2e/coverage-map.json@@ -1143,12 +1143,13 @@"chat","chat-sidebar-groups","chat-unread-state",- "chat-structured-output"+ "chat-structured-output",+ "chat-turn-status"],"criticality": "high","confidence": "strong","ux": "real-user-flow",- "notes": "Recent local Codex and Claude histories sync automatically into the same Recents stream as native Screenpipe chats. Isolated real JSONL files prove that a background provider update does not invent an unread dot when the transcript has no provider attention state, and that a later assistant message updates the already-open chat without a page reload for both providers. A large Claude JSON response stays compact by default and expands into readable, pretty-printed output. The primary sidebar has no import action; right-clicking View all filters by only the sources present, while a hover-only organizer exposes the same filters plus source grouping and priority or latest-update sorting. Captures sparse, crowded mixed-provider, Codex-heavy, and structured-output native UI states with one harness icon per row, expanded pinned rows, and the capped recent working set."+ "notes": "Recent local Codex and Claude histories sync automatically into the same Recents stream as native Screenpipe chats. Isolated real JSONL files prove that a background provider update does not invent an unread dot when the transcript has no provider attention state, that an opened provider chat shows live thinking and running tool feedback, and that tool completion plus later assistant text arrive without a page reload for both providers. A large Claude JSON response stays compact by default and expands into readable, pretty-printed output. The primary sidebar has no import action; right-clicking View all filters by only the sources present, while a hover-only organizer exposes the same filters plus source grouping and priority or latest-update sorting. Captures sparse, crowded mixed-provider, Codex-heavy, and structured-output native UI states with one harness icon per row, expanded pinned rows, and the capped recent working set."},{"spec": "chat-sidebar-groups.spec.ts",diff --git a/apps/screenpipe-app-tauri/e2e/specs/chat-agent-activity-sidebar.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/chat-agent-activity-sidebar.spec.tsindex a39032675..8ce86735d 100644--- a/apps/screenpipe-app-tauri/e2e/specs/chat-agent-activity-sidebar.spec.ts+++ b/apps/screenpipe-app-tauri/e2e/specs/chat-agent-activity-sidebar.spec.ts@@ -22,8 +22,10 @@ const CODEX_ID = "e2e-agent-sidebar-codex";const CLAUDE_ID = "e2e-agent-sidebar-claude";const LIVE_CODEX_SESSION_ID = "e2e-live-codex";const LIVE_CODEX_ID = `imported-codex-${LIVE_CODEX_SESSION_ID}`;+const LIVE_CODEX_WORK_ID = `${LIVE_CODEX_ID}-work-0`;const LIVE_CLAUDE_SESSION_ID = "e2e-live-claude";const LIVE_CLAUDE_ID = `imported-claude-code-${LIVE_CLAUDE_SESSION_ID}`;+const LIVE_CLAUDE_TOOL_MESSAGE_ID = `${LIVE_CLAUDE_ID}-claude-tool`;const FIXTURE_PREFIX = "e2e-agent-sidebar-";const STRUCTURED_CLAUDE_ID = `${FIXTURE_PREFIX}structured-claude`;const STRUCTURED_ACTIVITY_TIMELINE = JSON.stringify({@@ -83,6 +85,11 @@ function writeLiveCodexUserMessage(): string {timestamp: now.toISOString(),payload: { id: LIVE_CODEX_SESSION_ID },}),+ JSON.stringify({+ type: "event_msg",+ timestamp: now.toISOString(),+ payload: { type: "task_started", turn_id: "e2e-codex-turn" },+ }),JSON.stringify({type: "response_item",timestamp: now.toISOString(),@@ -116,6 +123,39 @@ function appendLiveCodexAssistant(}) + "\n");}+function appendLiveCodexToolCall(path: string): void {+ appendFileSync(path, JSON.stringify({+ type: "response_item",+ timestamp: new Date().toISOString(),+ payload: {+ type: "custom_tool_call",+ call_id: "codex-tool",+ name: "exec",+ input: "find /tmp -maxdepth 1",+ },+ }) + "\n");+}++function appendLiveCodexToolResult(path: string): void {+ appendFileSync(path, JSON.stringify({+ type: "response_item",+ timestamp: new Date().toISOString(),+ payload: {+ type: "custom_tool_call_output",+ call_id: "codex-tool",+ output: "fixture command complete",+ },+ }) + "\n");+}++function appendLiveCodexTaskComplete(path: string): void {+ appendFileSync(path, JSON.stringify({+ type: "event_msg",+ timestamp: new Date().toISOString(),+ payload: { type: "task_complete", turn_id: "e2e-codex-turn" },+ }) + "\n");+}+function writeLiveClaudeUserMessage(): string {const directory = join(E2E_EXTERNAL_CHAT_HOME,@@ -161,6 +201,44 @@ function appendLiveClaudeAssistant(}) + "\n");}+function appendLiveClaudeToolCall(path: string): void {+ appendFileSync(path, JSON.stringify({+ type: "assistant",+ sessionId: LIVE_CLAUDE_SESSION_ID,+ uuid: "claude-tool-record",+ timestamp: new Date().toISOString(),+ message: {+ id: "claude-tool",+ role: "assistant",+ model: "claude-e2e",+ stop_reason: "tool_use",+ content: [{+ type: "tool_use",+ id: "claude-tool-call",+ name: "Bash",+ input: { command: "find /tmp -maxdepth 1" },+ }],+ },+ }) + "\n");+}++function appendLiveClaudeToolResult(path: string): void {+ appendFileSync(path, JSON.stringify({+ type: "user",+ sessionId: LIVE_CLAUDE_SESSION_ID,+ uuid: "claude-tool-result",+ timestamp: new Date().toISOString(),+ message: {+ role: "user",+ content: [{+ type: "tool_result",+ tool_use_id: "claude-tool-call",+ content: "fixture command complete",+ }],+ },+ }) + "\n");+}+function writeImportedConversation(id: string,title: string,@@ -269,8 +347,6 @@ describe("unified recents sidebar", function () {const codexPath = writeLiveCodexUserMessage();const codexRow = await $(`[data-testid="chat-row-${LIVE_CODEX_ID}"]`);await codexRow.waitForDisplayed({ timeout: t(15_000) });- appendLiveCodexAssistant(codexPath);- await waitForImportedMessage(LIVE_CODEX_ID, `${LIVE_CODEX_ID}-a1`);expect(await codexRow.$('[aria-label="unread"]').isExisting()).toBe(false);await codexRow.$("button").click();await browser.waitUntil(@@ -280,27 +356,57 @@ describe("unified recents sidebar", function () {await $(`[data-message-id="${LIVE_CODEX_ID}-u1"]`).waitForDisplayed({timeout: t(10_000),});+ const codexThinking = await $("[data-testid='chat-turn-status']");+ await codexThinking.waitForDisplayed({ timeout: t(10_000) });+ expect(await codexThinking.getAttribute("data-phase")).toBe("analyzing");+ await saveScreenshot("chat-external-codex-live-thinking");+ appendLiveCodexAssistant(codexPath);+ await waitForImportedMessage(LIVE_CODEX_ID, `${LIVE_CODEX_ID}-a1`);const codexAssistant = await $(`[data-message-id="${LIVE_CODEX_ID}-a1"]`);- await codexAssistant.waitForDisplayed({ timeout: t(10_000) });+ await codexAssistant.waitForDisplayed({ timeout: t(15_000) });expect(await codexAssistant.getText()).toContain("Codex reply streamed into Screenpipe",);+ appendLiveCodexToolCall(codexPath);+ const codexWork = await $(`[data-message-id="${LIVE_CODEX_WORK_ID}"]`);+ await codexWork.waitForDisplayed({ timeout: t(15_000) });+ await codexWork.$("[data-testid='tool-activity-running-indicator']")+ .waitForDisplayed({ timeout: t(10_000) });+ expect(+ await codexWork.$("[data-testid='tool-activity-widget']")+ .getAttribute("data-activity-state"),+ ).toBe("running");+ expect(await codexWork.getText()).toContain("Finding relevant information");+ await browser.waitUntil(+ async () => !(await $("[data-testid='chat-turn-status']").isExisting()),+ { timeout: t(5_000), timeoutMsg: "expected the live Codex tool to own turn status" },+ );+ await saveScreenshot("chat-external-codex-live-tool");+ appendLiveCodexToolResult(codexPath);appendLiveCodexAssistant(codexPath,"a2","Second Codex reply streamed into the open chat",);+ appendLiveCodexTaskComplete(codexPath);const secondCodexAssistant = await $(`[data-message-id="${LIVE_CODEX_ID}-a2"]`);await secondCodexAssistant.waitForDisplayed({ timeout: t(15_000) });expect(await secondCodexAssistant.getText()).toContain("Second Codex reply streamed into the open chat",);+ const completedCodexTool = secondCodexAssistant.$(+ "[data-testid='tool-activity-widget']",+ );+ await browser.waitUntil(+ async () =>+ (await completedCodexTool.getAttribute("data-activity-state")) === "completed",+ { timeout: t(15_000), timeoutMsg: "expected Codex tool activity to finish live" },+ );+ await saveScreenshot("chat-external-codex-live-completed");const claudePath = writeLiveClaudeUserMessage();const claudeRow = await $(`[data-testid="chat-row-${LIVE_CLAUDE_ID}"]`);await claudeRow.waitForDisplayed({ timeout: t(15_000) });- appendLiveClaudeAssistant(claudePath);- await waitForImportedMessage(LIVE_CLAUDE_ID, `${LIVE_CLAUDE_ID}-a1`);expect(await claudeRow.$('[aria-label="unread"]').isExisting()).toBe(false);await claudeRow.$("button").click();await browser.waitUntil(@@ -310,21 +416,39 @@ describe("unified recents sidebar", function () {await $(`[data-message-id="${LIVE_CLAUDE_ID}-u1"]`).waitForDisplayed({timeout: t(10_000),});+ const claudeThinking = await $("[data-testid='chat-turn-status']");+ await claudeThinking.waitForDisplayed({ timeout: t(10_000) });+ expect(await claudeThinking.getAttribute("data-phase")).toBe("analyzing");+ await saveScreenshot("chat-external-claude-live-thinking");+ appendLiveClaudeToolCall(claudePath);+ const claudeWork = await $(`[data-message-id="${LIVE_CLAUDE_TOOL_MESSAGE_ID}"]`);+ await claudeWork.waitForDisplayed({ timeout: t(15_000) });+ await claudeWork.$("[data-testid='tool-activity-running-indicator']")+ .waitForDisplayed({ timeout: t(10_000) });+ expect(+ await claudeWork.$("[data-testid='tool-activity-widget']")+ .getAttribute("data-activity-state"),+ ).toBe("running");+ await browser.waitUntil(+ async () => !(await $("[data-testid='chat-turn-status']").isExisting()),+ { timeout: t(5_000), timeoutMsg: "expected the live Claude tool to own turn status" },+ );+ await saveScreenshot("chat-external-claude-live-tool");+ appendLiveClaudeToolResult(claudePath);const claudeAssistant = await $(`[data-message-id="${LIVE_CLAUDE_ID}-a1"]`);- await claudeAssistant.waitForDisplayed({ timeout: t(10_000) });+ appendLiveClaudeAssistant(claudePath);+ await waitForImportedMessage(LIVE_CLAUDE_ID, `${LIVE_CLAUDE_ID}-a1`);+ await claudeAssistant.waitForDisplayed({ timeout: t(15_000) });expect(await claudeAssistant.getText()).toContain("Claude reply streamed into Screenpipe",);- appendLiveClaudeAssistant(- claudePath,- "a2",- "Second Claude reply streamed into the open chat",- );- const secondClaudeAssistant = await $(`[data-message-id="${LIVE_CLAUDE_ID}-a2"]`);- await secondClaudeAssistant.waitForDisplayed({ timeout: t(15_000) });- expect(await secondClaudeAssistant.getText()).toContain(- "Second Claude reply streamed into the open chat",+ await browser.waitUntil(+ async () =>+ (await claudeWork.$("[data-testid='tool-activity-widget']")+ .getAttribute("data-activity-state")) === "completed",+ { timeout: t(15_000), timeoutMsg: "expected Claude tool activity to finish live" },);+ await saveScreenshot("chat-external-claude-live-completed");// Restore the sparse fixture before the visual/provenance scenario. The// reload happens only after both live-update assertions have passed.diff --git a/apps/screenpipe-app-tauri/lib/chat/__tests__/external-chat-parser.test.ts b/apps/screenpipe-app-tauri/lib/chat/__tests__/external-chat-parser.test.tsindex 1f5e89208..3417a05c4 100644--- a/apps/screenpipe-app-tauri/lib/chat/__tests__/external-chat-parser.test.ts+++ b/apps/screenpipe-app-tauri/lib/chat/__tests__/external-chat-parser.test.ts@@ -6,6 +6,7 @@ import { describe, expect, it } from "vitest";import {parseClaudeCodeTranscript,parseCodexTranscript,+ parseExternalChatTranscriptSnapshot,} from "@/lib/chat/external-chat-parser";function jsonl(records: unknown[]): string {@@ -66,6 +67,7 @@ describe("external agent chat parsers", () => {role: "assistant",model: "claude-test",content: [{ type: "text", text: "The fixture races its cleanup." }],+ stop_reason: "end_turn",},},{ type: "custom-title", sessionId: "claude-session", customTitle: "Flaky fixture" },@@ -209,6 +211,146 @@ describe("external agent chat parsers", () => {]));});+ it("keeps a Codex tool and turn live until their completion records arrive", () => {+ const records = [+ {+ timestamp: "2026-08-27T15:00:00Z",+ type: "session_meta",+ payload: { id: "live-codex" },+ },+ {+ timestamp: "2026-08-27T15:00:01Z",+ type: "event_msg",+ payload: { type: "task_started", turn_id: "turn-1" },+ },+ {+ timestamp: "2026-08-27T15:00:02Z",+ type: "response_item",+ payload: {+ type: "message",+ id: "u1",+ role: "user",+ content: [{ type: "input_text", text: "inspect the live state" }],+ },+ },+ {+ timestamp: "2026-08-27T15:00:03Z",+ type: "response_item",+ payload: {+ type: "custom_tool_call",+ call_id: "call-1",+ name: "exec",+ input: "find /tmp -maxdepth 1",+ },+ },+ ];+ const options = { sourceId: "fallback", fallbackTimestamp: 1 };+ const active = parseExternalChatTranscriptSnapshot("codex", jsonl(records), options);+ const activeTool = active.conversation?.messages[1].contentBlocks?.find(+ (block) => block.type === "tool",+ );++ expect(active.turnState).toEqual({ isLoading: true, isStreaming: true });+ expect(activeTool).toMatchObject({+ type: "tool",+ toolCall: {+ id: "call-1",+ args: { command: "find /tmp -maxdepth 1" },+ isRunning: true,+ startedAtMs: Date.parse("2026-08-27T15:00:03Z"),+ },+ });++ const completed = parseExternalChatTranscriptSnapshot("codex", jsonl([+ ...records,+ {+ timestamp: "2026-08-27T15:00:04Z",+ type: "response_item",+ payload: {+ type: "custom_tool_call_output",+ call_id: "call-1",+ output: "done",+ },+ },+ {+ timestamp: "2026-08-27T15:00:05Z",+ type: "event_msg",+ payload: { type: "task_complete", turn_id: "turn-1" },+ },+ ]), options);+ const completedTool = completed.conversation?.messages[1].contentBlocks?.find(+ (block) => block.type === "tool",+ );++ expect(completed.turnState).toEqual({ isLoading: false, isStreaming: false });+ expect(completedTool).toMatchObject({+ type: "tool",+ toolCall: {+ id: "call-1",+ isRunning: false,+ result: "done",+ },+ });+ expect(+ completedTool?.type === "tool"+ ? completedTool.toolCall.startedAtMs+ : undefined,+ ).toBeUndefined();+ });++ it("shows Claude as active before its answer and while its tool is running", () => {+ const records = [+ {+ type: "user",+ sessionId: "live-claude",+ uuid: "u1",+ timestamp: "2026-08-27T16:00:00Z",+ message: { role: "user", content: "inspect the live state" },+ },+ ];+ const options = { sourceId: "fallback", fallbackTimestamp: 1 };+ const thinking = parseExternalChatTranscriptSnapshot(+ "claude-code",+ jsonl(records),+ options,+ );++ expect(thinking.turnState).toEqual({ isLoading: true, isStreaming: true });+ expect(thinking.conversation?.messages.at(-1)).toMatchObject({+ role: "assistant",+ content: "Processing...",+ });++ const running = parseExternalChatTranscriptSnapshot("claude-code", jsonl([+ ...records,+ {+ type: "assistant",+ sessionId: "live-claude",+ timestamp: "2026-08-27T16:00:01Z",+ message: {+ id: "a1",+ role: "assistant",+ stop_reason: "tool_use",+ content: [{+ type: "tool_use",+ id: "tool-1",+ name: "Bash",+ input: { command: "pwd" },+ }],+ },+ },+ ]), options);+ const runningTool = running.conversation?.messages.at(-1)?.contentBlocks?.find(+ (block) => block.type === "tool",+ );++ expect(running.turnState).toEqual({ isLoading: true, isStreaming: true });+ expect(runningTool).toMatchObject({+ type: "tool",+ toolCall: { id: "tool-1", isRunning: true },+ });+ });+it("uses the typed request instead of Codex attachment scaffolding", () => {const conversation = parseCodexTranscript(jsonl([{diff --git a/apps/screenpipe-app-tauri/lib/chat/external-chat-import.test.ts b/apps/screenpipe-app-tauri/lib/chat/external-chat-import.test.tsindex 0687a22c7..4bff85c70 100644--- a/apps/screenpipe-app-tauri/lib/chat/external-chat-import.test.ts+++ b/apps/screenpipe-app-tauri/lib/chat/external-chat-import.test.ts@@ -212,6 +212,137 @@ describe("scanExternalChatHistory", () => {expect(mocks.saveConversationFile).not.toHaveBeenCalled();});+ it("broadcasts active and completed Codex turn state even when disk content is unchanged", async () => {+ const userAt = Date.parse("2026-08-27T15:00:02Z");+ const toolAt = Date.parse("2026-08-27T15:00:03Z");+ const outputAt = Date.parse("2026-08-27T15:00:04Z");+ const id = "imported-codex-live-state";+ const baseRecords = [+ {+ timestamp: "2026-08-27T15:00:00Z",+ type: "session_meta",+ payload: { id: "live-state" },+ },+ {+ timestamp: "2026-08-27T15:00:01Z",+ type: "event_msg",+ payload: { type: "task_started", turn_id: "turn-1" },+ },+ {+ timestamp: "2026-08-27T15:00:02Z",+ type: "response_item",+ payload: {+ type: "message",+ id: "u1",+ role: "user",+ content: [{ type: "input_text", text: "show live feedback" }],+ },+ },+ {+ timestamp: "2026-08-27T15:00:03Z",+ type: "response_item",+ payload: {+ type: "custom_tool_call",+ call_id: "call-1",+ name: "exec",+ input: "find /tmp -maxdepth 1",+ },+ },+ ];+ const candidate = {+ source: "codex" as const,+ path: "/fixture/live-state.jsonl",+ sourceId: "live-state",+ modifiedAt: toolAt,+ size: 1024,+ };+ const conversation = (running: boolean, result?: string) => ({+ id,+ title: "show live feedback",+ titleSource: "fallback" as const,+ kind: "chat" as const,+ createdAt: userAt,+ updatedAt: result ? outputAt : toolAt,+ lastUserMessageAt: userAt,+ lastContentAt: result ? outputAt : toolAt,+ lastViewedAt: result ? outputAt : toolAt,+ importedFrom: {+ source: "codex" as const,+ sourceId: "live-state",+ importedAt: userAt,+ },+ messages: [+ {+ id: `${id}-u1`,+ role: "user" as const,+ content: "show live feedback",+ timestamp: userAt,+ provider: "codex",+ importedFrom: "codex" as const,+ },+ {+ id: `${id}-work-0`,+ role: "assistant" as const,+ content: "",+ timestamp: result ? outputAt : toolAt,+ provider: "codex",+ importedFrom: "codex" as const,+ contentBlocks: [{+ type: "tool" as const,+ toolCall: {+ id: "call-1",+ toolName: "exec",+ args: { command: "find /tmp -maxdepth 1" },+ isRunning: running,+ ...(running ? { startedAtMs: toolAt } : {}),+ ...(result ? { result } : {}),+ },+ }],+ },+ ],+ });++ mocks.stat.mockResolvedValue({ size: 1024, mtime: new Date(toolAt) });+ mocks.readTextFile.mockResolvedValue(baseRecords.map((record) => JSON.stringify(record)).join("\n"));+ mocks.loadConversationFile.mockResolvedValue(conversation(true));++ const activeResult = await importExternalChatHistory([candidate], { skipUnchanged: true });+ expect(activeResult).toMatchObject({ imported: 0, updated: 0, skipped: 1, failed: 0 });+ expect(mocks.emit).toHaveBeenLastCalledWith("chat-conversation-saved", expect.objectContaining({+ id,+ turnState: { isLoading: true, isStreaming: true },+ }));++ const completedRecords = [+ ...baseRecords,+ {+ timestamp: "2026-08-27T15:00:04Z",+ type: "response_item",+ payload: {+ type: "custom_tool_call_output",+ call_id: "call-1",+ output: "done",+ },+ },+ {+ timestamp: "2026-08-27T15:00:05Z",+ type: "event_msg",+ payload: { type: "task_complete", turn_id: "turn-1" },+ },+ ];+ mocks.readTextFile.mockResolvedValue(+ completedRecords.map((record) => JSON.stringify(record)).join("\n"),+ );+ mocks.loadConversationFile.mockResolvedValue(conversation(false, "done"));++ const completedResult = await importExternalChatHistory([candidate], { skipUnchanged: true });+ expect(completedResult).toMatchObject({ imported: 0, updated: 0, skipped: 1, failed: 0 });+ expect(mocks.emit).toHaveBeenLastCalledWith("chat-conversation-saved", expect.objectContaining({+ id,+ turnState: { isLoading: false, isStreaming: false },+ }));+ });+it("marks newly discovered external history as already read", async () => {const updatedAt = Date.parse("2026-08-21T12:01:00Z");mocks.stat.mockResolvedValue({ size: 1024, mtime: new Date(updatedAt) });diff --git a/apps/screenpipe-app-tauri/lib/chat/external-chat-import.ts b/apps/screenpipe-app-tauri/lib/chat/external-chat-import.tsindex 961bbaf87..56e8bdd74 100644--- a/apps/screenpipe-app-tauri/lib/chat/external-chat-import.ts+++ b/apps/screenpipe-app-tauri/lib/chat/external-chat-import.ts@@ -13,7 +13,7 @@ import {} from "@/lib/chat-storage";import {externalChatConversationId,- parseExternalChatTranscript,+ parseExternalChatTranscriptSnapshot,type ExternalChatSource,} from "@/lib/chat/external-chat-parser";import type { ChatConversation, ChatMessage } from "@/lib/hooks/use-settings";@@ -23,6 +23,7 @@ export const MAX_EXTERNAL_CHAT_FILE_BYTES = 32 * 1024 * 1024;export const EXTERNAL_CHAT_LOOKBACK_DAYS = 7;const MS_PER_DAY = 24 * 60 * 60 * 1000;+const externalTurnActiveByConversation = new Map<string, boolean>();export interface ExternalChatCandidate {source: ExternalChatSource;@@ -457,35 +458,45 @@ export async function importExternalChatHistory(continue;}const jsonl = await readTextFile(candidate.path);- const conversation = parseExternalChatTranscript(candidate.source, jsonl, {+ const snapshot = parseExternalChatTranscriptSnapshot(candidate.source, jsonl, {sourceId: candidate.sourceId,fallbackTimestamp: candidate.modifiedAt || Date.now(),});+ const conversation = snapshot.conversation;if (!conversation) {result.skipped += 1;continue;}const existing = await loadConversationFile(conversation.id);const prepared = prepareImportedConversation(conversation, existing);- if (+ const active = snapshot.turnState.isLoading || snapshot.turnState.isStreaming;+ const wasActive = externalTurnActiveByConversation.get(conversation.id) === true;+ const unchanged = Boolean(options.skipUnchanged &&existing &&importedConversationIsUnchanged(existing, prepared)- ) {+ );+ if (unchanged) {result.skipped += 1;- continue;+ } else {+ await saveConversationFile(prepared);+ if (existing) result.updated += 1;+ else result.imported += 1;}- await saveConversationFile(prepared);- if (existing) result.updated += 1;- else result.imported += 1;- try {- await emit("chat-conversation-saved", {- id: conversation.id,- importedFrom: candidate.source,- });- } catch {- // Persistence already succeeded; a failed UI broadcast must not turn- // a successful import into a misleading failure count.++ externalTurnActiveByConversation.set(conversation.id, active);+ if (!unchanged || active || wasActive) {+ try {+ await emit("chat-conversation-saved", {+ id: conversation.id,+ importedFrom: candidate.source,+ updatedAt: prepared.updatedAt,+ turnState: snapshot.turnState,+ });+ } catch {+ // Persistence already succeeded; a failed UI broadcast must not turn+ // a successful import into a misleading failure count.+ }}} catch (error) {console.warn(`[chat-import] failed to import ${candidate.source} transcript`, error);diff --git a/apps/screenpipe-app-tauri/lib/chat/external-chat-parser.ts b/apps/screenpipe-app-tauri/lib/chat/external-chat-parser.tsindex b989f7ba3..5d0c4650c 100644--- a/apps/screenpipe-app-tauri/lib/chat/external-chat-parser.ts+++ b/apps/screenpipe-app-tauri/lib/chat/external-chat-parser.ts@@ -13,6 +13,16 @@ export interface ExternalChatParseOptions {importedAt?: number;}+export interface ExternalChatTurnState {+ isLoading: boolean;+ isStreaming: boolean;+}++export interface ExternalChatTranscriptSnapshot {+ conversation: ChatConversation | null;+ turnState: ExternalChatTurnState;+}+const MAX_TITLE_CHARS = 80;const MAX_TOOL_RESULT_CHARS = 20_000;@@ -227,6 +237,13 @@ function parseToolArgs(value: unknown): Record<string, unknown> {return value == null ? {} : { input: value };}+function parseCodexToolArgs(name: string | undefined, value: unknown): Record<string, unknown> {+ if ((name === "exec" || name === "exec_command") && typeof value === "string") {+ return { command: value };+ }+ return parseToolArgs(value);+}+function appendUniqueBlock(message: ChatMessage, block: ImportedContentBlock): void {const blocks = message.contentBlocks ?? [];if (@@ -244,10 +261,10 @@ function appendUniqueBlock(message: ChatMessage, block: ImportedContentBlock): vmessage.contentBlocks = blocks;}-export function parseClaudeCodeTranscript(+function parseClaudeCodeTranscriptSnapshot(jsonl: string,options: ExternalChatParseOptions,-): ChatConversation | null {+): ExternalChatTranscriptSnapshot {const records = parseJsonLines(jsonl);const fallbackTimestamp = options.fallbackTimestamp;const importedAt = options.importedAt ?? Date.now();@@ -257,6 +274,9 @@ export function parseClaudeCodeTranscript(let sessionId = options.sourceId;let aiTitle: string | undefined;let customTitle: string | undefined;+ let turnActive = false;+ let activeTurnKey = "pending";+ let activeTurnTimestamp = fallbackTimestamp;for (const [index, record] of records.entries()) {const type = asString(record.type);@@ -269,6 +289,16 @@ export function parseClaudeCodeTranscript(customTitle = asString(record.customTitle) ?? customTitle;continue;}+ if (type === "system" && asString(record.subtype) === "turn_duration") {+ turnActive = false;+ for (const toolCall of toolCalls.values()) {+ if (toolCall.isRunning) {+ toolCall.isRunning = false;+ delete toolCall.startedAtMs;+ }+ }+ continue;+ }if ((type !== "user" && type !== "assistant") || record.isSidechain === true) continue;const messageRecord = asRecord(record.message);@@ -287,6 +317,8 @@ export function parseClaudeCodeTranscript(if (toolCall) {toolCall.result = truncateToolResult(block?.content);toolCall.isError = block?.is_error === true;+ toolCall.isRunning = false;+ delete toolCall.startedAtMs;}}@@ -298,6 +330,9 @@ export function parseClaudeCodeTranscript(if (isMeta) continue;const text = texts.join("\n\n").trim();if (!text) continue;+ turnActive = true;+ activeTurnKey = asString(record.uuid) ?? String(index);+ activeTurnTimestamp = timestamp;messages.push({id: messageId("claude-code", sessionId, asString(record.uuid), index),role: "user",@@ -352,23 +387,53 @@ export function parseClaudeCodeTranscript(id: callId,toolName: asString(block.name) ?? "tool",args: parseToolArgs(block.input),- isRunning: false,+ isRunning: true,+ startedAtMs: timestamp,};toolCalls.set(callId, toolCall);appendUniqueBlock(assistant, { type: "tool", toolCall });}}++ const reachedVisibleEndTurn = asString(messageRecord.stop_reason) === "end_turn"+ && asArray(content).some((rawBlock) => {+ const block = asRecord(rawBlock);+ return asString(block?.type) === "text" && Boolean(asString(block?.text)?.trim());+ });+ if (reachedVisibleEndTurn) turnActive = false;}- return finishConversation({- source: "claude-code",- sourceId: sessionId,- messages,- explicitTitle: customTitle ?? aiTitle,- titleSource: customTitle ? "user" : aiTitle ? "ai" : undefined,- fallbackTimestamp,- importedAt,- });+ if (turnActive && messages.at(-1)?.role === "user") {+ messages.push({+ id: messageId("claude-code", sessionId, `live-${activeTurnKey}`, messages.length),+ role: "assistant",+ content: "Processing...",+ contentBlocks: [],+ timestamp: activeTurnTimestamp,+ provider: "claude-code",+ importedFrom: "claude-code",+ });+ }++ return {+ conversation: finishConversation({+ source: "claude-code",+ sourceId: sessionId,+ messages,+ explicitTitle: customTitle ?? aiTitle,+ titleSource: customTitle ? "user" : aiTitle ? "ai" : undefined,+ fallbackTimestamp,+ importedAt,+ }),+ turnState: { isLoading: turnActive, isStreaming: turnActive },+ };+}++export function parseClaudeCodeTranscript(+ jsonl: string,+ options: ExternalChatParseOptions,+): ChatConversation | null {+ return parseClaudeCodeTranscriptSnapshot(jsonl, options).conversation;}function isCodexHarnessContext(text: string): boolean {@@ -417,10 +482,10 @@ function cleanCodexUserText(text: string): string {.trim();}-export function parseCodexTranscript(+function parseCodexTranscriptSnapshot(jsonl: string,options: ExternalChatParseOptions,-): ChatConversation | null {+): ExternalChatTranscriptSnapshot {const records = parseJsonLines(jsonl);const fallbackTimestamp = options.fallbackTimestamp;const importedAt = options.importedAt ?? Date.now();@@ -430,6 +495,9 @@ export function parseCodexTranscript(let sessionId = options.sourceId;let pendingTimestamp = fallbackTimestamp;let syntheticAssistantIndex = 0;+ let turnActive = false;+ let activeTurnKey = "pending";+ let activeTurnTimestamp = fallbackTimestamp;const flushPendingAssistant = () => {if (pendingBlocks.length === 0) return;@@ -456,6 +524,25 @@ export function parseCodexTranscript(if (!payload) continue;const timestamp = timestampMs(record.timestamp, fallbackTimestamp);+ if (recordType === "event_msg") {+ const eventType = asString(payload.type);+ if (eventType === "task_started") {+ turnActive = true;+ activeTurnKey = asString(payload.turn_id) ?? activeTurnKey;+ activeTurnTimestamp = timestamp;+ }+ if (eventType === "task_complete") {+ turnActive = false;+ for (const toolCall of pendingToolCalls.values()) {+ if (toolCall.isRunning) {+ toolCall.isRunning = false;+ delete toolCall.startedAtMs;+ }+ }+ }+ continue;+ }+if (recordType === "session_meta") {sessionId = asString(payload.id) ?? asString(payload.session_id) ?? sessionId;continue;@@ -514,11 +601,13 @@ export function parseCodexTranscript(if (payloadType === "function_call" || payloadType === "custom_tool_call") {const callId = asString(payload.call_id) ?? asString(payload.id) ?? `tool-${index}`;+ const toolName = asString(payload.name) ?? "tool";const toolCall = {id: callId,- toolName: asString(payload.name) ?? "tool",- args: parseToolArgs(payload.arguments ?? payload.input),- isRunning: false,+ toolName,+ args: parseCodexToolArgs(toolName, payload.arguments ?? payload.input),+ isRunning: true,+ startedAtMs: timestamp,};pendingToolCalls.set(callId, toolCall);pendingBlocks.push({ type: "tool", toolCall });@@ -529,19 +618,54 @@ export function parseCodexTranscript(if (payloadType === "function_call_output" || payloadType === "custom_tool_call_output") {const callId = asString(payload.call_id);const toolCall = callId ? pendingToolCalls.get(callId) : undefined;- if (toolCall) toolCall.result = truncateToolResult(payload.output);+ if (toolCall) {+ toolCall.result = truncateToolResult(payload.output);+ toolCall.isRunning = false;+ delete toolCall.startedAtMs;+ }pendingTimestamp = timestamp;}}flushPendingAssistant();- return finishConversation({- source: "codex",- sourceId: sessionId,- messages,- fallbackTimestamp,- importedAt,- });+ if (turnActive && messages.at(-1)?.role === "user") {+ messages.push({+ id: messageId("codex", sessionId, `live-${activeTurnKey}`, messages.length),+ role: "assistant",+ content: "Processing...",+ contentBlocks: [],+ timestamp: activeTurnTimestamp,+ provider: "codex",+ importedFrom: "codex",+ });+ }+ return {+ conversation: finishConversation({+ source: "codex",+ sourceId: sessionId,+ messages,+ fallbackTimestamp,+ importedAt,+ }),+ turnState: { isLoading: turnActive, isStreaming: turnActive },+ };+}++export function parseCodexTranscript(+ jsonl: string,+ options: ExternalChatParseOptions,+): ChatConversation | null {+ return parseCodexTranscriptSnapshot(jsonl, options).conversation;+}++export function parseExternalChatTranscriptSnapshot(+ source: ExternalChatSource,+ jsonl: string,+ options: ExternalChatParseOptions,+): ExternalChatTranscriptSnapshot {+ return source === "claude-code"+ ? parseClaudeCodeTranscriptSnapshot(jsonl, options)+ : parseCodexTranscriptSnapshot(jsonl, options);}export function parseExternalChatTranscript(@@ -549,7 +673,5 @@ export function parseExternalChatTranscript(jsonl: string,options: ExternalChatParseOptions,): ChatConversation | null {- return source === "claude-code"- ? parseClaudeCodeTranscript(jsonl, options)- : parseCodexTranscript(jsonl, options);+ return parseExternalChatTranscriptSnapshot(source, jsonl, options).conversation;}diff --git a/docs/pr-assets/live-external-agent-feedback/claude-live-completed.png b/docs/pr-assets/live-external-agent-feedback/claude-live-completed.pngnew file mode 100644index 000000000..2fe45c710Binary files /dev/null and b/docs/pr-assets/live-external-agent-feedback/claude-live-completed.png differdiff --git a/docs/pr-assets/live-external-agent-feedback/claude-live-thinking.png b/docs/pr-assets/live-external-agent-feedback/claude-live-thinking.pngnew file mode 100644index 000000000..be15726e4Binary files /dev/null and b/docs/pr-assets/live-external-agent-feedback/claude-live-thinking.png differdiff --git a/docs/pr-assets/live-external-agent-feedback/claude-live-tool.png b/docs/pr-assets/live-external-agent-feedback/claude-live-tool.pngnew file mode 100644index 000000000..0e9a0ba12Binary files /dev/null and b/docs/pr-assets/live-external-agent-feedback/claude-live-tool.png differdiff --git a/docs/pr-assets/live-external-agent-feedback/codex-live-completed.png b/docs/pr-assets/live-external-agent-feedback/codex-live-completed.pngnew file mode 100644index 000000000..726c49da0Binary files /dev/null and b/docs/pr-assets/live-external-agent-feedback/codex-live-completed.png differdiff --git a/docs/pr-assets/live-external-agent-feedback/codex-live-thinking.png b/docs/pr-assets/live-external-agent-feedback/codex-live-thinking.pngnew file mode 100644index 000000000..4c7e2f774Binary files /dev/null and b/docs/pr-assets/live-external-agent-feedback/codex-live-thinking.png differdiff --git a/docs/pr-assets/live-external-agent-feedback/codex-live-tool.png b/docs/pr-assets/live-external-agent-feedback/codex-live-tool.pngnew file mode 100644index 000000000..90d59f70fBinary files /dev/null and b/docs/pr-assets/live-external-agent-feedback/codex-live-tool.png differ