Repository navigation
Studio: fix external-server disconnects and show the server port - #16595
Conversation
… start, and name its port
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
[skip ci]
… server Stop now shuts down an attached same-install server, so the tray no longer needs a Disconnect label, the stopped screen no longer needs to explain a disconnect, and the stop intent no longer carries a port. The update message keeps the port but no longer says the app cannot stop the server. The tray-stop test runs the real runStopServer for both a stop that succeeds and one the server refuses.
|
Pushed a combined fix for #16561 to this branch, keeping both contributions:
Validation: desktop stop-intent, forced-repair, managed-environment-wait and tray-status tests (34 pass), test typecheck, strict i18n parity, and Rust tray and attached-stop tests. The native app was not run against a live terminal server. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c81b020b1e
ℹ️ 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".
…failed The backend answers /api/shutdown at once, then lets an active training run save (120 s default budget) before it closes the port, so a 5 s wait reported an accepted shutdown as a failure.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Review loop finished on
Changed during this round:
|
Reported in #16561.
When the desktop app connects to an existing external server, the tray's Stop Server action incorrectly shows "Server stopped" without stopping the server or its health poll. Starting again or reopening the app reconnects to the same server, leaving updates blocked.
The tray listener captures the first render's
isExternalServer=false, so it never takes the disconnect path. This change reads the attached server's port through a ref and cancels the health poll when disconnecting.The tray now offers Disconnect from Server for external servers. The update banner and Settings row show the port and explain where to stop the server. The disconnected screen makes clear that disconnecting did not stop the server, and preserves the port across webview reloads. All 24 locale overlays include the updated messages.
Updates remain blocked while an external server runs. The reporter's server launch source is still unknown; this fixes the disconnect behavior and guidance without changing server ownership.
Verification
Screenshots
Before and after with mocked Tauri IPC. The native tray menu is not shown.
Update banner while attached:
After using the tray action while attached: