Repository navigation
feat(cli): add activity strip with Working… Ns elapsed counter - #1061
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a one-line activity strip between the transcript and the editor. It shows
Working… Nswhile 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:
renderMakaPiActivityStripinpi-transcript.ts— renders the strip line frommetadata.turnElapsedMs.MakaActivityStripComponentinpi-tui-layout.ts— wraps the render function as a pi-tuiComponent.MakaPiLayoutComponent— includes the strip inchromeRowsand renders it between padding and editor.turnStartedAt, computesturnElapsedMsinmetadata(), manages the ticker lifecycle.Refs #1053 (seam 5).
Verification
npm run build— cleannpm test— 372 tests pass (3 new: 2 unit tests forrenderMakaPiActivityStrip, 1 runner test verifyingWorking…appears during a turn and disappears after)