fix(tui): run dialog actions without selection (#36711)

This commit is contained in:
Kit Langton 2026-07-13 15:19:40 -04:00 committed by GitHub
commit 41349ff20a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 185 additions and 22 deletions

View file

@ -132,6 +132,7 @@ export function DialogModel(props: { providerID?: string }) {
{
command: "model.dialog.provider",
title: connected() ? "Connect integration" : "View all integrations",
selection: "none",
onTrigger() {
dialog.replace(() => (
<DialogIntegration

View file

@ -345,6 +345,7 @@ export function DialogMoveSession(props: DialogMoveSessionProps) {
{
command: "dialog.move_session.new",
title: "new",
selection: "none",
onTrigger: () => void create(),
},
{
@ -360,6 +361,7 @@ export function DialogMoveSession(props: DialogMoveSessionProps) {
{
command: "dialog.move_session.refresh",
title: "refresh",
selection: "none",
onTrigger: () => void refetch(),
},
]