@@ -5346,6 +5346,9 @@ private function render_worktree_metadata_reconciliation_result( array $result,
53465346 private function render_worktree_active_no_signal_report_result ( array $ result , array $ assoc_args ): void {
53475347 $ format = isset ($ assoc_args ['format ' ]) ? (string ) $ assoc_args ['format ' ] : 'table ' ;
53485348 if ( 'json ' === $ format ) {
5349+ if ( empty ($ assoc_args ['verbose ' ]) ) {
5350+ $ result = WorkspaceCompactOutput::cleanup_result ($ result );
5351+ }
53495352 $ this ->renderer ()->json ($ result );
53505353 return ;
53515354 }
@@ -5436,6 +5439,9 @@ private function render_worktree_active_no_signal_report_result( array $result,
54365439 private function render_worktree_active_no_signal_finalized_apply_result ( array $ result , array $ assoc_args ): void {
54375440 $ format = isset ($ assoc_args ['format ' ]) ? (string ) $ assoc_args ['format ' ] : 'table ' ;
54385441 if ( 'json ' === $ format ) {
5442+ if ( empty ($ assoc_args ['verbose ' ]) ) {
5443+ $ result = WorkspaceCompactOutput::cleanup_result ($ result );
5444+ }
54395445 $ this ->renderer ()->json ($ result );
54405446 return ;
54415447 }
@@ -5526,6 +5532,9 @@ private function render_worktree_active_no_signal_finalized_apply_result( array
55265532 private function render_worktree_active_no_signal_equivalent_clean_apply_result ( array $ result , array $ assoc_args ): void {
55275533 $ format = isset ($ assoc_args ['format ' ]) ? (string ) $ assoc_args ['format ' ] : 'table ' ;
55285534 if ( 'json ' === $ format ) {
5535+ if ( empty ($ assoc_args ['verbose ' ]) ) {
5536+ $ result = WorkspaceCompactOutput::cleanup_result ($ result );
5537+ }
55295538 $ this ->renderer ()->json ($ result );
55305539 return ;
55315540 }
@@ -5616,6 +5625,9 @@ private function render_worktree_active_no_signal_equivalent_clean_apply_result(
56165625 private function render_worktree_active_no_signal_merged_apply_result ( array $ result , array $ assoc_args ): void {
56175626 $ format = isset ($ assoc_args ['format ' ]) ? (string ) $ assoc_args ['format ' ] : 'table ' ;
56185627 if ( 'json ' === $ format ) {
5628+ if ( empty ($ assoc_args ['verbose ' ]) ) {
5629+ $ result = WorkspaceCompactOutput::cleanup_result ($ result );
5630+ }
56195631 $ this ->renderer ()->json ($ result );
56205632 return ;
56215633 }
@@ -5706,6 +5718,9 @@ private function render_worktree_active_no_signal_merged_apply_result( array $re
57065718 private function render_worktree_active_no_signal_remote_clean_apply_result ( array $ result , array $ assoc_args ): void {
57075719 $ format = isset ($ assoc_args ['format ' ]) ? (string ) $ assoc_args ['format ' ] : 'table ' ;
57085720 if ( 'json ' === $ format ) {
5721+ if ( empty ($ assoc_args ['verbose ' ]) ) {
5722+ $ result = WorkspaceCompactOutput::cleanup_result ($ result );
5723+ }
57095724 $ this ->renderer ()->json ($ result );
57105725 return ;
57115726 }
@@ -5945,7 +5960,7 @@ private function flatten_artifact_cleanup_rows( array $rows ): array {
59455960 private function render_worktree_bounded_cleanup_eligible_apply_result ( array $ result , array $ assoc_args ): void {
59465961 $ format = isset ($ assoc_args ['format ' ]) ? (string ) $ assoc_args ['format ' ] : 'table ' ;
59475962 if ( 'json ' === $ format ) {
5948- $ report = ! empty ($ assoc_args ['verbose ' ]) ? $ result : $ this -> compact_worktree_bounded_cleanup_eligible_apply_json ($ result );
5963+ $ report = ! empty ($ assoc_args ['verbose ' ]) ? $ result : WorkspaceCompactOutput:: cleanup_result ($ result );
59495964 $ this ->renderer ()->json ($ report );
59505965 return ;
59515966 }
0 commit comments