Repository navigation
feat(autoresearch): 30s default timeout + yellow banner + standard time notation (closes #3309) - #3316
Conversation
…me notation (closes #3309) Three UX improvements to the autoresearch timeout surface so future agents (and humans) don't read the silent wait as a hung shell: 1. Default --timeout changed from 60 to 30 seconds. Real-world bring-up RPC round-trips are well under 100 ms; 30 s catches genuine hangs sooner without false-tripping legit work. The 60 s number predated the on-device watchdog wiring + the LPC HardFault override (zackees/ ArduinoCore-LPC8xx#31) -- both shorten the window where a real hang stays silent. 2. Yellow advisory banner is printed when --timeout is not explicitly passed: [default 30s timeout in effect -- pass --timeout <duration> (e.g. 30s / 2m / 1h) or --no-timeout to override] Suppressed under --quiet to keep AI-agent runs at ~15 lines. 3. --no-timeout flag lets debugger sessions and interactive bring-ups run unbounded. Implementation: timeout_seconds = 1 year-of-seconds. 4. parse_timeout (already accepts plain seconds + ms/s/m suffixes) gains an `h` (hours) suffix so `--timeout 1h` works without typing 3600. Verification - 9/9 new unit tests in ci/tests/test_parse_timeout.py pass. - `uv run python -m ci.autoresearch --help` shows both --timeout (with updated examples block: `30s/2m/1h/5000ms`) and --no-timeout entries. - bash lint clean. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds hour-scale timeout notation ( ChangesAutoresearch Timeout Improvements
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Three UX improvements to the autoresearch timeout surface so silent waits stop reading as hung shells (FastLED #3309):
Default --timeout changed from 60 s → 30 s. Real-world bring-up RPC round-trips are well under 100 ms; 30 s catches genuine hangs sooner without false-tripping legit work.
Yellow advisory banner is printed when --timeout is not explicitly passed:
Suppressed under `--quiet`.
--no-timeoutflag lets debugger sessions run unbounded.parse_timeoutgains anh(hours) suffix.Closes #3309.
Test plan
Files
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
1h), minutes, seconds, and milliseconds.--no-timeoutflag to disable monitor-phase timeout.Improvements