Skip to content

Bug: automation-owned task subject panel disappears after a failed live-run read #3849

Closed

Description

@yannickmonney

Bug: automation-owned task subject panel disappears after a failed live-run read

  • Classification: confirmed candidate defect, P2 (the task’s primary workflow state and actions vanish).
  • Source SHA: 9ea59724df24d62729a9360f3902d964dab39b3e.
  • Evidence: task-subject-read-probe.log; an isolated current-component Vitest probe exercised the actual TaskSubjectPanel with a settled getLiveRunForTask error.

Reproduction

  1. Open an automation-owned task whose subject panel should show its workflow state and Start/Cancel/Approve context.
  2. Let automations/queries:getLiveRunForTask settle with a generic 503 (data: undefined, isError: true).
  3. Inspect the task body.

The panel returns null whenever runQuery.data === undefined. The current probe rendered the actual component with hasFiles: true and the settled error shape; it observed an empty container with no alert and no Retry/Try again/Reload action. The task still exists, but its workflow owner, state line, and available action disappear as if the panel were not applicable.

Root cause

services/platform/app/features/tasks/components/task-subject-panel.tsx:96-121 derives run = runQuery.data ?? null and then returns null at the “Facts still loading” guard whenever data is undefined. It does not consume runQuery.isError, error, or refetch, so a failed live-run read is indistinguishable from an in-flight query. This is distinct from the task-agent lane issue: this panel is the automation subject’s primary workflow/status surface and is used even when the task has no agent-run lane.

Expected / actual

Expected: keep the subject panel’s ownership context visible and show a settled read failure with retry; preserve the normal null-run state only for a successful response that says no live run exists. Actual: the whole panel and its Start/Cancel/review context vanish, leaving the user no explanation or recovery path.

Probe

The local probe mocked only the backend query boundary and the panel’s unrelated mutation/child seams. It passed with {data: undefined, isError: true, error: new Error('503')} against the current component. Replay output is in task-subject-read-probe.log; no production system or source was changed.

Suggested repair

Branch on runQuery.isError before the undefined loading return, render an inline read-error state with refetch, and keep the current null-run state for a successful empty response. Add a regression that keeps the panel visible after a settled read error.

Activity

  1. added a commit that references this issue on Oct 5, 2026
    841db4e
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