- ClaudeAdapter: dedupe workflow agents/phases by index (last write wins)
before applying entry caps, so repeated slot updates cannot exhaust the
cap and freeze later agents stale; restrict sessionUrl to http(s) so a
hostile tool result cannot smuggle a javascript: href
- workflowUi: guard sessionUrl scheme again at both anchor render sites
(defense in depth for payloads persisted before the adapter filter)
- Ingestion: JSON-encode the (threadId, taskId) tuple in stable workflow
activity ids to remove delimiter-ambiguity collisions
- workflow-logic: order same-timestamp activities by provider sequence
then lifecycle rank so task.completed can never apply before its
task.started
- WorkflowPanel/Card: scope phase and agent row keys by taskId so
switching runs remounts rows instead of leaking expanded transcript
state and cursors across runs
- workflowUi: phase progress counter counts settled (done + error)
agents instead of reporting 0/1 for an errored terminal phase
- client-runtime: readJournal query polls every 4s while mounted so the
Logs tab picks up new results during a live run
- mobile: keep workflow task.completed rows (only per-tick progress is
suppressed) — with no workflow card on mobile it is the only signal a
workflow finished or failed
Co-Authored-By: Claude Fable 5 <[email protected]>
- workflow-logic: settle in-flight agents to "error" when terminalizing
a run whose session died, so a stopped chip never sits above pulsing
"running" agents; drop the dead hasStartedActivity field (snapshot-only
runs render intentionally after history trims)
- ChatView: gate workflow liveness on derivePhase so interrupted
sessions also terminalize runs, matching disconnected-session UX
- WorkflowPanel: fetch the transcript once more when a run leaves
"running" so lines appended after the last poll tick are not lost
- mobile: suppress workflow-owned task.progress/task.completed rows in
the work log, mirroring desktop (mobile has no workflow card yet)
Co-Authored-By: Claude Fable 5 <[email protected]>
- WorkflowInspectionService: re-contain joined leaf files so a symlink
named journal.jsonl / agent-<id>.jsonl cannot escape the projects root
(readScript already did this); add regression tests for both
- Stop serializing raw fs error causes in WorkflowInspectionError
- ProviderCommandReactor: surface stopTask failures as a
provider.task.stop.failed activity instead of a silent log warning
- ProviderService.stopTask: don't resurrect a stopped session via
recovery just to stop a task
- Ingestion: scope stable workflow activity ids by threadId so SDK task
id reuse across threads cannot collide in the projection table
- WorkflowPanel: keep polling transcripts past prior EOF ("complete"
means caught-up, not finished); reuse useCopyToClipboard for the
resume-command button
- workflow-logic: terminalize runs left "running" when the provider
session is gone; add a revision counter so timeline rows re-render on
content changes even when timestamps collide
Co-Authored-By: Claude Fable 5 <[email protected]>
Surface Claude Agent SDK workflow runs (the Workflow orchestration tool)
end to end in the desktop app:
- Contracts: WorkflowProgressEntry schemas, run handles, workflow
inspection RPCs, thread.task.stop command + task-stop-requested event
- ClaudeAdapter: normalize the SDK's undocumented workflow_progress
snapshot (size-capped, tolerant), forward workflow identity on task
events, emit task.workflowMeta from Workflow tool results, stopTask
- Ingestion: upsert workflow snapshots under a stable per-task activity
id so projections and reconnect payloads stay one row per run
- WorkflowInspectionService: path-validated, size-capped reads of the
run's script, journal, and per-agent transcripts (realpath containment
under ~/.claude/projects)
- Web: WorkflowRunCard inline in the chat timeline, a workflow right-
panel surface with Run/Script/Logs tabs, cursor-paged transcript
polling, stop + resume affordances; remote runs link to their cloud
session
Co-Authored-By: Claude Fable 5 <[email protected]>