Repository navigation
Shell: drain runaway output slowly, run without a terminal, report wall time - #247
Conversation
…report wall time - Past 1 MiB a stream pauses 1 ms after each read, so a runaway writer waits on the full pipe instead of spending the daemon's one thread (timeout 5 yes: daemon CPU 4.71 s -> 0.20 s). - Commands get TERM=dumb, NO_COLOR=1 and cat for PAGER, GIT_PAGER and GH_PAGER, before the caller's environment, which still wins. - Shell results report wall_time_ms. - The sonny formula depends on ripgrep. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGFtCdGun1rPhhwTSrG
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
A follow-up to #236, from the Codex tool comparison.
What
timeout 5 yescost 4.71 s of daemon CPU in 5 s before, and 0.20 s after. A finite command still finishes. A 200 MB log takes about 3 s longer to drain.TERM=dumb,NO_COLOR=1, andcatasPAGER,GIT_PAGERandGH_PAGER, the same as Codex's exec environment. These are set before the registry's and the bot's own environment, so a caller's value still wins. I left the locale alone:C.UTF-8doesn't exist on every macOS, and the daemon inherits the person's locale anyway.wall_time_mson every shell result, so the model can choose its next timeout. Codex reportswall_time_seconds. Serde orders the keys, so the field comes last in the JSON.sonnyHomebrew formula nowdepends_on "ripgrep", so bots can count onrg. The README says so.Tests that matched the result exactly now allow the new field:
tests/test_approvals.pyandbench/lifecycle_provider.py. Intests/test_elision.py, one test is sized to the byte. The extra ~20 bytes per result moved its overflow one round earlier, so it now runs one fewer small round (20x1instead of21x1) and still exercises the same case: two large results elided beside the note.Tests
cargo test: all pass.cargo clippy --all-targetsandcargo fmt --check: clean.wall_time_msis an integer, the no-terminal variables are set, and a caller'sPAGERoverrides the default.AGENT_TEST_RUNTIME=1, release build): approvals, cli, elision, wait, active_steering, lifecycle, runtime, lookout, bench, bench_integration, engines, fleet_screen, pi_durable, soak and store_scale all pass.release/test_homebrew_formula.pypasses.No UI change.