Skip to content

fix(runner): avoid duplicate system prompt on new OpenClaw#86

Open
YOMXXX wants to merge 1 commit into
Tencent:mainfrom
YOMXXX:fix/clean-context-system-prompt-compat
Open

fix(runner): avoid duplicate system prompt on new OpenClaw#86
YOMXXX wants to merge 1 commit into
Tencent:mainfrom
YOMXXX:fix/clean-context-system-prompt-compat

Conversation

@YOMXXX
Copy link
Copy Markdown
Contributor

@YOMXXX YOMXXX commented May 24, 2026

Summary

  • avoid passing extraSystemPrompt on OpenClaw versions that support agents.defaults.systemPromptOverride
  • preserve the legacy extraSystemPrompt fallback for unknown or older OpenClaw versions
  • add unit coverage for the version gate
  • keep the npm tarball under Size Guard by publishing built runtime artifacts only

This is intended as a compatibility-preserving alternative to #84.

Verification

  • npm test
  • npm run build
  • npm pack --dry-run (package size: 340.4 kB, unpacked: 1.3 MB)

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.

1 participant