Commit 1d4b7c2c5c2c5f12c29d86f250baf7a4d2fc78fb
1 parent
ff6b47ad
chore: mute verbose ClaudeCliProtocol stream logs to prevent terminal spam
Showing
1 changed file
with
3 additions
and
3 deletions
packages/acp-core/protocol/ClaudeCliProtocol.js
| ... | ... | @@ -90,7 +90,7 @@ class ClaudeCliProtocol extends EventEmitter { |
| 90 | 90 | // stdout → NDJSON 解析 |
| 91 | 91 | this._child.stdout.on('data', (data) => { |
| 92 | 92 | const raw = data.toString(); |
| 93 | - console.log(`[ClaudeCliProtocol] 📥 stdout (${raw.length} bytes):`, raw.substring(0, 200)); | |
| 93 | + // console.log(`[ClaudeCliProtocol] 📥 stdout (${raw.length} bytes):`, raw.substring(0, 200)); | |
| 94 | 94 | this._buffer += raw; |
| 95 | 95 | const lines = this._buffer.split('\n'); |
| 96 | 96 | this._buffer = lines.pop() || ''; |
| ... | ... | @@ -249,7 +249,7 @@ class ClaudeCliProtocol extends EventEmitter { |
| 249 | 249 | }; |
| 250 | 250 | |
| 251 | 251 | const jsonLine = JSON.stringify(message) + '\n'; |
| 252 | - console.log(`[ClaudeCliProtocol] 发送 prompt (${text.length} chars)`); | |
| 252 | + // console.log(`[ClaudeCliProtocol] 发送 prompt (${text.length} chars)`); | |
| 253 | 253 | |
| 254 | 254 | try { |
| 255 | 255 | this._child.stdin.write(jsonLine); |
| ... | ... | @@ -275,7 +275,7 @@ class ClaudeCliProtocol extends EventEmitter { |
| 275 | 275 | * @private |
| 276 | 276 | */ |
| 277 | 277 | _handleStreamEvent(event) { |
| 278 | - console.log(`[ClaudeCliProtocol] 🔄 event.type=${event.type}`); | |
| 278 | + // console.log(`[ClaudeCliProtocol] 🔄 event.type=${event.type}`); | |
| 279 | 279 | switch (event.type) { |
| 280 | 280 | case 'system': |
| 281 | 281 | this.sessionId = event.session_id || this.sessionId; | ... | ... |