refactor(cli): decompose render phases#2172
Open
jrusso1020 wants to merge 1 commit into
Open
Conversation
This was referenced Jul 10, 2026
Collaborator
Author
This was referenced Jul 10, 2026
8ea5a53 to
32efa63
Compare
ee1e8fd to
31ebbda
Compare
32efa63 to
e4fa818
Compare
3bd8775 to
841ca28
Compare
e4fa818 to
119c3a7
Compare
841ca28 to
99291ad
Compare
119c3a7 to
95c5ca5
Compare
99291ad to
260558c
Compare
95c5ca5 to
138681f
Compare
260558c to
f6dfed1
Compare
15bbbc2 to
f16b507
Compare
50cf30c to
a36d53c
Compare
57ef434 to
a24f174
Compare
ffda4eb to
b84837b
Compare
53132dd to
df7dfef
Compare
b84837b to
35ae1d2
Compare
df7dfef to
608548d
Compare
35ae1d2 to
34981d4
Compare
608548d to
b3ce98b
Compare
34981d4 to
05b117e
Compare
b3ce98b to
f593708
Compare
b418569 to
741b993
Compare
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.

What
Decompose the CLI render command into explicit plan, execute, and present phases.
Why
The monolithic handler mixed validation, environment mutation, rendering, progress, cleanup, and output formatting, making lifecycle bugs and batch JSON corruption easy to introduce.
How
Build an immutable RenderPlan, keep environment changes declarative, execute through one lifecycle boundary, and make presentation emit exactly one final JSON document in batch mode.
Test plan