Repository navigation
fix(onboard): scope hatch timeout to initial turn - #130010
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
429c6fa to
196c83b
Compare
|
Rebased onto current |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 5:31 AM ET / 09:31 UTC. ClawSweeper reviewWhat this changesThe PR scopes classic onboarding’s five-minute hatch timeout to the automatic startup message instead of every later terminal-chat turn. Merge readinessThe prior P1 is fixed at the current PR head: the hatch cap remains on the automatic startup message while later TUI turns use their normal timeout. No actionable patch defect was found; this maintainer-labeled PR needs ordinary exact-head CI and merge handling. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherClassic onboarding launches the terminal UI with an optional bootstrap hatch message. The UI turns messages into Gateway or embedded-runtime chat runs, where the timeout controls how long each turn may run. flowchart LR
A[Classic onboarding] --> B[Bootstrap hatch message]
A --> C[Terminal UI options]
B --> D[Startup message submission]
C --> E[Later interactive submissions]
D --> F[Gateway or local runtime]
E --> F
F --> G[Timed chat run]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +20. Total +22 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the scoped internal startup-message override after exact-head validation, while keeping public Do we have a high-confidence way to reproduce the issue? Yes—source establishes the path on current main: onboarding sets a TUI-wide 300-second timeout and every later Is this the best way to solve the issue? Yes—the per-startup-message override repairs the owner boundary without changing the public standalone TUI timeout option or adding configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7da8c19fd021. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
196c83b to
a3915d7
Compare
|
Addressed the P1 finding at exact head |
|
Land-ready proof for exact head
The automatic hatch keeps its five-minute watchdog; only later user turns stop inheriting it. A real-provider five-minute stall was not manufactured because that would deliberately hold a paid provider turn open for the full watchdog; the sequential owner-boundary regression proves the exact timeout payloads instead. |
|
Merged via squash.
|
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Classic onboarding passes a five-minute hatch timeout into the post-setup TUI. The TUI forwards its configured timeout to every submitted turn, so the bootstrap safety cap incorrectly remained active for every later interactive message.
Why This Change Was Made
Preserve the shipped five-minute watchdog for the automatic bootstrap hatch message, but scope it to that one startup submission. Later user-entered turns use the normal TUI timeout setting, which classic onboarding leaves unset.
The TUI now accepts an internal
initialMessageTimeoutMsoption for its automatic startup message. This keeps explicit standalone--timeout-msbehavior unchanged while separating the onboarding bootstrap bound from the rest of the session.User Impact
A stalled first provider call still times out after five minutes, while users can continue chatting in the TUI opened by classic onboarding without every later turn inheriting the bootstrap cap.
Evidence
Exact head
a3915d764bba757c796f7fa9acaf5f275b9e57c2rebased onto currentorigin/main:pnpm exec vitest run src/tui/tui-command-handlers.test.ts src/wizard/setup.finalize.test.ts: 257 tests passed.pnpm check:changed: passed before the conflict-free exact patch rebase.