Repository navigation
fix(agent): show host reconnects as a title-row spinner - #1461
Merged
Merged
Conversation
A dropped host connection filled the space above the composer: a red "Connection lost" banner while it recovered, a notice for each call it cut off, and more notices for a send or task switch tried meanwhile. The connection recovers by itself, so none of these asked for anything, and a cut-off call's notice could outlast the reconnect it asked for. Show one muted spinner at the far right of the title row instead. Its tooltip says what is happening, reconnecting or reloading task history, and that sending and switching tasks are paused. A send keeps its text in the composer. Outcomes that need the user keep their banners and stop the spinner. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
A dropped host connection filled the space above the composer: a red "Connection lost" banner while it recovered, a notice for each call it cut off, and more notices for a send or task switch tried meanwhile. The connection recovers by itself, so none of these asked for anything. A cut-off call's notice could also outlast the reconnect, still saying "Reconnect" with nothing left to do.
This replaces all of that with one muted spinner at the far right of the chat title row. Hovering it says what is happening:
Behavior
host::is_host_disconnectare hidden, atrender_notice, because a failed call's result can land on either side of the reconnect events.Known tradeoffs
Validation
Run on macOS 27.2 in the Agent Nix shell, with no backend, since this changes only the desktop app's UI state.
just ci-lint: passes.cargo test --locked --workspace --no-fail-fast: 2,590 passed, 1 failed. The failure isreads_native_release_tar_format_and_preserves_bundle_modes, which is unrelated and tracked in Updater archive test fails on macOS when files carry com.apple.provenance #1460.just ci-extra: passes.ChatScreenoffscreen in the reconnecting and hover states.Committed with
MAPLE_HOOK_SKIP=1because the pre-commit hook stops at #1460. It only selected the Agent component, whose lanes are the checks above.Not verified: a real host drop in the running app. The tests drive the real host events and real client errors, but not a live disconnect. The tooltip was checked on macOS only.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.