Skip to content

Commit 6244bf0

Browse files
author
catlog22
committed
feat: 更新 CLI 文档,增加背景执行后的提示信息
1 parent 90852c7 commit 6244bf0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.claude/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Available CLI endpoints are dynamically defined by the config file:
2626
```
2727
Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true })
2828
```
29-
- **After CLI call**: Stop immediately - let CLI execute in background, do NOT poll with TaskOutput
29+
- **After CLI call**: If no other tasks, stop immediately - let CLI execute in background, do NOT poll with TaskOutput
3030

3131
## Code Diagnostics
3232

ccw/src/commands/cli.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,9 @@ async function execAction(positionalPrompt: string | undefined, options: CliExec
702702
console.log(chalk.gray(` Total: ${result.conversation.turn_count} turns, ${(result.conversation.total_duration_ms / 1000).toFixed(1)}s`));
703703
}
704704
console.log(chalk.dim(` Continue: ccw cli -p "..." --resume ${result.execution.id}`));
705+
if (!stream) {
706+
console.log(chalk.dim(` Output (optional): ccw cli output ${result.execution.id}`));
707+
}
705708

706709
// Notify dashboard: execution completed
707710
notifyDashboard({

0 commit comments

Comments
 (0)