Skip to content

fix(workflows): clarify TUI status and retain bounded execution timing - #669

Merged
tt-a1i merged 17 commits into
mainfrom
codex/remaining-confirmed-issues
Oct 4, 2026
Merged

tt-a1i merged 17 commits into
mainfrom
codex/remaining-confirmed-issues

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Fixes #656, #658, #660 and #662. Workflow activity repeats metrics/footer status, worktree notices conflate preservation with execution failure, running child history opens away from current output, and truncated transcripts cannot explain long tool/lifecycle intervals. Related to #657: chat images survive the locked Pi overlay compositor in regular mode.

Value

Keep the input area compact, preserve actionable warnings, make active child work easy to follow, and expose privacy-safe bounded timing facts without interpreting model/provider reasoning. Improve real-process test stability by limiting file overlap.

Approach

  • Show the selected Workflow name and management entry; keep metrics in the dashboard and aggregate failure/uncertainty visible.
  • Derive display-only worktree notice severity from structured cleanup/handoff facts, with plain-text severity labels. Execution failure, capture/finalization/removal warning, and normal preservation remain distinct.
  • Open running shared Direct/Workflow child pages at the latest output. Preserve manual reading position, host expansion conventions, native renderers, sanitized bounded legacy previews, and explicit unavailable details.
  • In regular mode, mount the dashboard through Pi's native custom-editor path, fit trailing host widgets/footer, and restore visible chat images via the renderer's public shrink policy. Fullscreen keeps its native overlay: the underlying Pi fullscreen image compositor issue remains unresolved and bug(tui): 发送图片后打开 Workflow Dashboard,聊天图片穿透并遮挡面板 #657 stays open. Compact views keep back/close reachable after resize.
  • Capture timing through existing child-session events and actual timeout/cancellation boundaries. Persist an allowlisted summary and per-invocation bounded artifact, independent of transcript truncation; explicitly track incomplete/dropped observations and replay provenance. Concurrent tool wall time uses a union rather than a sum. No tool arguments, outputs, private reasoning, new store, model call, tool, or configuration setting.
  • Cap parallel Node test files at min(4, available cores minus one); retain complete discovery, Windows isolated groups, serial execution, and existing deadlines.

Validation

Head: 52934879e5afd82a9ff857ec191ddd0cf6896c2f.

  • Final-head bun run check: passed, 8.97 s (build, format, lint, typecheck).
  • First full Node pass: 2,240 passed / 1 failed / 9 skipped, 196.12 s. The sole failure was an obsolete takeover assertion expecting the top of running history; updated to assert the specified latest-output/follow behavior. Independent rereview found no issues; targeted takeover suite 10/10 passed. Final-head full bun run test rerun passed: 2,241 Node tests passed, 9 skipped, zero failures; 79 UI files / 1,120 UI tests passed. Total wall time 225.07 s (Node about 188 s, UI 36.76 s). This is a complete run, not a matched speed benchmark; bounded file concurrency preserves coverage/deadlines and avoids process overload.
  • Exact-head GitHub CI: all runtime/UI/E2E jobs and area-label check passed on Linux/Windows, Node 22/24/26; independent review found no remaining merge blocker. Admin merge authorized by maintainer.
  • Separate complete UI suite: 79 files / 1,120 tests passed, 43.73 s.
  • Independent TUI review and post-fix verification: 64/64 focused tests passed. Native SDK page fixtures execute actual editor mount/restore and fullscreen layout, including synthetic Kitty/iTerm protocol rows, repeated open/close, resize, tiny viewports, draft/policy preservation, and owned overlay cleanup.
  • Independent timing review and post-fix verification: 51/51 focused tests passed; malformed persisted enum JSON cannot break reload. Reviewed early-aborted cancellation retains the original reason and performs zero tool dispatch even if the diagnostic observer throws.
  • Synthetic event-processing seam: 40,000 events, baseline 5.321 ms vs 7.590 ms with timing (2.268 ms added, about 0.0567 us/event); 20,000 paired calls, 32 retained detail entries / 5,856 bytes. This is event-processing-only evidence, excluding snapshots, disk, provider and UI, not a formal product benchmark.
  • No installed runtime/config changes or real terminal pixel acceptance. Computer-use access to Ghostty was denied by the tool; protocol/component evidence does not establish live graphics correctness.

Impact

  • User-visible: compact activity, severity-aware notices, running-child follow/expansion, regular dashboard image isolation and bounded timing inspection.
  • Model-visible: no new tool/schema/permissions, no default context expansion. Replay does not imply new execution.
  • Runtime/lifecycle: additive passive timing observation through existing owners; execution/cancellation/cleanup authority remains unchanged. Dashboard custom-page resources restore on disposal.
  • Persistence/config: additive timing summary/artifact fields; legacy records remain readable, invalid optional summaries drop fail closed. Each timing file is bounded; persisted run files remain on disk until manually removed, with no aggregate disk quota or automatic disk retention. No preference changes.
  • Compatibility/risk: locked SDK tests cover source/component boundaries; fullscreen graphics remains an upstream owner problem and bug(tui): 发送图片后打开 Workflow Dashboard,聊天图片穿透并遮挡面板 #657 is not closed. Child history cannot recover facts omitted from legacy artifacts. Timing is partial when events/listeners are absent or active tracking overflows.

Records: TUI projections, child experience, execution timing.

@github-actions github-actions Bot added documentation Improvements or additions to documentation area:workflows Workflow engine, capability, skills, or tests labels Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:subagents Subagent delegation, skills, or tests area:workflows Workflow engine, capability, skills, or tests documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): 精简 Workflow 运行态活动条,隐藏常驻指标并去重 footer 提示

1 participant