Skip to content

Commit f166781

Browse files
fix(pi): keep message-tool delivery in session lock
1 parent a81d2d9 commit f166781

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Docs: https://docs.openclaw.ai
1111

1212
### Fixes
1313

14+
- Agents/messages: stop message-tool-only turns after a successful source-channel `message` send while keeping transcript mirrors under the session write lock. (#84289)
1415
- Agents: filter silent heartbeat response-tool transcript artifacts out of embedded context snapshots so later user turns are not polluted by heartbeat no-op messages. (#83477) Thanks @fuller-stack-dev.
1516
- Agents/OpenAI: log repeated strict tool-schema downgrade diagnostics once per provider/model/tool signature, reducing duplicate debug noise while preserving `strict=false` fallback behavior. Fixes #82930. (#82933) Thanks @galiniliev.
1617
- Agents/code mode: spell out the `exec` tool's JavaScript/TypeScript, no Node module, and catalog-bridge constraints in model-visible schema text so agents can use enabled tools without trial-and-error. (#84269) Thanks @Kaspre.

src/agents/pi-embedded-runner/run/message-tool-terminal.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,14 @@ function createToolCallAssistant(
306306
api: "openai-responses",
307307
provider: "openai",
308308
model: "gpt-5.5",
309+
usage: {
310+
input: 0,
311+
output: 0,
312+
cacheRead: 0,
313+
cacheWrite: 0,
314+
totalTokens: 0,
315+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },
316+
},
309317
stopReason: "toolUse",
310318
timestamp: 0,
311319
};

0 commit comments

Comments
 (0)