Elffuss BraidHub

kikocis/continue public

more informative log for retrieval tool call parsing failures
Changeset1b64a25f96831e441cf333af0f08d68fd85df8f1803d2be3f844fd56197d8af8
AuthorNate <sestinj@gmail.com> · 2025-07-05 09:56 -07:00
CommitterNate <sestinj@gmail.com> · 2025-07-05 09:56 -07:00
Parents070dc2895891

Browse the files at this changeset

1 file changed

modified core/context/retrieval/pipelines/BaseRetrievalPipeline.ts +4 −2
@@ -225,9 +225,11 @@
225225 .join("");
226226 const parsed = JSON.parse(responseContent);
227227 toolCalls = parsed.tools || [];
228- console.log("retrieveWithTools", toolCalls);
229228 } catch (e) {
230- console.log("Failed to parse tool selection response", e);
229+ console.log(
230+ `Failed to parse tool selection response: ${toolSelectionResponse.content}\n\n`,
231+ e,
232+ );
231233 return [];
232234 }
233235