The open source coding agent.
TypeScript
fix(tui): sort custom commands lower
adamdotdevin836c2060c7d5
diff --git a/packages/tui/internal/commands/command.go b/packages/tui/internal/commands/command.goindex ae34f4b52a2..d552b78ece4 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))})