Title: agy-proxy: bridge drops tool schemas — the workhorse-primary agy leg cannot execute tools and masks it as success (Codex P1 on #2200, now on main) · Issue #2270 · developing-today/code · GitHub
Open Graph Title: agy-proxy: bridge drops tool schemas — the workhorse-primary agy leg cannot execute tools and masks it as success (Codex P1 on #2200, now on main) · Issue #2270 · developing-today/code
X Title: agy-proxy: bridge drops tool schemas — the workhorse-primary agy leg cannot execute tools and masks it as success (Codex P1 on #2200, now on main) · Issue #2270 · developing-today/code
Description: Defect The agy bridge drops tool schemas: bin/agy-proxy.mjs formats only body.messages, never forwards the caller's offered tool schemas, and emits only content with finish_reason: 'stop' — so OpenCode can never receive structured tool c...
Open Graph Description: Defect The agy bridge drops tool schemas: bin/agy-proxy.mjs formats only body.messages, never forwards the caller's offered tool schemas, and emits only content with finish_reason: 'stop' — so Open...
X Description: Defect The agy bridge drops tool schemas: bin/agy-proxy.mjs formats only body.messages, never forwards the caller's offered tool schemas, and emits only content with finish_reason: 'stop...
Opengraph URL: https://github.com/developing-today/code/issues/2270
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"agy-proxy: bridge drops tool schemas — the workhorse-primary agy leg cannot execute tools and masks it as success (Codex P1 on #2200, now on main)","articleBody":"## Defect\n\nThe agy bridge drops tool schemas: `bin/agy-proxy.mjs` formats only `body.messages`, never forwards the caller's offered tool schemas, and emits only content with `finish_reason: 'stop'` — so OpenCode can never receive structured tool calls through this leg, and because the responses look successful, no failover triggers. Tool-dependent workhorse jobs routed here silently cannot complete. Codex flagged this as a P1 on PR #2200 (the Gemini-burn PR, which added agy to the workhorse primary pool, sending roughly half of primary selections through this bridge). PR #2200 has since **merged (2026-10-29)**, so **this defect is on main today**.\n\n## The Codex finding (verbatim, PR #2200)\n\n> **Require tool-call support before adding agy to the primary pool**\n>\n> For workhorse tasks that need the caller's tools, this new leg routes roughly half of primary selections through a text-only bridge. `bin/agy-proxy.mjs` formats only `body.messages` (lines 865–867), never forwards the offered tool schemas, and emits only content with `finish_reason: 'stop'` (lines 1022–1028 and 1054–1060), so OpenCode cannot receive structured tool calls. These responses appear successful rather than triggering failover, leaving tool-dependent jobs unable to complete their work. Add tool-call translation to the bridge or keep this provider out of the primary pool until it supports it.\n\nFinding: https://github.com/developing-today/code/pull/2200#discussion_r4410496158 (filed against `.opencode/opencode.jsonc` line 6626, PR #2200)\n\n## Fix direction (as Codex prescribed)\n\nEither add tool-call translation to `bin/agy-proxy.mjs` (forward tool schemas; translate model tool calls into OpenAI `tool_calls` with a truthful `finish_reason`), or keep this provider out of the workhorse primary pool until it supports it. Note #865 (closed) fixed the same defect class for the sibling `antigravity-ls-proxy`; this issue is the `agy-proxy` bridge specifically.\n\n## Source\n\nCodex review-value audit 2026-10-29 (`research_notes/codex-review-value-20261029/findings.md` §2, best catch #5): classified REAL-CATCH; PR #2200 merged 2026-10-29 with the finding unacted, so the defect is on main. Verification: defect confirmed present on main 2026-10-29.\n\n\n## Acceptance criteria\n\n- [ ] The agy bridge forwards the caller's offered tool schemas and emits structured tool calls OpenCode can execute — or agy is removed from the workhorse primary pool until it does\n- [ ] A tool-dependent workhorse job routed through the agy leg completes with real tool calls (evidence linked), and a text-only response can no longer masquerade as success for a tool-requiring request\n- [ ] The masking is gone: when the bridge cannot honour tools, the response fails over instead of returning finish_reason 'stop' content\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T11:18:26Z","url":"https://github.com/developing-today/code/issues/2270"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4c80ab8-7f9d-699c-1d1c-d457a82d223e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB1A:3C042B:31CB31:414FD1:6B061740 |
| html-safe-nonce | 4cb7a07df567666e97e84fb68b2ae7d33a2299a07f27e1a48b4a254d20fc6df3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjFBOjNDMDQyQjozMUNCMzE6NDE0RkQxOjZCMDYxNzQwIiwidmlzaXRvcl9pZCI6IjM5NjgyMTAwMjU2MTY2NDM5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e66b8f46b470ed4cda9821c2661434124fd3d1c4f7758bd39a56b17abac36056 |
| hovercard-subject-tag | issue:6098504308 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2270/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b17a16acdf796a3e98e4aeba17bc2c10a5ccee1f8a8309583f4fc35b98e5608a/developing-today/code/issues/2270 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b17a16acdf796a3e98e4aeba17bc2c10a5ccee1f8a8309583f4fc35b98e5608a/developing-today/code/issues/2270 |
| og:image:alt | Defect The agy bridge drops tool schemas: bin/agy-proxy.mjs formats only body.messages, never forwards the caller's offered tool schemas, and emits only content with finish_reason: 'stop' — so Open... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width