Repository navigation
Conversation
`sentry init` spends a long time waiting on the remote setup workflow. While it waits, a small box invites the user to press `g` and play Snake in the activity pane. The setup spinner and progress sidebar stay visible. The game yields the pane when the wizard needs attention: a prompt, a new warning or error, or the end of the run closes the board and pauses the game, and the invite then offers to resume. Game state lives outside WizardStore so each tick re-renders only the board, which is drawn as a single half-block string. `pnpm --filter sentry run proto:snake` drives the real Ink UI through a fake, offline workflow for local testing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hide the waiting-screen game with SENTRY_INIT_GAME=0 and when an AI agent runs the CLI. Measure the game pane with useBoxMetrics instead of calculating it from the frame layout. A terminal resize now keeps the run, pauses it, and moves the snake inside the new board. The run starts over only when the snake cannot fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sergical
marked this pull request as ready for review
October 6, 2026 22:28
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4521f2f. Configure here.
Esc paused the run only in the board's unmount effect, after the invite had rendered, so the invite kept the play copy. Pause before closing. Ink writes no intermediate frames when it detects CI, so the live snake tests read an empty frame there. Force interactive mode in those tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
sentry initwaits a long time on the remote setup workflow. This PR adds an optional Snake game to the waiting screen. Press g to play.snake-game.ts) is pure state plus a half-block renderer. Each tick re-renders only the board.SENTRY_INIT_GAME=0hides the game. It is also hidden when an AI agent runs the CLI.useBoxMetrics. A resize pauses the run and keeps it.pnpm --filter sentry run proto:snakeruns the UI against a fake, offline workflow.Breaking Changes