Skip to content

feat(app): choose each server's terminal shell from its menu - #63539

Merged
usrnk1 merged 3 commits into
devfrom
server-shell-menu
Nov 12, 2026
Merged

usrnk1 merged 3 commits into
devfrom
server-shell-menu

Conversation

@usrnk1

@usrnk1 usrnk1 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Summary

On the Servers settings page, when there is more than one server, each server's terminal shell is now chosen from its ⋯ menu (Terminal shell submenu, current shell checked) instead of a separate row under every server card. With a single server, the Server page keeps its Preferences section with the Terminal shell row unchanged.

  • Settings search for "Terminal shell" highlights the server's row (the ⋯ trigger carries the search target).
  • The submenu appears only while the server's settings can load, so offline or signed-out servers don't show it.
  • No feature flag: a small UI placement change.

Checks

  • bun typecheck (packages/app): passes
  • bun run lint:changed origin/dev: 0 problems
  • settings.spec.ts "single-server settings expose scoped pages without a server picker": passes (failed once on a cold Vite start, passed on rerun)
  • settings.spec.ts "several servers share one selected server across per-server pages": passes
  • No e2e case covers the new submenu yet.

Screenshots

Before (base dev), shell picker per server card:

After, shell in the server menu:

After, server cards without the shell row:

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sound. Type-check (tsc -b) and the settings/servers unit tests pass. I couldn't load the web Servers page here (no Playwright browsers), so I'm relying on your screenshots for how it looks.

The submenu uses the same createShellOptions and createServerShellController as the old row, and it only shows while serverPagesConnection is ready. Settings search still finds the selected server's row through data-action on the ⋯ trigger. Other callers of ServerRowMenu and ServerRowMenuView don't pass shell, so they're unaffected, and the single-server Preferences section is unchanged.

Public API: unchanged (app UI only).

Minor: the action prop on ShellSetting (and its comment about "the other servers' rows") is now unused and could be dropped.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The earlier minor point is addressed: the unused action prop and its stale comment are gone from ShellSetting. Its only remaining caller is the single-server Preferences section, which passed no action, so behaviour is unchanged. tsc -b in packages/app passes. Public API: unchanged. Nothing new to raise.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only new commit merges dev and doesn't touch this pull request's files, so the change is the same as last review. Public API: unchanged. Nothing new to raise.

@usrnk1
usrnk1 merged commit 1c53e40 into dev Nov 12, 2026
10 checks passed
@usrnk1
usrnk1 deleted the server-shell-menu branch November 12, 2026 14:37
Hona added a commit to anomalyco/opencode-rune that referenced this pull request Nov 20, 2026
…#258)

Ports anomalyco/opencode#63539 (PRE-09):

- In multi-server Settings > Servers, removes the inline Terminal shell
  setting row below each server card and adds a Terminal shell radio
  submenu inside each reachable server's `...` row menu (matching
  packages/app/src/settings/servers/servers.tsx and
  packages/app/src/servers/registry/row-menu.tsx).
- Keeps the single-server Settings > Server view unchanged (Connection card
  with Edit-only menu plus Preferences card with inline Terminal shell
  picker).
- Preserves Settings search reveal targeting (`settings-shell` /
  `settings-shell:<key>`) on multi-server rows and loads a server's shell
  list on demand if the row menu opens before initial shells load.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant