Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

Summary

  • Fix case-sensitivity mismatch causing "unknown metadata" in prune notifications and preventing fetch wrapper from replacing pruned tool outputs
  • Add Anthropic tool_use format support to tool parameter caching
  • Add debug logging to tool-cache and fetch wrapper for easier debugging

Changes

  1. lib/state/tool-cache.ts: Added Anthropic format handling (type: 'tool_use' blocks) alongside OpenAI format, with debug logging
  2. lib/pruning-tool.ts: Store metadata with lowercase keys to match notification lookup
  3. lib/fetch-wrapper/types.ts: Normalize pruned IDs to lowercase when building the set for matching

…hing

- Add Anthropic tool_use format support to cacheToolParametersFromMessages
- Normalize metadata keys to lowercase in pruning-tool.ts for notification lookup
- Normalize pruned IDs to lowercase in getAllPrunedIds for fetch wrapper matching
- Add debug logging to tool-cache and fetch wrapper for easier debugging
@Tarquinen Tarquinen closed this Dec 3, 2025
@Tarquinen Tarquinen deleted the fix/tool-cache-case-sensitivity branch December 3, 2025 08:20
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