Skip to content

feat(app): open the connection manager from the session list header - #296

Merged
TooonyChen merged 2 commits into
mainfrom
feature/session-header-manager-button
Dec 1, 2026
Merged

TooonyChen merged 2 commits into
mainfrom
feature/session-header-manager-button

Conversation

@TooonyChen

Copy link
Copy Markdown
Owner

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.

  • Same place and size, between the gear (Options) and "+" (New tab). Icon server, from the bundled Lucide set: the manager has no icon of its own elsewhere, and server is what the start page and the manager's rows use for hosts. Tooltip and accessibility label reuse the existing connectionManager string ("Connection manager" / "连接管理器"), so no locale strings change; localTerminal and localTerminalTip are still used by the start page.
  • A click calls 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 uses openManager, which also opens that editor when there are no hosts.)
  • The local terminal is still reachable from the "Local terminal" button on a new tab's start page (both the quick-connect page and the page without hosts), and from Duplicate session on a local terminal's row. It never had a shortcut, so the shortcut list is unchanged.
  • Docs: docs/en/features.md and docs/zh-CN/features.md (Sessions and tabs, Local terminal, Connection manager) and the README line that pointed at the terminal button next to "+".
  • README screenshots regenerated where the header shows: main-* and quick-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 vet
  • go test -race -count=1 -timeout 30m ./...: all 14 packages pass (no flaky failures this run)
  • New 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.
  • New TestHeaderOpensManagerWithoutHosts: with no hosts, the button opens the manager without the new-host editor.
  • TestLocalTerminalFromHeader became TestLocalTerminalInNewRow, opening the terminal with openLocal(nil) (the Duplicate session path) instead of the removed button; TestLocalTerminalFromStartPage still opens one from both start pages, now without switching the sidebar away from the Sessions page.
  • TestConnectFromNewTab/manager and TestStartPageWithoutHostsOpensManager click the start page's own button through a helper, since the header now has a button with the same name.
  • Headless screenshots of the header before and after, both languages, default and narrowest width, with the tooltip, were checked by eye.
  • Not tested: the real windows on Windows, macOS and Linux (no platform-specific code changed).

Generated by Claude Code

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T23:06:08.532736Z f8412cb PR opened
ℹ️ 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" or "@codex security review".

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
@TooonyChen
TooonyChen merged commit fe86ca9 into main Dec 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(app): open the connection manager from the session list header instead of a local terminal

2 participants