feat: 更新 CLI 文档,增加背景执行后的提示信息

This commit is contained in:
catlog22
2025-12-25 22:35:39 +08:00
parent 90852c7788
commit 6244bf0405
2 changed files with 4 additions and 1 deletions

View File

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

View File

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