Pretty-print fleet JSON so the pager can scroll it - #871
Merged
TheGreatAxios merged 1 commit intoSep 10, 2026
Merged
Conversation
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
Fleet and lifecycle success JSON is pretty-printed with two-space indent so the line pager can scroll it. Error strings stay raw
Error:text and are not double-encoded.JSON.stringifywith no indent made a worker report, agent list, or spawn result one enormous line. The TUI pager is line-oriented, so that payload could not be scanned even when it was under the leisure spill budget.wait_agents,list_agents,spawn_agent,close_agent,resume_agent,interrupt_agent, andsend_inputsuccess envelopes go throughfleetJson.search_agents/read_agent_tracestay multi-line text, not JSON envelopes.JSON.stringify(parsed, null, 2)round-trip. This is independent of leisure-on-all-tools.Verification
bun run typecheck,bun run build, andbun run testpassbun run checkpassesbun test src/subagent/agent-fleet.test.ts src/subagent/lifecycle-tools.test.tscovers pretty-print round-trip and rawError:prefixesFixes CL-7622