You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: automation agent transcript silently disappears after a failed sandbox-op read #3828
Evidence:/Users/yannick/.codex/notes/tale-1000-additional/agent-read-probe.log; the isolated current-component Vitest probe passed its three defect assertions.
Reproduction
Open an automation run that includes an agent node.
Let sandbox/session_queries_public:getAgentNodeSandboxOp settle with a generic transport/server failure such as 503 (data: undefined, isError: true).
Inspect the agent transcript in the run detail/timeline.
The current AgentExecutionLog renders an ExecutionLogView with opQuery.data ?? null. ExecutionLogView returns null for a null op, so the transcript area disappears completely. The probe rendered the actual AgentExecutionLog with the settled error shape and observed an empty container, no alert, and no Retry/Try again/Reload control.
Root cause
services/platform/app/features/automations/components/agent-execution-log.tsx:394-407 only forwards query data and never branches on isError, error, or refetch; its child intentionally treats null as “this run never ran an agent.” A failed read is therefore indistinguishable from a legitimate no-agent run. This is distinct from #3820, which is the automation metadata/detail route stuck on Loading, and from run-list read failures.
Expected / actual
Expected: retain the transcript section’s context and show a clear read failure with a retry action, while keeping a genuine no-agent run empty. Actual: the section vanishes after the read fails, so operators cannot tell whether the run had no agent or whether telemetry is unavailable.
Probe
The local probe controlled only the backend query return and rendered the production component; it passed with data: undefined, isError: true, and an Error object. Replay output is in agent-read-probe.log (the same run also covers the two task-agent surfaces below). No production system was touched and no source was changed.
Suggested repair
Distinguish isError from data === null, render a localized read-error panel with refetch, and keep the existing empty copy only for a successful null response. Add a regression for a failed op read.
Independent review of PR #4304: ACCEPT at exact head e28b679ddf2725ee10f51252810be88c351db966 (reconfirmed before posting).
The failed getAgentNodeSandboxOp read keeps the agent-log section, displays localized EN/DE/FR read-error copy, and retries via refetch; a successful null response remains the empty/no-agent path. Focused client tests pass 10/10 on the head. Applying the head regression test to origin/main reproduces the defect (1 failed / 9 passed, missing the alert). Scoped Oxlint/Oxfmt and the 24-test message catalog suite pass. No shared-helper conflict with accepted #4294.
Existing GitHub checks remain pending; no CI rerun/cancellation, merge, push, or card move. Browser/E2E/visual/full-suite proof remains unrun.
Activity
yannickmonney commentedon Oct 4, 2026
Independent review of PR #4304: ACCEPT at exact head
e28b679ddf2725ee10f51252810be88c351db966(reconfirmed before posting).The failed
getAgentNodeSandboxOpread keeps the agent-log section, displays localized EN/DE/FR read-error copy, and retries viarefetch; a successful null response remains the empty/no-agent path. Focused client tests pass 10/10 on the head. Applying the head regression test toorigin/mainreproduces the defect (1 failed / 9 passed, missing the alert). Scoped Oxlint/Oxfmt and the 24-test message catalog suite pass. No shared-helper conflict with accepted #4294.Existing GitHub checks remain pending; no CI rerun/cancellation, merge, push, or card move. Browser/E2E/visual/full-suite proof remains unrun.