fix(cli): optimize app relaunch process and fix restart functionality#24667
Draft
fix(cli): optimize app relaunch process and fix restart functionality#24667
Conversation
Contributor
|
Hi @sehoon38, thank you so much for your contribution to Gemini CLI! We really appreciate the time and effort you've put into this. We're making some updates to our contribution process to improve how we track and review changes. Please take a moment to review our recent discussion post: Improving Our Contribution Process & Introducing New Guidelines. Key Update: Starting January 26, 2026, the Gemini CLI project will require all pull requests to be associated with an existing issue. Any pull requests not linked to an issue by that date will be automatically closed. Thank you for your understanding and for being a part of our community! |
|
Size Change: +3.92 kB (+0.01%) Total Size: 34 MB
ℹ️ View Unchanged
|
ilkerozgedik
approved these changes
Apr 4, 2026
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
This PR optimizes the application relaunch process to avoid a double boot-up, significantly improving the startup time. It also fixes an issue where the restart functionality stopped working by correcting the expected
RELAUNCH_EXIT_CODE.Details
packages/cli/index.tsso the lightweight daemon can boot up and fork before heavy modules (gemini.js) are parsed and evaluated.RELAUNCH_EXIT_CODEmismatch. It was temporarily42but the main codebase expected199. Setting it back to199fixed the app restarts.anywere used insideindex.ts. Replacedanywithunknownand performed proper type-checking.Related Issues
None.
How to Validate
Pre-Merge Checklist