René's URL Explorer Experiment


Title: antigravity-ls-proxy: reasoning_effort 'default'/'name' resolves to a non-enum model — MODEL_MAP metadata keys pass the family lookup · Issue #686 · developing-today/code · GitHub

Open Graph Title: antigravity-ls-proxy: reasoning_effort 'default'/'name' resolves to a non-enum model — MODEL_MAP metadata keys pass the family lookup · Issue #686 · developing-today/code

X Title: antigravity-ls-proxy: reasoning_effort 'default'/'name' resolves to a non-enum model — MODEL_MAP metadata keys pass the family lookup · Issue #686 · developing-today/code

Description: Bug bin/antigravity-ls-proxy.mjs — resolveModelEnum, step 3 (family-with-effort lookup, lines 138–140): let effort = (requestedEffort || family.default || 'medium').toLowerCase().trim(); if (!family[effort]) effort = family.default || Ob...

Open Graph Description: Bug bin/antigravity-ls-proxy.mjs — resolveModelEnum, step 3 (family-with-effort lookup, lines 138–140): let effort = (requestedEffort || family.default || 'medium').toLowerCase().trim(); if (!famil...

X Description: Bug bin/antigravity-ls-proxy.mjs — resolveModelEnum, step 3 (family-with-effort lookup, lines 138–140): let effort = (requestedEffort || family.default || 'medium').toLowerCase().trim(); if...

Opengraph URL: https://github.com/developing-today/code/issues/686

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"antigravity-ls-proxy: reasoning_effort 'default'/'name' resolves to a non-enum model — MODEL_MAP metadata keys pass the family lookup","articleBody":"## Bug\n\n`bin/antigravity-ls-proxy.mjs` — `resolveModelEnum`, step 3 (family-with-effort lookup, lines 138–140):\n\n```js\nlet effort = (requestedEffort || family.default || 'medium').toLowerCase().trim();\nif (!family[effort]) effort = family.default || Object.keys(family)[0];\nconst enumVal = family[effort];\n```\n\nThe guard only checks that `family[effort]` is *truthy*. A family entry in `MODEL_MAP` is not just effort → enum: it also carries the metadata keys `default` (an effort name, e.g. `'medium'`) and `name` (a display name, e.g. `'Gemini 3.8 Flash'`). A client that sends either of those strings as `reasoning_effort` / `effort` (both are read from the request body at the chat-completions handler) therefore \"resolves\" successfully — to a value that is not a model enum at all. That bogus value is then sent to the language server as `model:` in `GetModelResponse` and as `plannerConfig.requestedModel.model` in cascade mode, where it can only fail (or be misinterpreted) server-side, instead of falling back to the family's default effort the way a genuinely unknown effort does.\n\n## Evidence (verified this run)\n\nThe function and `MODEL_MAP` were extracted verbatim from current `main` and driven directly:\n\n| request | result `modelEnum` |\n|---|---|\n| `gemini-3.8-flash`, effort `\"default\"` | `\"medium\"` ❌ (an effort name, not an enum) |\n| `gemini-3.8-flash`, effort `\"name\"` | `\"Gemini 3.8 Flash\"` ❌ (the display name) |\n| `gemini-3.1-pro`, effort `\"default\"` | `\"high\"` ❌ |\n| `gemini-3.8-flash`, effort `\"high\"` | `\"MODEL_PLACEHOLDER_M318\"` ✅ |\n| `gemini-3.1-pro`, effort `\"medium\"` (not offered) | `\"MODEL_PLACEHOLDER_M37\"` ✅ correct default fallback |\n| `gemini-3.8-flash`, no effort | `\"MODEL_PLACEHOLDER_M319\"` ✅ |\n\nSo an unrecognized effort falls back correctly, but an effort that happens to collide with a `MODEL_MAP` metadata key slips through with a garbage \"enum\".\n\n## Why it matters\n\n- The proxy's own contract (step 5 of the same function) is \"refuse rather than quietly run a different model than the one asked for\" — this path does the opposite: it quietly runs with a non-model value.\n- `reasoning_effort` is client-controlled in the OpenAI-shaped API; values like `\"default\"` are plausible from generic clients/configs. The failure surfaces downstream as an opaque language-server error naming a model the user never asked for, far from the real cause.\n\n## Suggested fix\n\nIn step 3, accept an effort only when its mapped value is actually an enum (e.g. a string starting with `MODEL_`, matching every effort value in `MODEL_MAP`); otherwise fall back to `family.default` (and validate that fallback the same way). Equivalently, restrict the accepted effort names to the known effort keys (`low` / `medium` / `high` / `extra-low`) before indexing the family object.\n\n## Acceptance criteria\n\n- `resolveModelEnum('gemini-3.8-flash', 'default')` and `('gemini-3.8-flash', 'name')` return the family's default-effort enum (`MODEL_PLACEHOLDER_M319`), never `\"medium\"` / `\"Gemini 3.8 Flash\"`.\n- Existing correct behaviour is unchanged: valid efforts resolve to their enums, an unoffered effort (e.g. `medium` on `gemini-3.1-pro`) still falls back to the family default, and unknown models still throw the 400 \"Unknown model\" error.\n- A regression test covers the metadata-key efforts (`default`, `name`) — this proxy currently has no test file, so a black-box test in the style of `bin/muse-proxy.test.mjs` (spawn the proxy against a stub language server via `ANTIGRAVITY_LS_ADDRESS`/`ANTIGRAVITY_CSRF_TOKEN` and capture the `model` the proxy sends) or an equivalent unit test of the resolver is acceptable.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T20:15:58Z","url":"https://github.com/developing-today/code/issues/686"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c90896a6-1f7a-4c61-f261-9ea05b344715
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE19E:39588:52F197:6EC501:6B062176
html-safe-noncef24b1c46b6fe7544a5b695f428b5bb8bde451449d3f509e5d58a2104e27a1b81
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTlFOjM5NTg4OjUyRjE5Nzo2RUM1MDE6NkIwNjIxNzYiLCJ2aXNpdG9yX2lkIjoiMzk2ODAwMDYxMTYwMTIyODE1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0e19d01b9575f4abf5b7890cda2a7d3aae3b99787a4f2f7bb34258b6ed7aaaee
hovercard-subject-tagissue:6004793569
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/686/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7c4d275da32f23478c6b77b861b7aa8e9e1df9e30992a98327c8c0661d366bcc/developing-today/code/issues/686
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7c4d275da32f23478c6b77b861b7aa8e9e1df9e30992a98327c8c0661d366bcc/developing-today/code/issues/686
og:image:altBug bin/antigravity-ls-proxy.mjs — resolveModelEnum, step 3 (family-with-effort lookup, lines 138–140): let effort = (requestedEffort || family.default || 'medium').toLowerCase().trim(); if (!famil...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb25c3080e84402f75431d8dc7a96b2635219cec7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/686#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F686
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F686
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/686
Reloadhttps://github.com/developing-today/code/issues/686
Reloadhttps://github.com/developing-today/code/issues/686
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests144 (144)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/686
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/686
#687https://github.com/developing-today/code/pull/687
antigravity-ls-proxy: reasoning_effort 'default'/'name' resolves to a non-enum model — MODEL_MAP metadata keys pass the family lookuphttps://github.com/developing-today/code/issues/686#top
#687https://github.com/developing-today/code/pull/687
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/686#issue-6004793569
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/686#event-34088355914
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/686#event-34088698875
Merge pull request #687 from developing-today/creator/686-ls-proxy-ef…https://github.com/developing-today/code/commit/4f905d75b101e37057a8ddc96249a02123d28406
#687https://github.com/developing-today/code/pull/687
4f905d7https://github.com/developing-today/code/commit/4f905d75b101e37057a8ddc96249a02123d28406
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#687https://github.com/developing-today/code/pull/687
on Oct 23, 2026https://github.com/developing-today/code/issues/686#event-34088699082
https://github.com/apps/developing-today-fleet
developing-today-fleethttps://github.com/apps/developing-today-fleet
on Nov 24, 2026https://github.com/developing-today/code/issues/686#issuecomment-7124557744
developing.today fleethttps://kaneo.security.cab
PR #687 — fix(antigravity-ls-proxy): effort must map to a model enum, not MODEL_MAP metadata (#686)https://github.com/developing-today/code/pull/687
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/686
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/686
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.