fix(agents): forward memory flush write path#41761
Conversation
Greptile SummaryThis PR fixes a one-line forwarding gap in
Confidence Score: 5/5
Last reviewed commit: ffecc35 |
CHANGELOG.md
Outdated
| - Telegram/exec approvals: reject `/approve` commands aimed at other bots, keep deterministic approval prompts visible when tool-result delivery fails, and stop resolved exact IDs from matching other pending approvals by prefix. (#37233) Thanks @huntharo. | ||
| - Control UI/Sessions: restore single-column session table collapse on narrow viewport or container widths by moving the responsive table override next to the base grid rule and enabling inline-size container queries. (#12175) Thanks @benjipeng. | ||
| - Telegram/final preview delivery: split active preview lifecycle from cleanup retention so missing archived preview edits avoid duplicate fallback sends without clearing the live preview or blocking later in-place finalization. (#41662) thanks @hougangdev. | ||
| - Agents/memory flush: forward `memoryFlushWritePath` through `runEmbeddedPiAgent` so memory-triggered flush turns keep the append-only write guard without aborting before tool setup. Follows up on #38574. |
There was a problem hiding this comment.
Missing PR reference in changelog entry
Every other entry in this section includes a (#XXXXX) PR reference at the end (e.g., (#41662) thanks @hougangdev.). This entry omits the current PR number (#41761), which breaks the consistent pattern and makes it harder to trace back the source of this change later.
| - Agents/memory flush: forward `memoryFlushWritePath` through `runEmbeddedPiAgent` so memory-triggered flush turns keep the append-only write guard without aborting before tool setup. Follows up on #38574. | |
| - Agents/memory flush: forward `memoryFlushWritePath` through `runEmbeddedPiAgent` so memory-triggered flush turns keep the append-only write guard without aborting before tool setup. Follows up on #38574. (#41761) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: CHANGELOG.md
Line: 50
Comment:
**Missing PR reference in changelog entry**
Every other entry in this section includes a `(#XXXXX)` PR reference at the end (e.g., `(#41662) thanks @hougangdev.`). This entry omits the current PR number `(#41761)`, which breaks the consistent pattern and makes it harder to trace back the source of this change later.
```suggestion
- Agents/memory flush: forward `memoryFlushWritePath` through `runEmbeddedPiAgent` so memory-triggered flush turns keep the append-only write guard without aborting before tool setup. Follows up on #38574. (#41761)
```
How can I resolve this? If you propose a fix, please make it concise.e601fed to
b5f12c8
Compare
b5f12c8 to
0a8ebf8
Compare
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
* main: (43 commits) docs: add openclaw#42173 to CHANGELOG — strip leaked model control tokens (openclaw#42216) Agents: align onPayload callback and OAuth imports docs: add Tengji (George) Zhang to maintainer table (openclaw#42190) fix: strip leaked model control tokens from user-facing text (openclaw#42173) Changelog: add unreleased March 9 entries chore: add .dev-state to .gitignore (openclaw#41848) fix(agents): avoid duplicate same-provider cooldown probes in fallback runs (openclaw#41711) fix(mattermost): preserve markdown formatting and native tables (openclaw#18655) feat(acp): add resumeSessionId to sessions_spawn for ACP session resume (openclaw#41847) ACPX: bump bundled acpx to 0.1.16 (openclaw#41975) mattermost: fix DM media upload for unprefixed user IDs (openclaw#29925) fix(msteams): use General channel conversation ID as team key for Bot Framework compatibility (openclaw#41838) fix(mattermost): read replyTo param in plugin handleAction send (openclaw#41176) fix(sandbox): pass real workspace to sessions_spawn when workspaceAccess is ro (openclaw#40757) fix(ui): replace Manual RPC text input with sorted method dropdown (openclaw#14967) CI: select Swift 6.2 toolchain for CodeQL (openclaw#41787) fix(agents): forward memory flush write path (openclaw#41761) fix(telegram): move network fallback to resolver-scoped dispatchers (openclaw#40740) fix(security): harden replaceMarkers() to catch space/underscore boundary marker variants (openclaw#35983) fix(web-search): recover OpenRouter Perplexity citations from message annotations (openclaw#40881) ...
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn (cherry picked from commit 8306eab)
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Merged via squash. Prepared head SHA: 0a8ebf8 Co-authored-by: frankekn <[email protected]> Co-authored-by: frankekn <[email protected]> Reviewed-by: @frankekn
Summary
memoryFlushWritePaththroughrunEmbeddedPiAgentintorunEmbeddedAttemptContext
This follows up on #38574. A post-merge review found that memory-triggered flush turns passed
memoryFlushWritePathintorunEmbeddedPiAgent, but that parameter was not forwarded intorunEmbeddedAttempt, causing the new guard increateOpenClawCodingToolsto throw before tool setup.Testing
pnpm test src/agents/pi-embedded-runner/usage-reporting.test.ts src/agents/pi-tools.workspace-only-false.test.tspnpm exec oxlint src/agents/pi-embedded-runner/run.ts src/agents/pi-embedded-runner/usage-reporting.test.ts CHANGELOG.mdpnpm exec oxfmt --check src/agents/pi-embedded-runner/run.ts src/agents/pi-embedded-runner/usage-reporting.test.ts CHANGELOG.mdpnpm build