Repository navigation
fix(pi-coding-agent): accept optional reasoning and inputModalities model fields - #11
Merged
Merged
Conversation
…odel fields The pi renderer failed closed on `inputModalities`, so a real `usai` snapshot never rendered ~/.pi/agent/models.json and `pi --list-models` was empty. The upstream neutral catalog schema gained optional `reasoning` and `inputModalities` model fields. - pi: validate both fields; map inputModalities to pi `input` (text/image only, others dropped); validate reasoning but do not emit it - refresh the vendored neutral catalog schema (pi, opencode-go-provider) - add regression tests for pi, plus claude-code, codex and antigravity, whose loaders already tolerate the fields - docs: README mapping table, ADR 0002, TROUBLESHOOTING, root README Co-authored-by: OpenCode Agent <noreply@opencode.ai>
… requirement On Paseo 0.15.0 five of six plugins installed; agent-office was refused with "requires Paseo >=0.15.2". Upgrading the CLI to 0.15.4 and re-running the installer installed it. Add a TROUBLESHOOTING entry and update the status text. Co-authored-by: OpenCode Agent <noreply@opencode.ai>
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.
Summary
pi --list-modelswas empty in a sandbox using theusaiprovider. The pi renderer rejects any model field outside its allowlist, and the upstream neutral catalog gained two optional ones (reasoning,inputModalities) that the realusaisnapshot uses.Why
reasoningis not emitted:reasoning: truemakes pi send thinking parameters. The neutral flag only says the gateway supports reasoning, not that pi's request shape is accepted.Evidence
Before: real
usaisnapshot, in a sandboxNew tests against the old renderer: 4 fail (
capability fields: inputModalities maps…,capability fields fail closed…,a usai-shaped catalog…,renderer field allowlists match the vendored neutral schemas).After: same sandbox, recreated from this branch
The same 4 tests pass.
Verification transcript (
make lint validate test, exit 0):ruff check/ruff format --check/shellcheckvalidate-kits.py(Patternsa290d5d)All 6 acq-kits valid.node --testnode --testscripts/testsscripts/verifymake security(pip-audit, gitleaks) was not run locally:gitleaksis not installed in the sandbox. CI covers it.An adversarial sub-agent review found no blockers. Its non-blocking notes (modality list not checked against the schema, ADR placement, doc drift, renderer naming) are addressed in this PR.
Also in this PR:
personalplugin results (docs only)Second commit. On Paseo 0.15.0, five of six plugins installed and reported
running.agent-officewas refused by the daemon (requires Paseo >=0.15.2. Your daemon is 0.15.0) while the other five were unaffected. After upgrading the CLI to 0.15.4 and re-running~/paseo-plugins-install.sh, it installed. Updatedpersonal/README.md,personal/TROUBLESHOOTING.md(new "Agent Office needs a newer Paseo" entry) and the root README status row.personal/scripts/verify: 30 pass, 0 fail. The paseo kit pin fix is GSA-TTS/agentic-coding-patterns#592.Merge Danger
Door: two-way. Revert the single commit.
Rollback:
git revert <merge commit>, then recreate sandboxes (kit files are applied at sandbox creation only).Security impact: none. This relaxes a field allowlist for two validated, non-secret metadata fields. Malformed values still fail the render closed. No credentials, network, auth, or data handling changes.
Blast Radius: pi kit
Existing sandboxes keep the old renderer until recreated.
Known gap, not fixed here: the vendored catalog schema is now ahead of the Patterns release pinned in
scripts/validate-kits.pyand CI (a290d5d), which does not know the new fields. Bumping the pin currently fails because the newer validator rejects the flow-stylecommand: [...]in the codex and antigravityspec.yaml. That needs its own change.AI-assisted: written with an OpenCode agent (Claude). Needs human review before merge.