Skip to content

feat(app)!: send the command bar to the current session only - #176

Merged
TooonyChen merged 1 commit into
mainfrom
feature/bar-current-session
Nov 10, 2026
Merged

TooonyChen merged 1 commit into
mainfrom
feature/bar-current-session

Conversation

@TooonyChen

Copy link
Copy Markdown
Owner

Summary

The command bar no longer has a send-target button. Enter in the bar now always sends to the current session, or to its focused pane while it is split. It goes through sendLine directly and never reads the window's send target, so "All sessions" set in the Commands tab can't make Enter in the bar run on every server. The target is still in the Commands tab toolbar and the command editor, which keep sharing it.

  • commandbar.go: the bar row is now icon, input and History. sendBar sends to its own session and empties the bar. It no longer calls sendToTargets or shows the question.
  • sendtarget.go: removed barTarget, the short label variant (targetLabel takes no argument now) and the bar-<ID> popover anchor. quickTarget, the picker and the question are unchanged.
  • Removed what only the bar used: the sendToAllCount string in both locale files (catalog regenerated) and internal/icons/svg/send.svg.
  • Docs: features.md (Local terminal, Splits, Command bar, Commands tab, Command editor) and development.md, in English and Chinese. The README never said the bar sends to several sessions, so it is unchanged. The README screenshots were regenerated.

Changelog: Breaking: the command bar no longer follows the send target. It always sends to the current session. To send to several sessions, use the Commands tab or the command editor's "Send to".

Closes #172

Testing

  • TestSendTargetAll: with All set in the Commands tab, Enter in the bar reaches only web-1 and asks nothing, including when the target is not yet confirmed. Only web-1's history gets the line. Quick commands still reach every session after the question. Only one target control is shown.
  • TestSendTargetChosen: Choose sessions is now opened from the Commands tab toolbar. Chosen sessions get a quick command after the question, and the bar still sends only to its own (unchosen) session.
  • TestPanesSendToAll: split session plus a second server, with All set from the Commands tab. The bar reaches only the focused pane of the current session, and the other server's shell gets nothing. A quick command asks first, then reaches each session's focused pane once.
  • TestCmdEditorSendAll (unchanged) passes: the editor still reaches every session and asks first.
  • TestCommandBarHistory now clicks History by name instead of by position after the removed button.
  • gofmt clean, go build ./..., go vet ./... (also GOOS=windows, and GOOS=darwin for the root package), go tool mygo vet and go test -race ./... all pass.
  • Looked at the bar in English and Simplified Chinese: it shows the icon, the input and History only.

Generated by Claude Code

Remove the send-target button from the command bar. Enter in the bar
sends to its own session, to the focused pane while split, through
sendLine directly: it never reads the window's send target and never
asks. The target stays in the Commands tab toolbar and the command
editor, which keep sharing it, so "All sessions" set there no longer
makes Enter in the bar run on every server.

Drop barTarget, the bar's short label and its popover anchor, the send
icon and the sendToAllCount string only the bar used.

BREAKING CHANGE: the command bar no longer follows the send target; it
always sends to the current session. Use the Commands tab or the command
editor to send to several sessions.

Closes #172

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015nMqJHsqtndDSqJDPp1qYv
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-11-10T04:16:04.118734Z 185fa49 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.

@TooonyChen
TooonyChen merged commit 5f052fb into main Nov 10, 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)!: send the command bar to the current session only

2 participants