chore: rename /bashes to /bg (#232)
This commit is contained in:
@@ -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"
|
||||
);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user