Skip to content

Bug: automation agent transcript silently disappears after a failed sandbox-op read #3828

Closed

Description

@yannickmonney

Bug: automation agent transcript silently disappears after a failed sandbox-op read

  • Classification: confirmed candidate defect, P2 (run observability and error recovery).
  • Source SHA: 9ea59724df24d62729a9360f3902d964dab39b3e.
  • Evidence: /Users/yannick/.codex/notes/tale-1000-additional/agent-read-probe.log; the isolated current-component Vitest probe passed its three defect assertions.

Reproduction

  1. Open an automation run that includes an agent node.
  2. Let sandbox/session_queries_public:getAgentNodeSandboxOp settle with a generic transport/server failure such as 503 (data: undefined, isError: true).
  3. 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.

Activity

  1. yannickmonney commented on Oct 4, 2026

    @yannickmonney
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions