Skip to content

feat(tui): open agent, model and variant pickers from the prompt footer - #55660

Closed
gaojunran wants to merge 1 commit into
anomalyco:v2from
gaojunran:tui-prompt-footer-pickers
Closed

gaojunran wants to merge 1 commit into
anomalyco:v2from
gaojunran:tui-prompt-footer-pickers

Conversation

@gaojunran

Copy link
Copy Markdown

Issue for this PR

Closes #48563

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The prompt footer shows agent · model · variant as plain text (#48563). This wires each label to the picker its keyboard shortcut already opens, by dispatching the existing keymap commands on click: agent → agent.list, model and provider → model.list, variant → variant.list.

Clicks only fire on a plain left click: the handlers in ui/click.ts ignore a press released on a different cell or ending with an active text selection, so drag-to-select over the footer keeps working. The guard mirrors the closed v1 attempt #53871, which the bot asked to redo against v2.

How did you verify your code works?

  • bun test test/component/prompt-metadata-click.test.tsx — renders the metadata row, clicks each label and asserts the picked target (agent, model, variant); also asserts that releasing a transcript selection over the labels, and pressing a label then releasing off it, do not trigger a pick.
  • bun run typecheck and bunx oxlint on the touched files.
  • Full bun test in packages/tui: 1464 pass. The only 2 failures (dialog-shell-output timeouts) reproduce identically on the unmodified v2 base commit, so they are pre-existing environment flakes, not from this change.

Screenshots / recordings

Interaction-only change — the footer renders exactly as before, no visual diff.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencode-agent opencode-agent Bot closed this Oct 15, 2026
@opencode-agent

Copy link
Copy Markdown
Contributor

Thanks for putting this together, @gaojunran!

On 2026-10-10 the v2 branch was promoted to dev, and all v2 work now happens on dev. This pull request targets v2, which is no longer used, so it's being closed automatically.

Please open it again with dev as the base. You can keep the same branch; just create a new pull request against dev.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

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.

1 participant