Repository navigation
feat(app): open the connection manager from the session list header - #296
Merged
Merged
Conversation
The header's terminal button becomes a Connection manager button: same place and size, the server icon, and the existing "Connection manager" string as its tooltip and label. It opens the manager as the empty start page's button does, or brings the open one to the front. The local terminal stays on the start page. Closes #294 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015nMqJEvqPnRmPgi6dnraZM
Codex Review Summary: ✅ CompletedThis 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. |
The comment alignment came from an older gofmt on PATH; CI formats with the gofmt of go.mod's toolchain. Refs #294 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015nMqJEvqPnRmPgi6dnraZM
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
The session list header's terminal button ("Local terminal") is replaced by a button that opens the connection manager, as the owner asked in #294. Opening the manager is the more frequent action from there, and replacing the button keeps the header as compact as it is at the sidebar's narrow width.
server, from the bundled Lucide set: the manager has no icon of its own elsewhere, andserveris what the start page and the manager's rows use for hosts. Tooltip and accessibility label reuse the existingconnectionManagerstring ("Connection manager" / "连接管理器"), so no locale strings change;localTerminalandlocalTerminalTipare still used by the start page.showManager(false), as the empty start page's button does: it opens the manager, or brings it to the front when it is open. With no hosts it opens the manager alone, with no new-host editor in front of Import. (The keyboard shortcut still usesopenManager, which also opens that editor when there are no hosts.)docs/en/features.mdanddocs/zh-CN/features.md(Sessions and tabs, Local terminal, Connection manager) and the README line that pointed at the terminal button next to "+".main-*andquick-connect-*. Only the button's icon differs from main; the tool's other scenes come out the same.Closes #294
Testing
go build ./...,go vet ./...,GOOS=windows go vet .,GOOS=darwin go vet .,go tool mygo vetgo test -race -count=1 -timeout 30m ./...: all 14 packages pass (no flaky failures this run)TestHeaderOpensManager(English and Simplified Chinese): the header has no Local terminal button; the Connection manager button stays inside the sidebar and shows its tooltip at the default width and at the narrowest (180); a click opens the manager listing the hosts, with no editor; a second click focuses the open window instead of opening another, and no session is added.TestHeaderOpensManagerWithoutHosts: with no hosts, the button opens the manager without the new-host editor.TestLocalTerminalFromHeaderbecameTestLocalTerminalInNewRow, opening the terminal withopenLocal(nil)(the Duplicate session path) instead of the removed button;TestLocalTerminalFromStartPagestill opens one from both start pages, now without switching the sidebar away from the Sessions page.TestConnectFromNewTab/managerandTestStartPageWithoutHostsOpensManagerclick the start page's own button through a helper, since the header now has a button with the same name.Generated by Claude Code