Skip to content

fix: migrate recall to before_prompt_build - #154

Open
vincentkoc wants to merge 1 commit into
MemTensor:mainfrom
vincentkoc:fix/openclaw-prompt-hook
Open

fix: migrate recall to before_prompt_build#154
vincentkoc wants to merge 1 commit into
MemTensor:mainfrom
vincentkoc:fix/openclaw-prompt-hook

Conversation

@vincentkoc

Copy link
Copy Markdown

Summary

  • register OpenClaw recall only through before_prompt_build
  • keep the legacy before_agent_start hook only for the separately advertised Moltbot and ClawDBot entrypoints
  • declare the minimum supported OpenClaw plugin API and align docs, config UI copy, tests, and release-note generation

Why

OpenClaw retired before_agent_start. The version-path fallback could still register that removed hook on current development builds whose entrypoint did not expose a parseable package version, causing plugin inspection and runtime compatibility failures.

Verification

  • GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=tag.gpgSign GIT_CONFIG_VALUE_0=false npm test
  • npm pack --dry-run
  • git diff --check

Found through the OpenClaw HEAD compatibility canary in openclaw/crabpot.

@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 11:23
@wacke1

wacke1 commented Aug 21, 2026

Copy link
Copy Markdown

This PR (migrate recall to before_prompt_build) is related to the DuplicateOpenClawRuntimeError issue (#159). Gateway has been stabilized with MemoryHigh=5G, MemoryMax=6G. No restarts in 24h+. Please verify the PR does not reintroduce the runtime-lock issue after merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants