Skip to content

Normalize OpenClaw replayed tool call ids#357

Open
Hyperion-shuo wants to merge 1 commit into
InternLM:v1.0.0from
Hyperion-shuo:ss/openclaw-tool-call-id-canonical
Open

Normalize OpenClaw replayed tool call ids#357
Hyperion-shuo wants to merge 1 commit into
InternLM:v1.0.0from
Hyperion-shuo:ss/openclaw-tool-call-id-canonical

Conversation

@Hyperion-shuo

Copy link
Copy Markdown

Summary

Normalize OpenClaw-replayed tool call ids during get_messages() prefix matching.

Changes

  • Canonicalize OpenAI-style tool call ids where OpenClaw history replay drops the underscore, e.g. call_<hex> vs call<hex>.
  • Keep tool call ids in the canonical key instead of dropping them.
  • Add tests for the OpenClaw replay case and for preserving distinct tool call ids.

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