Fix Kiro CLI timeout fallback#2012
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 9, 2026, 3:57 PM ET / 19:57 UTC. Summary Reproducibility: no. high-confidence local reproduction by this review: the linked issue has live signed-app terminal evidence and current main shows the PTY-only timeout path, but I did not run live Kiro provider probes under repository policy. The PR's compatibility gap is source-reproducible from the new pipe result and validation boundaries. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 findings
Review detailsBest possible solution: Keep the pipe-first transport, but make PTY fallback happen for any pipe result that is not a validated usable completion, add a partial/noisy pipe-output regression, and attach redacted after-fix CodexBarCLI proof for Kiro 2.12. Do we have a high-confidence way to reproduce the issue? No high-confidence local reproduction by this review: the linked issue has live signed-app terminal evidence and current main shows the PTY-only timeout path, but I did not run live Kiro provider probes under repository policy. The PR's compatibility gap is source-reproducible from the new pipe result and validation boundaries. Is this the best way to solve the issue? No as-is: pipe-first with PTY fallback is the right shape, but fallback must include unusable pipe results, not only thrown pipe timeouts. A narrow code/test repair is preferable to adding a timeout knob or replacing the whole provider path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 58b1cd5af2f8. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat 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
|
Co-authored-by: Txarly89 <cargonza99@gmail.com>
83dc40b to
5787a81
Compare
|
Maintainer repair pushed at exact head Proof completed:
Remaining merge gate: this machine has no approved logged-in Kiro account. @txarly89, if you have an authenticated Kiro setup, please run this exact head through the freshly packaged helper and share a redacted positive result (helper/bundle commit, Kiro CLI version, three refresh timings, parsed quota/context presence, and confirmation that no Kiro process remains). Do not include account or credential values. Otherwise a maintainer must explicitly waive that final provider-access proof. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Fix Kiro CLI timeout fallback This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
Closes #1883.
Root cause
Current Kiro CLI releases can return normally through pipes but stall when launched directly under a PTY. Older releases had the inverse behavior and required a terminal. The original candidate retried PTY only after a thrown pipe timeout, so incomplete or noisy pipe output could bypass the fallback, and each transport could consume a fresh timeout budget.
Implementation
Validation
swift test --filter KiroStatusProbeTests: 54/54 passedmake check: passed; SwiftFormat and SwiftLint cleanmake test: all 50 shards passed on the exact candidateSigned packaged helper proof at
5787a81a:Y5PE65HELJ5787a81a; helper reports CodexBar 0.41.1Not logged inwithout PTY fallback--versionandwhoamionly; no login flow, Keychain, browser-cookie, or provider-network probe was triggeredRemaining merge gate
This machine has no approved logged-in Kiro account. The transport behavior is proven against the exact signed helper, but a real authenticated positive call remains unavailable. Keep this PR draft until an exact-head authenticated run is supplied by the contributor or a maintainer explicitly waives that final provider-access proof.