Repository navigation
fix(local-ai): allow cold-start runtime scan - #1609
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed October 2, 2026, 12:06 PM ET / 16:06 UTC. ClawSweeper reviewWhat this changesThe PR increases Local AI router startup deadlines from 15 to 90 seconds in the companion runtime and setup defaults to accommodate cold-start antivirus scanning. Merge readiness⛔ Needs changes before merge - 1 item remains The change remains useful: current main and the latest release retain the 15-second deadline. No introduced correctness defect was found, but repository-required current-head proof and validation remain incomplete. Priority: P2 Review scores
Verification
How this fits togetherLocal AI runs a managed llama-server process on Windows. Setup and the companion wait for its verified endpoint to become ready before allowing inference through it. flowchart TD
A[Setup configuration] --> C[Startup deadline]
B[Companion defaults] --> C
C --> D[Managed Local AI process]
D --> E[Poll endpoint readiness]
E --> F[Publish healthy endpoint]
E --> G[Cancel or clean up on failure]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the wider bounded startup allowance while preserving early readiness, cancellation, and explicitly configured timeout values. Do we have a high-confidence way to reproduce the issue? No independently established high-confidence runtime reproduction is available. Source confirms that readiness arriving after 15 seconds fails under main's default, and the author reports a 26-second cold launch. Is this the best way to solve the issue? Yes. Increasing the existing bounded deadline is a narrow repair, and source inspection confirms it preserves early success and explicit timeout overrides. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bc63144a4cee. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
| /// extracted ~700 MB CUDA runtime (measured 26.0 s cold, 0.17 s once cached), and a | ||
| /// later signature update can invalidate that cache and charge it again. | ||
| /// </summary> | ||
| public TimeSpan StartupTimeout { get; init; } = TimeSpan.FromSeconds(90); |
There was a problem hiding this comment.
I think polling should be better, timeouts are fragile.
Summary
The first execution of the freshly extracted roughly 700 MB CUDA runtime was measured at 26.0 seconds while Windows Defender scanned it, versus 0.17 seconds warm. The former 15-second deadline made clean installs fail before the router could report healthy.
Required proof pools
none: this changes a bounded startup deadline and adds unit coverage; it does not change a custom hardware, installer, WSL, or interactive UI contract.Validation
git diff --check(pass)Real behavior proof
Rubber-duck review