Skip to content

Validate OpenCode with the total completion cap it can enforce - #332

Merged
drewstone merged 1 commit into
mainfrom
feat/opencode-validation-total-cap
Dec 2, 2026
Merged

drewstone merged 1 commit into
mainfrom
feat/opencode-validation-total-cap

Conversation

@drewstone

Copy link
Copy Markdown
Member

Summary

  • The setup probe invented maxVisibleOutputTokens for every runner except Pi. OpenCode has one total per-call cap, so the bridge answers 501 not_configured and the wizard cannot save an OpenCode profile.
  • The probe now uses that total cap for OpenCode, the same way it already does for Pi. A visible or reasoning ceiling the selected profile already declares is still sent, and the bridge still refuses it.

Braid-Assignment: ba-a10a891efd559346

Test plan

  • first-run OpenCode model validation uses the supported total completion cap sends max_tokens 256 and no invented visible ceiling
  • OpenCode validation still sends a visible ceiling the profile declared keeps maxVisibleOutputTokens
  • The existing Pi validation test still passes
  • After release, a fresh wizard on the served bridge saves an OpenCode profile with no runner override and one turn completes

Run ID: run_6d994cc8cb96814679cfbc16dd989e40

The probe invented maxVisibleOutputTokens, which the bridge refuses because OpenCode has one total cap. A ceiling the profile already declares is still sent.

@tangletools tangletools left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved PR — 0e0b64ce

Blanket team auto-approval is intentional. This is not a code review.
No automated review runs on this PR. This approval rests on the rule above alone.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-12-02T16:03:10Z

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T16:07:03.883901Z 0e0b64c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0e0b64ce33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread test/production-composition.test.ts Resolved
@drewstone

Copy link
Copy Markdown
Member Author

Code gate at 0e0b64ce3310134ab3486d59570634f243e64c8b: format:check, lint, typecheck, boundaries, an import of every scripts/live-required/*.mjs, pnpm test and pnpm run test:property. Exit 0.

live-required-imports-OK
ℹ tests 275
ℹ pass 275
ℹ fail 0
ℹ tests 12
ℹ pass 12
ℹ fail 0
ℹ tests 34
ℹ pass 34
ℹ fail 0
ℹ tests 22
ℹ pass 22
ℹ fail 0
ℹ tests 2
ℹ pass 2
ℹ fail 0
ℹ tests 51
ℹ pass 51
ℹ fail 0
ℹ tests 1
beelink-gate receipt: sha=0e0b64ce3310134ab3486d59570634f243e64c8b install=install command=bash -c set\ -e\;\ pnpm\ run\ format:check\;\ pnpm\ run\ lint\;\ pnpm\ run\ typecheck\;\ pnpm\ run\ boundaries\;\ for\ f\ in\ scripts/live-required/\*.mjs\;\ do\ F=\"\$PWD/\$f\"\ node\ --input-type=module\ -e\ \"await\ import\(process.env.F\)\"\ \>/dev/null\;\ done\;\ echo\ live-required-imports-OK\;\ pnpm\ test\;\ pnpm\ run\ test:property exit=0 duration=292s waited=2s host=beelink1 timed_out=0 watchdog=0 load=1.54 preview=none class=normal cpu_s=414.4 node=v24.22.1 via pnpm rebuild=none cpu_pressure=0.01 cores=1 cgroup=/beelinkgate.slice/beelinkgate-normal.slice/beelink-gate-beelink1-e650947129382826

@drewstone
drewstone merged commit 1c76d8e into main Dec 2, 2026
1 check passed
@drewstone

Copy link
Copy Markdown
Member Author

Merged through gh-drew by fleet lane op-factory:bridge-history (run run_6d994cc8cb96814679cfbc16dd989e40) at head 0e0b64c. Gate receipts for this head: 1, the newest exit 0 at 2026-12-02T16:10:26Z. Gates running or queued for this head: 1.

@drewstone drewstone mentioned this pull request Dec 2, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants