2 lines
2.9 KiB
JSON
2 lines
2.9 KiB
JSON
{"comments":[],"reviews":[{"id":"PRR_kwDOQb6kR87dt2Xz","author":{"login":"copilot-pull-request-reviewer"},"authorAssociation":"NONE","body":"## Pull request overview\n\nThis PR implements sanitization for tool arguments in session history to prevent crashes caused by malformed JSON in tool input fields. When invalid JSON is detected in tool use blocks, it is replaced with an empty object `{}` to prevent `InternalError.Algo.InvalidParameter` errors that would otherwise crash the entire session.\n\n**Changes:**\n- Added `sanitizeToolUseArgs` function to detect and repair malformed JSON in tool input arguments\n- Integrated sanitization into the `sanitizeToolUseResultPairing` pipeline to ensure it runs before tool result pairing repair\n- Preserved original malformed input in `_originalInput` metadata field for debugging\n\n\n\n\n\n---\n\n💡 <a href=\"/moltbot/moltbot/new/main/.github/instructions?filename=*.instructions.md\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener noreferrer\">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href=\"https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener noreferrer\">Learn how to get started</a>.","submittedAt":"2026-01-29T00:08:40Z","includesCreatedEdit":false,"reactionGroups":[],"state":"COMMENTED","commit":{"oid":"c4b2b359267ba4bf48c9851e5eeed86e037d2c4a"}}]}
|