evolclaw 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -486,7 +486,12 @@ export class SessionManager {
486
486
  for (const line of lines) {
487
487
  const event = JSON.parse(line);
488
488
  if (event.type === 'user' && event.message?.role === 'user') {
489
- turns++;
489
+ // Only count real user input, skip auto-generated tool_result messages
490
+ const content = event.message.content;
491
+ const isToolResult = Array.isArray(content) && content.every((c) => c.type === 'tool_result');
492
+ if (!isToolResult) {
493
+ turns++;
494
+ }
490
495
  }
491
496
  // 提取会话标题(从 session 元数据中)
492
497
  if (event.title && !title) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evolclaw",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Lightweight AI Agent gateway connecting Claude Agent SDK to messaging channels (Feishu, ACP) with multi-project session management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",