fix(cli): let lowercase d type in /agents search (#1006)

This commit is contained in:
paulbettner
2026-02-18 00:18:38 -05:00
committed by GitHub
parent 61139bfd4f
commit 9b438bdd91
2 changed files with 26 additions and 2 deletions

View File

@@ -615,7 +615,7 @@ export function AgentSelector({
}
loadPinnedAgents();
}
} else if (input === "d" || input === "D") {
} else if (input === "D") {
// Delete agent - open confirmation
let selectedAgent: AgentState | null = null;
let selectedAgentId: string | null = null;
@@ -937,7 +937,7 @@ export function AgentSelector({
: activeTab === "letta-code"
? `Page ${lettaCodePage + 1}${lettaCodeHasMore ? "+" : `/${lettaCodeTotalPages || 1}`}${lettaCodeLoadingMore ? " (loading...)" : ""}`
: `Page ${allPage + 1}${allHasMore ? "+" : `/${allTotalPages || 1}`}${allLoadingMore ? " (loading...)" : ""}`;
const hintsText = `Enter select · ↑↓ ←→ navigate · Tab switch · D delete${activeTab === "pinned" ? " · P unpin" : ""}${onCreateNewAgent ? " · N new" : ""} · Esc cancel`;
const hintsText = `Enter select · ↑↓ ←→ navigate · Tab switch · Shift+D delete${activeTab === "pinned" ? " · P unpin" : ""}${onCreateNewAgent ? " · N new" : ""} · Esc cancel`;
return (
<Box flexDirection="column">