fix(tooling): surface non-executable tool-use warnings

This commit is contained in:
William Valentin
2026-02-17 16:34:54 -08:00
parent 061b96fd68
commit 5451f8a1de
6 changed files with 126 additions and 4 deletions
+11 -1
View File
@@ -213,8 +213,18 @@ export class OpenAIClient implements ModelClient {
}
}
const toolsRequested = Boolean(request.tools && request.tools.length > 0);
const content = toolsRequested
? [
'[provider-warning] OpenAI OAuth (Codex backend) does not support tool execution in Flynn yet.',
'Requested tools were not sent to the provider, so any textual tool_use output is not executable.',
'',
outputText,
].join('\n')
: outputText;
return {
content: outputText,
content,
stopReason: 'end_turn',
usage: usage ?? { inputTokens: 0, outputTokens: 0 },
};