opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: Add variant cycle tooltip in session prompt

Open shuv1337 opened this issue 4 weeks ago • 6 comments

What does this PR do?

Add variant cycle tooltip in TUI prompt when model has variants available

How did you verify your code works?

image

shuv1337 avatar Jan 11 '26 03:01 shuv1337

Hey! Your PR title Add variant cycle tooltip in session prompt doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

github-actions[bot] avatar Jan 11 '26 03:01 github-actions[bot]

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

No duplicate PRs found

github-actions[bot] avatar Jan 11 '26 03:01 github-actions[bot]

You can just press ctrl + p and look for Variant cycle to see the keybind. There's no point in doing this except for UI bloat. I've seen the post on X, but people should really just RTFM.

xHeaven avatar Jan 11 '26 03:01 xHeaven

You can just press ctrl + p and look for Variant cycle to see the keybind. There's no point in doing this except for UI bloat. I've seen the post on X, but people should really just RTFM.

Variant is a new primitive that a lot of people aren't yet aware of, and lots of coding agents have a visible tool tip for thinking toggle so some people expect it.

Regarding the command palette, and speaking of ui bloat, I would be more inclined to add a command palette option to HIDE the thinking tool tip that is enabled by default. This will help new users find the keybind, and also satisfy people who complain about ui bloat.

Either way, the team can decide if they like the feature or not. I was mostly showing someone on twitter why opencode is cool- because they will review my PR in good faith, merge it if they like it, provide feedback if it needs improvement, or explain why they don't want to merge it.

shuv1337 avatar Jan 11 '26 04:01 shuv1337

+1 I changed my individual models with thinking token budgets into variants. I then struggled to find the former thinking levels because I didn't know the keyword in the interface would also be variants. I think at least for a little while showing this would help reduce confusion

maxious avatar Jan 11 '26 07:01 maxious

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

github-actions[bot] avatar Jan 11 '26 07:01 github-actions[bot]

implemented their own version in 1.1.15

shuv1337 avatar Jan 13 '26 01:01 shuv1337