Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 3:51 AM ET / 07:51 UTC. Summary PR surface: Source +6. Total +6 across 1 file. Reproducibility: yes. at source level, though not through a completed live run: current main performs an unbounded synchronous Git child call, and Node documents that such calls wait for child exit without a configured timeout. (nodejs.org) Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the bounded hard-kill behavior, add focused regression coverage for the exact spawn options and fallback, and provide a controlled stalled-child terminal or log transcript showing the call returns within the deadline. Do we have a high-confidence way to reproduce the issue? Yes at source level, though not through a completed live run: current main performs an unbounded synchronous Git child call, and Node documents that such calls wait for child exit without a configured timeout. (nodejs.org) Is this the best way to solve the issue? Yes; bounding the existing best-effort probe at its owner boundary is the narrowest maintainable fix, preserves the established fallback, and matches the merged sibling probe pattern. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 73d04395defe. Label changesLabel justifications:
Evidence reviewedPR surface: Source +6. Total +6 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
The synchronous git symbolic-ref probe runs during gateway prompt footer assembly. It had no timeout, so a stalled git process could block the gateway indefinitely. Add GIT_SYMBOLIC_REF_TIMEOUT_MS (5s) and SIGKILL, matching the bounded probe pattern applied to macOS system probes (openclaw#109241).
069ef5e to
8851aba
Compare
|
Closing: no test file exists for footer-data-provider.ts, the function is private, and there is no user-reported issue backing this change. Cannot satisfy the proof requirement. The pattern itself is valid but this file lacks the test harness needed for a quality PR. |
What Problem This Solves
The synchronous
git symbolic-refprobe inresolveBranchWithGitSyncruns during gateway prompt footer assembly. ThespawnSynccall had no timeout, so a stalled git process could block the gateway indefinitely.Why This Change Was Made
Add
GIT_SYMBOLIC_REF_TIMEOUT_MS(5 seconds) andkillSignal: "SIGKILL"to the spawnSync call. The caller already returnsnullwhen git is unavailable or on non-zero exit, so the timeout path is safe — a stalled probe falls back to the samenullresult.The 5s bound follows the same pattern as macOS system probes (#109241) and other synchronous gateway probes.
User Impact
Gateway prompt footer assembly is no longer blocked indefinitely by a stalled git symbolic-ref call.
getGitBranch()returnsnullon timeout.Evidence
src/agents/sessions/footer-data-provider.ts— one spawnSync call bounded withtimeout: 5000, killSignal: "SIGKILL"oxfmt --check+oxlinton changed filegit diff origin/main...HEAD --check— clean