From 6244bf0405dd5cd549cb58b2ed887741c6342571 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 25 Dec 2025 22:35:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20CLI=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=83=8C=E6=99=AF=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=90=8E=E7=9A=84=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/CLAUDE.md | 2 +- ccw/src/commands/cli.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 8065c94b..5d3edca7 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -26,7 +26,7 @@ Available CLI endpoints are dynamically defined by the config file: ``` Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true }) ``` -- **After CLI call**: Stop immediately - let CLI execute in background, do NOT poll with TaskOutput +- **After CLI call**: If no other tasks, stop immediately - let CLI execute in background, do NOT poll with TaskOutput ## Code Diagnostics diff --git a/ccw/src/commands/cli.ts b/ccw/src/commands/cli.ts index fb57dcf0..9fbed256 100644 --- a/ccw/src/commands/cli.ts +++ b/ccw/src/commands/cli.ts @@ -702,6 +702,9 @@ async function execAction(positionalPrompt: string | undefined, options: CliExec console.log(chalk.gray(` Total: ${result.conversation.turn_count} turns, ${(result.conversation.total_duration_ms / 1000).toFixed(1)}s`)); } console.log(chalk.dim(` Continue: ccw cli -p "..." --resume ${result.execution.id}`)); + if (!stream) { + console.log(chalk.dim(` Output (optional): ccw cli output ${result.execution.id}`)); + } // Notify dashboard: execution completed notifyDashboard({