You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tools): replace ± with +/- in session_search docstring to avoid unicode parse errors - #50961
The session_search tool docstring contains 5 instances of the ± character (U+00B1). Several provider APIs (DeepSeek, OpenRouter) reject this character in tool descriptions, returning HTTP 400:
Failed to parse the request body as JSON: tools[9].function.description: invalid unicode code point
Every request fails as soon as session_search is among the enabled tools, provider-agnostic.
Fix: replace all ± with +/- in docstring comments.
Note: this branch is a whole-fork push (1,291 files changed, ~33.9k additions / ~129.8k deletions) rather than the focused ± -> +/- docstring change described. As-is it's unreviewable and would delete most of the repo. Please rebase onto current main and open a PR containing only the session_search docstring change for #50959.
The branch was contaminated because the fork main was behind upstream. Force-pushed a clean branch from upstream main -- the diff now shows only the 5 docstring changes described.
Thanks for the focused compatibility fix. Current main still has the three runtime-facing U+00B1 occurrences in the registered SESSION_SEARCH_SCHEMA at tools/session_search_tool.py:778, tools/session_search_tool.py:787, and tools/session_search_tool.py:789; the schema is registered at tools/session_search_tool.py:903. The PR diff replaces all five target occurrences with ASCII +/- and introduces no behavioral or schema-shape change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
area/sessionsSession lifecycle, resume, persistence, historycomp/toolsTool registry, model_tools, toolsetsP2Medium — degraded but workaround existssweeper:blast-massiveSweeper blast radius: massive — everyone, every turn (invariant surface)type/bugSomething isn't working
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The session_search tool docstring contains 5 instances of the ± character (U+00B1). Several provider APIs (DeepSeek, OpenRouter) reject this character in tool descriptions, returning HTTP 400:
Every request fails as soon as session_search is among the enabled tools, provider-agnostic.
Fix: replace all ± with +/- in docstring comments.
Closes #50959