fix: MiniMax live validation misses Code Mode file reads (#163619)

* fix(test): guide MiniMax through Code Mode file reads

* fix(test): recognize mixed Code Mode tool surfaces
This commit is contained in:
Dallin Romney 2026-10-02 09:27:25 -07:00 • committed by GitHub
parent 708adde67d
commit fc23bc864e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6251,11 +6251,15 @@ async function runGatewayModelSuite(params: GatewayModelSuiteParams) {
modelKey,
message: strictReply
? "OpenClaw live tool probe (local, safe): " +
"Follow the advertised tool interface; if tools are behind Code Mode, invoke them through Code Mode. " +
"Follow the advertised tool interface. If the advertised `exec` tool accepts JavaScript, it is Code Mode: pass it JavaScript (not shell syntax) equivalent to " +
`const result = await read({ path: ${JSON.stringify(toolProbePath)} }); text(result.content); ` +
"Otherwise use the direct file-reading tool. " +
`read the local file ${JSON.stringify(toolProbePath)} using the available file-reading tool. ` +
"Then reply with exactly the two test marker values from that file, separated by one space. No extra text."
: "OpenClaw live tool probe (local, safe): " +
"Follow the advertised tool interface; if tools are behind Code Mode, invoke them through Code Mode. " +
"Follow the advertised tool interface. If the advertised `exec` tool accepts JavaScript, it is Code Mode: pass it JavaScript (not shell syntax) equivalent to " +
`const result = await read({ path: ${JSON.stringify(toolProbePath)} }); text(result.content); ` +
"Otherwise use the direct file-reading tool. " +
`read the local file ${JSON.stringify(toolProbePath)} using the available file-reading tool. ` +
"Then reply with the two test marker values you read (include both).",
thinkingLevel,