Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

revert(agent): remove parallel tool execution patch, keep serial

Jiayuan Zhang084657868fff
diff --git a/package.json b/package.json
index d39e61455f..80b868f413 100644
--- a/package.json
+++ b/package.json
@@ -44,9 +44,6 @@
"overrides": {
"@types/react": "catalog:",
"@types/react-dom": "catalog:"
- },
- "patchedDependencies": {
- "@mariozechner/[email protected]": "patches/@[email protected]"
}
},
"devDependencies": {
diff --git a/packages/core/src/agent/runner.ts b/packages/core/src/agent/runner.ts
index 48bc355d1a..da3112a1c8 100644
--- a/packages/core/src/agent/runner.ts
+++ b/packages/core/src/agent/runner.ts
@@ -783,19 +783,17 @@ export class Agent {
private handleRunLogEvent(event: AgentEvent) {
if (event.type === "tool_execution_start") {
- const toolCallId = (event as any).toolCallId ?? "unknown";
const toolName = (event as any).toolName ?? "unknown";
- this.toolStartTimes.set(toolCallId, Date.now());
+ this.toolStartTimes.set(toolName, Date.now());
this.runLog.log("tool_start", {
tool: toolName,
args: JSON.stringify((event as any).args ?? {}).slice(0, 500),
});
} else if (event.type === "tool_execution_end") {
- const toolCallId = (event as any).toolCallId ?? "unknown";
const toolName = (event as any).toolName ?? "unknown";
- const startTime = this.toolStartTimes.get(toolCallId);
+ const startTime = this.toolStartTimes.get(toolName);
const duration_ms = startTime ? Date.now() - startTime : undefined;
- this.toolStartTimes.delete(toolCallId);
+ this.toolStartTimes.delete(toolName);
// Extract result metadata for run-log persistence (survives session compaction)
const result = (event as any).result;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 18c13e8b3a..cc765ee9e6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -68,18 +68,13 @@ overrides:
'@types/react': ^19.2.0
'@types/react-dom': ^19.2.0
-patchedDependencies:
- '@mariozechner/[email protected]':
- hash: befbe3b9fd1a6d3e13dfa4927d9f0addd2f3b3454bd9d407c16dacb9a71c0f00
- path: patches/@[email protected]
-
importers:
.:
dependencies:
'@mariozechner/pi-agent-core':
specifier: 'catalog:'
- version: 0.52.9(patch_hash=befbe3b9fd1a6d3e13dfa4927d9f0addd2f3b3454bd9d407c16dacb9a71c0f00)(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
'@mariozechner/pi-ai':
specifier: 'catalog:'
@@ -596,7 +591,7 @@ importers:
dependencies:
'@mariozechner/pi-agent-core':
specifier: 'catalog:'
- version: 0.52.9(patch_hash=befbe3b9fd1a6d3e13dfa4927d9f0addd2f3b3454bd9d407c16dacb9a71c0f00)(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
'@mariozechner/pi-ai':
specifier: 'catalog:'
@@ -695,7 +690,7 @@ importers:
devDependencies:
'@mariozechner/pi-agent-core':
specifier: 'catalog:'
- version: 0.52.9(patch_hash=befbe3b9fd1a6d3e13dfa4927d9f0addd2f3b3454bd9d407c16dacb9a71c0f00)(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
'@mariozechner/pi-ai':
specifier: 'catalog:'
@@ -12503,7 +12498,7 @@ snapshots:
std-env: 3.10.0
yoctocolors: 2.1.2
- '@mariozechner/[email protected](patch_hash=befbe3b9fd1a6d3e13dfa4927d9f0addd2f3b3454bd9d407c16dacb9a71c0f00)(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])':
dependencies:
'@mariozechner/pi-ai': 0.52.9(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
transitivePeerDependencies:
@@ -12542,7 +12537,7 @@ snapshots:
dependencies:
'@mariozechner/jiti': 2.6.5
- '@mariozechner/pi-agent-core': 0.52.9(patch_hash=befbe3b9fd1a6d3e13dfa4927d9f0addd2f3b3454bd9d407c16dacb9a71c0f00)(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
+ '@mariozechner/pi-agent-core': 0.52.9(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
'@mariozechner/pi-ai': 0.52.9(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])
'@mariozechner/pi-tui': 0.52.9
'@silvia-odwyer/photon-node': 0.3.4