chore: rename /bashes to /bg (#232)

This commit is contained in:
Kian Jones
2025-12-16 11:44:44 -05:00
committed by GitHub
parent 0062090df3
commit 0630ac4508
6 changed files with 8 additions and 8 deletions

View File

@@ -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"
);

View File

@@ -94,7 +94,7 @@ export const commands: Record<string, Command> = {
return "Downloading agent file...";
},
},
"/bashes": {
"/bg": {
desc: "Show background shell processes",
handler: () => {
// Handled specially in App.tsx to show background processes

View File

@@ -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",
});

View File

@@ -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

View File

@@ -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
- Shell IDs can be found using the /bg command

View File

@@ -35,7 +35,7 @@ export async function bash(args: BashArgs): Promise<BashResult> {
} = 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 {