Skip to content

test(desktop): story-cover agent graph failure and edge states - #4212

Open
liuxiaocs7 wants to merge 1 commit into
apache:mainfrom
liuxiaocs7:liuxiaocs7/agent-graph-failure-states
Open

test(desktop): story-cover agent graph failure and edge states#4212
liuxiaocs7 wants to merge 1 commit into
apache:mainfrom
liuxiaocs7:liuxiaocs7/agent-graph-failure-states

Conversation

@liuxiaocs7

@liuxiaocs7 liuxiaocs7 commented Aug 29, 2026

Copy link
Copy Markdown
Member

test(desktop): story-cover agent graph failure and edge states

Seventh surface under #3944 (one surface per PR): the Agent Graph panel had no
Storybook story. Add its failure and edge states, mounted through a scoped
window.maka.graphs bridge inside the real composer host seam
(.maka-detail-with-artifacts → .mainColumn), each pinning one
AgentGraphClientSnapshot.

  • EmptyGraph — graph mode enabled, no operators yet: the panel's empty state.
  • FailedGraph — a failed operator beside completed/running ones.
  • BlockedOnUpstream — a blocked operator with the amber "waiting for input" line.
  • ManyOperators — a wide fan-out (28 operators) with no fabricated omitted count
    (the read-model only elides operators past 256) — review feedback.
  • LoadError — the IPC snapshot read rejects: the panel's error Banner + Retry.

The panel renders operators as a flat list (no edges/hierarchy), so tree depth
and cycles have no distinct rendering and are left out. Plays assert
reachability of each state; exact row counts / omitted lines are read-model
contracts left to the read-model's own tests (review feedback).

Refs #3944, #3893

Generative tooling

Claude Code contributed substantially here — it authored these Storybook stories. The human contributor of record reviewed and submitted the change, and each commit carries a Generated-by: Claude Code trailer per CONTRIBUTING.md.

Visual evidence

Storybook stories captured with Playwright (hosted on the fork's release assets).

empty-graph — normal / light · narrow / dark

empty-graph normal / light empty-graph narrow / dark

failed-graph — normal / light · narrow / dark

failed-graph normal / light failed-graph narrow / dark

blocked-on-upstream — normal / light · narrow / dark

blocked-on-upstream normal / light blocked-on-upstream narrow / dark

many-operators — normal / light · narrow / dark

many-operators normal / light many-operators narrow / dark

load-error — normal / light · narrow / dark

load-error normal / light load-error narrow / dark

Seventh surface under apache#3944 (one surface per PR): the Agent Graph panel had no
Storybook story. Add its failure and edge states, mounted through a scoped
`window.maka.graphs` bridge inside the real composer host seam
(.maka-detail-with-artifacts → .mainColumn), each pinning one
AgentGraphClientSnapshot.

- EmptyGraph — graph mode enabled, no operators yet: the panel's empty state.
- FailedGraph — a failed operator beside completed/running ones.
- BlockedOnUpstream — a blocked operator with the amber "waiting for input" line.
- ManyOperators — a wide fan-out (28 operators) with no fabricated omitted count
  (the read-model only elides operators past 256) — review feedback.
- LoadError — the IPC snapshot read rejects: the panel's error Banner + Retry.

The panel renders operators as a flat list (no edges/hierarchy), so tree depth
and cycles have no distinct rendering and are left out. Plays assert
reachability of each state; exact row counts / omitted lines are read-model
contracts left to the read-model's own tests (review feedback).

Refs apache#3944, apache#3893

Generated-by: Claude Code
@liuxiaocs7
liuxiaocs7 force-pushed the liuxiaocs7/agent-graph-failure-states branch from 5797b53 to 4de018d Compare August 29, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/M Under 500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant