Repository navigation
fix(mantis): pin harness pdf tool model to the catalog model - #127882
Merged
Merged
Conversation
The pdf tool auto-resolves its model from plugin manifest defaults (openai gpt-5.5), which the Mantis SUT catalog does not define, so every pdf round trip died with "Unknown model: openai/gpt-5.5" before native-vs-fallback dispatch (run 32572580656). Pin agents.defaults.pdfModel to the only harness model and account for the pdf tool's own provider request in the staged-media recipe wait/pins.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
obviyus
marked this pull request as ready for review
August 22, 2026 12:44
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 23, 2026
…w#127882) The pdf tool auto-resolves its model from plugin manifest defaults (openai gpt-5.5), which the Mantis SUT catalog does not define, so every pdf round trip died with "Unknown model: openai/gpt-5.5" before native-vs-fallback dispatch (run 32572580656). Pin agents.defaults.pdfModel to the only harness model and account for the pdf tool's own provider request in the staged-media recipe wait/pins.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Mantis run 32572580656 (proof attempt on #127770) got past scripting the Code Mode
exec(pdf)turn, but both lanes then died inside the pdf tool withUnknown model: openai/gpt-5.5before the native-vs-fallback provider dispatch the scenario exists to compare.Root cause:
createPdfToolauto-resolves its model through the media-understanding defaults, which walk plugin manifest defaults and pickopenai/gpt-5.5(extensions/openai/openclaw.plugin.json). The Mantis SUT catalog defines exactly one model,gpt-5.6-luna(scripts/e2e/telegram-mantis-sut.ts), so the resolved ref cannot be constructed and the tool fails.Why This Change Was Made
Explicit
agents.defaults.pdfModelshort-circuits the auto-resolution path entirely (src/agents/tools/pdf-tool.model-config.ts:200-207), so the harness config — the owner of "the SUT's only model is gpt-5.6-luna" — pins it there. Every media recipe benefits, not just the staged-PDF one.With the pdf tool actually running, its own provider call becomes a real mock request that consumes the staged-media script's second response (mock-openai repeats the exhausted script's last entry, so the follow-up turn still resolves). The recipe wait moves from
--until-provider-requests 3to4, the prose names the pdf tool's request as the point where the lanes diverge (input_filevs extracted text), and the workflow-test recipe pins follow.User Impact
Maintainer/CI tooling only — no product code. Mantis staged-media proofs on PDF-path PRs (first consumer: #127770, which flips openai
nativeDocumentInputsto["pdf"]) can now reach the provider dispatch under comparison instead of failing on model resolution.Evidence
Unknown model: openai/gpt-5.5inside the pdf tool bridge.node scripts/run-vitest.mjs test/scripts/mantis-telegram-desktop-proof-workflow.test.ts— pass.node scripts/check-changed.mjs -- <3 changed files>— pass (format, lint, guards).