Skip to content

fix(workflows): freeze settled launch cards - #104

Merged
tt-a1i merged 1 commit into
mainfrom
codex/issue-96-freeze-workflow-card
Aug 24, 2026
Merged

fix(workflows): freeze settled launch cards#104
tt-a1i merged 1 commit into
mainfrom
codex/issue-96-freeze-workflow-card

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • freeze settled Workflow tool-result cards to their launch details and render timestamp
  • keep live status and spinner invalidation only while Pi still marks the tool result partial
  • make elapsed-time rendering accept the caller timestamp so a frozen card has no hidden wall-clock dependency
  • preserve the existing live strip, dashboard, completion delivery, and synchronous wait behavior

Root cause

Detached Workflow runs remained in activeRuns after their launch receipt settled. renderResult therefore kept a 120ms transcript timer and also reread live details plus Date.now() on unrelated redraws, mutating a historical regular-mode card above the viewport.

Validation

  • deterministic execute-level regression: a real detached run remains active behind a settled launch result; over multiple spinner intervals it emits zero transcript invalidations and renders byte-stably
  • partial Workflow card, strip, and dashboard spinner tests remain green
  • bun run check
  • bun run test (870 Node tests, 30 Vitest tests)

Manual TUI smoke

Addresses #96

@tt-a1i
tt-a1i merged commit dbaacf4 into main Aug 24, 2026
2 checks passed
@tt-a1i
tt-a1i deleted the codex/issue-96-freeze-workflow-card branch August 24, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant