From 0630ac4508532734b02dc676326ae0bd09f13e0f Mon Sep 17 00:00:00 2001 From: Kian Jones <11655409+kianjones9@users.noreply.github.com> Date: Tue, 16 Dec 2025 11:44:44 -0500 Subject: [PATCH] chore: rename /bashes to /bg (#232) --- src/cli/App.tsx | 4 ++-- src/cli/commands/registry.ts | 2 +- src/tests/tools/bash.test.ts | 4 ++-- src/tools/descriptions/BashOutput.md | 2 +- src/tools/descriptions/KillBash.md | 2 +- src/tools/impl/Bash.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 1eccc64..6dd47f3 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -2104,8 +2104,8 @@ export default function App({ return { submitted: true }; } - // Special handling for /bashes command - show background shell processes - if (msg.trim() === "/bashes") { + // Special handling for /bg command - show background shell processes + if (msg.trim() === "/bg") { const { backgroundProcesses } = await import( "../tools/impl/process_manager" ); diff --git a/src/cli/commands/registry.ts b/src/cli/commands/registry.ts index 7d8bce3..add3b04 100644 --- a/src/cli/commands/registry.ts +++ b/src/cli/commands/registry.ts @@ -94,7 +94,7 @@ export const commands: Record = { return "Downloading agent file..."; }, }, - "/bashes": { + "/bg": { desc: "Show background shell processes", handler: () => { // Handled specially in App.tsx to show background processes diff --git a/src/tests/tools/bash.test.ts b/src/tests/tools/bash.test.ts index 4701414..15afadb 100644 --- a/src/tests/tools/bash.test.ts +++ b/src/tests/tools/bash.test.ts @@ -69,9 +69,9 @@ describe("Bash tool", () => { expect(result.content[0]?.text).not.toContain("foo"); }); - test("lists background processes with /bashes command", async () => { + test("lists background processes with /bg command", async () => { const result = await bash({ - command: "/bashes", + command: "/bg", description: "List processes", }); diff --git a/src/tools/descriptions/BashOutput.md b/src/tools/descriptions/BashOutput.md index 96c5614..e2bf6a4 100644 --- a/src/tools/descriptions/BashOutput.md +++ b/src/tools/descriptions/BashOutput.md @@ -6,5 +6,5 @@ - Returns stdout and stderr output along with shell status - Supports optional regex filtering to show only lines matching a pattern - Use this tool when you need to monitor or check the output of a long-running shell -- Shell IDs can be found using the /bashes command +- Shell IDs can be found using the /bg command - If the accumulated output exceeds 30,000 characters, it will be truncated before being returned to you diff --git a/src/tools/descriptions/KillBash.md b/src/tools/descriptions/KillBash.md index 0a2a8da..d3d0d1a 100644 --- a/src/tools/descriptions/KillBash.md +++ b/src/tools/descriptions/KillBash.md @@ -4,4 +4,4 @@ - Takes a shell_id parameter identifying the shell to kill - Returns a success or failure status - Use this tool when you need to terminate a long-running shell -- Shell IDs can be found using the /bashes command \ No newline at end of file +- Shell IDs can be found using the /bg command \ No newline at end of file diff --git a/src/tools/impl/Bash.ts b/src/tools/impl/Bash.ts index 5a91d1c..68f3e7f 100644 --- a/src/tools/impl/Bash.ts +++ b/src/tools/impl/Bash.ts @@ -35,7 +35,7 @@ export async function bash(args: BashArgs): Promise { } = args; const userCwd = process.env.USER_CWD || process.cwd(); - if (command === "/bashes") { + if (command === "/bg") { const processes = Array.from(backgroundProcesses.entries()); if (processes.length === 0) { return {