Repository navigation
fix(cli): gateway startup no longer waits for claw animation - #105774
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 091ddf1995
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. Reviewed July 12, 2026, 8:18 PM ET / July 13, 2026, 00:18 UTC. Summary PR surface: Source +82, Tests +35. Total +117 across 3 files. Reproducibility: yes. from source and supplied live proof: in an eligible rich TTY, the pre-fix command awaited the decorative banner before Gateway loading, while the PR reports a built-output PTY run showing loading and animation overlap. This review did not independently execute the path. Review metrics: none identified. 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:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Refresh the branch review against current main, inspect every Do we have a high-confidence way to reproduce the issue? Yes from source and supplied live proof: in an eligible rich TTY, the pre-fix command awaited the decorative banner before Gateway loading, while the PR reports a built-output PTY run showing loading and animation overlap. This review did not independently execute the path. Is this the best way to solve the issue? Likely yes: starting useful work immediately and settling only the decorative foreground animation is narrower than removing the banner or changing non-interactive and wizard behavior. A final verdict needs complete caller and error-path inspection against current main. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 37807242c998. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +82, Tests +35. Total +117 across 3 files. 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)
|
Land-ready proofMaintainer review completed on exact head Validation:
Known proof gaps: none for this three-file CLI timing change. |
|
Merged via squash.
|
…w#105774) * fix(cli): avoid gateway delay from claw animation * chore: keep release notes in PR metadata
Closes #105748
What Problem This Solves
Fixes an issue where users starting the Gateway in a foreground terminal would wait for the decorative claw animation before gateway module loading began, adding roughly 1.3–2.1 seconds to startup.
Why This Change Was Made
Gateway module loading now starts in parallel with the existing animation. If loading wins, the banner immediately settles on its exact static frame and restores terminal state before logs continue; if the animation wins, the existing module-loading spinner owns the remaining wait. Wizard animation behavior and non-interactive output remain unchanged.
Startup trace emission is separated from import completion so both the banner and spinner clean up before trace logs write to the terminal.
User Impact
Foreground Gateway startup no longer waits for decorative terminal art. Users still see the full animation when startup work is slower, while fast startup proceeds as soon as modules are ready.
Evidence
src/cli/claw-banner.test.ts,src/cli/gateway-cli/run.option-collisions.test.ts, andsrc/commands/onboard-helpers.test.ts.tbx_01kxccgaex7eewq4hnf1xs7e4n(run 29214490590).pnpm buildpassed in Testboxtbx_01kxcc0kyp7657vwc53xahh9r6.autoreview --mode local: clean; no accepted/actionable findings.Exact-head GitHub CI remains the final merge gate.