Summary
Fails to write to Neo4j memory using Telegram bot + Anthropic due to invalid string.
Steps to reproduce
-
Environment (OS, backend version, frontend commit hash):
- OS: Debian/Linux
- Setup: Telegram bot -> OpenLobster with Anthropic models via Tailscale
- Backend: (Go) v0.3.0 / 8ad7a97
-
Exact steps to reproduce the bug (minimal reproduction preferred):
- Send message via bot e.g. "Remember I like apples"
- Bot responds confirming it has remembered this
Expected behavior
In OpenLobster's Memory tab or by querying Neo4j local install, I would expect to see this memory.
Actual behavior
No memory is found, but an error is seen posting to Anthropic's API.
Logs & screenshots
channel telegram: message handler error: anthropic chat: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_<redacted>) {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.0.tool_result.tool_use_id: String should match pattern '^[a-zA-Z0-9_-]+$'"},"request_id":"req_<redacted>"}
Reproduction repository (if available)
Provide a link to a minimal reproduction repository or a gist with commands.
Additional context
Clean install, no plugins.
Neo4j is running correctly.
Summary
Fails to write to Neo4j memory using Telegram bot + Anthropic due to invalid string.
Steps to reproduce
Environment (OS, backend version, frontend commit hash):
Exact steps to reproduce the bug (minimal reproduction preferred):
Expected behavior
In OpenLobster's Memory tab or by querying Neo4j local install, I would expect to see this memory.
Actual behavior
No memory is found, but an error is seen posting to Anthropic's API.
Logs & screenshots
channel telegram: message handler error: anthropic chat: POST "https://api.anthropic.com/v1/messages": 400 Bad Request (Request-ID: req_<redacted>) {"type":"error","error":{"type":"invalid_request_error","message":"messages.3.content.0.tool_result.tool_use_id: String should match pattern '^[a-zA-Z0-9_-]+$'"},"request_id":"req_<redacted>"}Reproduction repository (if available)
Provide a link to a minimal reproduction repository or a gist with commands.
Additional context
Clean install, no plugins.
Neo4j is running correctly.