feat(ui): add terminal reconnection on daemon disconnect#641
Open
feat(ui): add terminal reconnection on daemon disconnect#641
Conversation
When the daemon reader connection drops, the terminal view now shows "Press R to reconnect" instead of a dead-end error. The Reconnect action spawns an async task that calls connect_for_attach(), builds a new Terminal::from_daemon(), and replaces the terminal + event task atomically. Handles edge cases: daemon gone, session destroyed, multiple rapid presses, local terminals unaffected.
Owner
Author
PR Review SummaryCritical Issues (0 found)No critical issues found. Important Issues (2 found)
Suggestions (4 found)
Strengths
VerdictREADY TO MERGE (with minor fixes recommended) Recommended Actions
|
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
ReconnectStateenum (Idle,Connecting,Failed) anddaemon_session_idfield toTerminalReconnectGPUI action onTerminalViewtriggered by R key when terminal has errorconnect_for_attach(), builds newTerminal::from_daemon(), replaces terminal + event task atomicallyTest plan
cargo fmt --checkpassescargo clippy --all -- -D warningspassescargo test --allpassescargo build --allpasses