Commit dd74485
Make status output compact for agent callers (#518)
Default status output previously expanded the full command catalog whenever stdout was non-TTY, which is exactly how agent tool captures run. Keep the health signal and next action, but reserve the full services list and help tree for --verbose.
Constraint: Agent shells capture non-TTY output and pay token cost for every status call
Rejected: Hide health details entirely | agents still need service counts and next-step hints
Confidence: high
Scope-risk: narrow
Directive: Keep --verbose as the escape hatch for full service and help details
Tested: node --test test/status.test.js test/output.test.js
Tested: node -c src/cli/main.js src/output/index.js test/status.test.js
Not-tested: full npm test remains blocked by unrelated agents/cockpit harness failures with empty stdout
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
Co-authored-by: OmX <omx@oh-my-codex.dev>1 parent 76306a5 commit dd74485
3 files changed
Lines changed: 15 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
2029 | | - | |
2030 | 2029 | | |
2031 | | - | |
2032 | 2030 | | |
2033 | 2031 | | |
2034 | 2032 | | |
| |||
2081 | 2079 | | |
2082 | 2080 | | |
2083 | 2081 | | |
2084 | | - | |
2085 | | - | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
2086 | 2085 | | |
2087 | 2086 | | |
2088 | 2087 | | |
2089 | 2088 | | |
2090 | 2089 | | |
2091 | 2090 | | |
2092 | 2091 | | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
2093 | 2095 | | |
2094 | | - | |
| 2096 | + | |
2095 | 2097 | | |
2096 | 2098 | | |
2097 | 2099 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
104 | 86 | | |
105 | 87 | | |
106 | 88 | | |
| |||
110 | 92 | | |
111 | 93 | | |
112 | 94 | | |
113 | | - | |
| 95 | + | |
114 | 96 | | |
115 | 97 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 98 | + | |
119 | 99 | | |
120 | 100 | | |
121 | 101 | | |
| |||
133 | 113 | | |
134 | 114 | | |
135 | 115 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 116 | + | |
| 117 | + | |
140 | 118 | | |
141 | 119 | | |
142 | 120 | | |
| |||
0 commit comments