From 836c2060c7d5d0a67ee3b347ad4bf0dc73f9ca0f Mon Sep 17 00:00:00 2001 From: adamdotdevin <2363879+adamdottv@users.noreply.github.com> Date: Mon, 25 Aug 2025 11:32:15 -0500 Subject: [PATCH] fix(tui): sort custom commands lower --- packages/tui/internal/commands/command.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/tui/internal/commands/command.go b/packages/tui/internal/commands/command.go index ae34f4b52..d552b78ec 100644 --- a/packages/tui/internal/commands/command.go +++ b/packages/tui/internal/commands/command.go @@ -92,12 +92,12 @@ func (r CommandRegistry) Sorted() []Command { if b.Name == AppExitCommand { return -1 } - if a.Custom { - return -1 - } - if b.Custom { + if a.Custom && !b.Custom { return 1 } + if !a.Custom && b.Custom { + return -1 + } return strings.Compare(string(a.Name), string(b.Name)) })