Skip to content

[FR] Improve Ask SB's resilience to tool call input hallucinations #442

@komapa

Description

@komapa

Describe the bug

Error occurred
Invalid input for tool searchCode: Type validation failed: Value: {"queryRegexp":"Dockerfile|requirements\\.txt|pip install","fileNamesFilterRegexp":"[\"Dockerfile.*\", \"requirements.*\\.txt\", \".*\\.dockerfile\"]","limit":10}. Error message: [ { "code": "invalid_type", "expected": "array", "received": "string", "path": [ "fileNamesFilterRegexp" ], "message": "Expected array, received string" } ]

To reproduce

Just asked How do we install the ddtrace-run package? with claude-sonnet-4. Ran 3 steps and errored on the 4th.

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1): Using :latest docker container tag.

Additional information

No response

Metadata

Metadata

Labels

Featureask_sbIssue related to Ask Sourcebot. https://docs.sourcebot.dev/docs/features/ask/overview

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions