Skip to content

feat(cli): make prompt elements clickable to open dialogs#12318

Open
bbabou wants to merge 1 commit intoanomalyco:devfrom
bbabou:feat/clickable-prompt-ui
Open

feat(cli): make prompt elements clickable to open dialogs#12318
bbabou wants to merge 1 commit intoanomalyco:devfrom
bbabou:feat/clickable-prompt-ui

Conversation

@bbabou
Copy link
Contributor

@bbabou bbabou commented Feb 5, 2026

What does this PR do?

This PR addresses the issue where the prompt elements (agent name, model, provider, and variant) in the TUI are displayed as static text, making it harder for users to change them without keyboard shortcuts. I added click handlers to these elements so users can click them to open selection dialogs or cycle options, improving usability for mouse users.

The changes were made in index.tsx:

  • Imported the necessary dialog components (DialogAgent, DialogModel).
  • Added onMouseUp handlers to the <text> elements for agent, model, provider, and variant.
  • For agent: Opens the agent dialog (only in normal mode).
  • For model: Opens the model dialog.
  • For provider: Opens the provider connection dialog.
  • For variant: Cycles through variants using the existing cycle method.

How did you verify your code works?

I verified by running bun dev locally, starting the TUI, and clicking each element to ensure the dialogs open or variants cycle as expected. I also tested that keyboard shortcuts (like agent cycling) still work and that the UI doesn't break in shell mode. No errors appeared, and the changes don't affect other parts of the app.

closes #12315

make-prompt-elements-clickable.mp4

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

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

No duplicate PRs found

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.

[FEATURE]: Make prompt elements clickable for easier agent/model selection

1 participant