Skip to content

feat(cli): add activity strip with Working… Ns elapsed counter - #1061

Merged
Astro-Han merged 1 commit into
mainfrom
feat/cli-activity-strip
Jul 16, 2026
Merged

Astro-Han merged 1 commit into
mainfrom
feat/cli-activity-strip

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

Add a one-line activity strip between the transcript and the editor. It shows Working… Ns while an agent turn runs and a blank reserved row when idle, so the layout does not jump when a turn starts or ends.

A 1-second interval ticker re-renders the strip to keep the elapsed counter current. The ticker starts when a turn begins (runAgentTurn) and stops on turn end (finally) or teardown (restoreTerminal).

Components:

  • renderMakaPiActivityStrip in pi-transcript.ts — renders the strip line from metadata.turnElapsedMs.
  • MakaActivityStripComponent in pi-tui-layout.ts — wraps the render function as a pi-tui Component.
  • MakaPiLayoutComponent — includes the strip in chromeRows and renders it between padding and editor.
  • Runner — tracks turnStartedAt, computes turnElapsedMs in metadata(), manages the ticker lifecycle.

Refs #1053 (seam 5).

Verification

  • npm run build — clean
  • npm test — 372 tests pass (3 new: 2 unit tests for renderMakaPiActivityStrip, 1 runner test verifying Working… appears during a turn and disappears after)

Add a one-line activity strip between the transcript and the editor that
shows "Working… Ns" while an agent turn runs and a blank reserved row when
idle, so the layout does not jump when a turn starts or ends.

A 1-second interval ticker re-renders the strip to keep the elapsed counter
current. The ticker starts when a turn begins and stops on turn end or
teardown.
@Astro-Han
Astro-Han merged commit 47d9d1f into main Jul 16, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/cli-activity-strip branch July 25, 2026 15:14
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