René's URL Explorer Experiment


Title: feat(mothership): let the worker choose models when the model picker is off by waleedlatif1 · Pull Request #8669 · simstudioai/sim · GitHub

Open Graph Title: feat(mothership): let the worker choose models when the model picker is off by waleedlatif1 · Pull Request #8669 · simstudioai/sim

X Title: feat(mothership): let the worker choose models when the model picker is off by waleedlatif1 · Pull Request #8669 · simstudioai/sim

Description: Summary When the Mothership model picker is off, as it is on hosted prod, chats no longer send a hidden model selection. The worker now routes every model role itself. Paired worker PR: simstudioai/mothership#601. With it, the worker runs the main agent on GPT-6 Astra and subagents on GPT-6 Sol by default. Merge waits on an end-to-end benchmark. A small paired sample showed correctness 66.7% → 75.0% with 0 losses, cost −21% and wall time −23.5%. Both PRs merge only if a larger run confirms that. Why resolveMothershipModelSettings attached {gpt-6-astra, fastMode:false} to every non-assistant chat when the picker was off. The worker treats any selection as the user's explicit pick and runs both the main agent and subagents on it, so the server's role models (COPILOT_SUBAGENT_MODEL, and on self-host COPILOT_MODEL) never applied. This is the same problem that led withEnterpriseByokKey to remove the hidden default for BYOK workspaces. Server-side model routing is a Mothership rule, so a selection should only travel when someone made one. Changes resolveMothershipModelSettings. With the picker off it returns modelSelection: undefined. The effort clamps are unchanged. The key is still present, so Object.assign(body, …) at admission clears any stale selection a client sends. normalizeModelSelection. The Opus 5 → 5.5 and no-Fast-for-Opus normalization moved into its own function, which the store and the picker-on path both use. Model selector. Shows the model controls when a selection exists, which happens only with the picker on. Unchanged Picker-on chats, including one that has never been changed and is shown as Astra. The Sim Chat block, which has its own visible model field. Assistant/Search chats. BYOK handling. Compatibility New Sim with old worker. The worker uses COPILOT_MODEL for the main agent and COPILOT_SUBAGENT_MODEL ?? COPILOT_MODEL for subagents, which is Astra/Astra today. Hosted behavior does not change. Old Sim with new worker. The hidden selection still arrives as an explicit Astra pick, so behavior is Astra/Astra as today. Both new. Astra main agent with Sol subagents. Tests post.test.ts: the picker-off case serializes the request that admission hands to the stream lifecycle (the body sent to the worker). It asserts the request has no modelSelection, even when the client sent a Sol selection, and that it carries the clamped effort. On staging all 6 effort cases fail with the hidden { model: 'gpt-6-astra', fastMode: false }. Gate bun run lint, type-check, check:audits, docs-manifest:check and the block-registry check all pass. bun run test: 34772 pass. Four unrelated files failed under machine load: remark-plain-text, html-parser, copilot-route-inventory (60s timeout) and sso-trust. They pass when rerun together with lib/mothership and stores/mothership-effort: 2697 tests pass.

Open Graph Description: Summary When the Mothership model picker is off, as it is on hosted prod, chats no longer send a hidden model selection. The worker now routes every model role itself. Paired worker PR: simstudioai...

X Description: Summary When the Mothership model picker is off, as it is on hosted prod, chats no longer send a hidden model selection. The worker now routes every model role itself. Paired worker PR: simstudioai...

Opengraph URL: https://github.com/simstudioai/sim/pull/8669

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:446b9c2d-d4f1-5611-1dad-1ecd87371842
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC152:EA1A8:A86D61:E75371:6AFB517E
html-safe-nonce24568c6bedf10b636ea02d52aeac91c0fd4cc9a6216589df6c62e1f3e1e74660
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTUyOkVBMUE4OkE4NkQ2MTpFNzUzNzE6NkFGQjUxN0UiLCJ2aXNpdG9yX2lkIjoiNjU3MDg1MzIwMjE3NjcyNTM3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb7a56b05475f1de727b4a29df044983d7056bc3ab336cff60fb80ae339d1fb18
hovercard-subject-tagpull_request:4754986006
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8669/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary When the Mothership model picker is off, as it is on hosted prod, chats no longer send a hidden model selection. The worker now routes every model role itself. Paired worker PR: simstudioai...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8669/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8669%2Ffiles
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%2Fsimstudioai%2Fsim%2Fpull%2F8669%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8669/files
Reloadhttps://github.com/simstudioai/sim/pull/8669/files
Reloadhttps://github.com/simstudioai/sim/pull/8669/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/mothership-omit-hidden-model-defaulthttps://github.com/simstudioai/sim/tree/feat/mothership-omit-hidden-model-default
Conversation 16 https://github.com/simstudioai/sim/pull/8669
Commits 3 https://github.com/simstudioai/sim/pull/8669/commits
Checks 31 https://github.com/simstudioai/sim/pull/8669/checks
Files changed https://github.com/simstudioai/sim/pull/8669/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8669/files
feat(mothership): let the worker choose models when the model picker is off https://github.com/simstudioai/sim/pull/8669/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/8669/files
306a8d0 feat(mothership): let the worker choose models when the model picker … waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8669/commits/306a8d07a13d51d51859be52199972d895e1b33b
ef7384d test(mothership): assert the omitted selection on the serialized work… waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8669/commits/ef7384da7dde018848b9876e3ff9495ef386710c
b269cca test(mothership): read the serialized request without a JSON round trip waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8669/commits/b269ccac600800df6acbb469b15b41af54240752
Clear filters https://github.com/simstudioai/sim/pull/8669/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8669/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8669/files
model-selector.tsx https://github.com/simstudioai/sim/pull/8669/files#diff-5a757ddbae59660a55408f377bbb677b658adbbcff43675423dd03f39d5ffdd4
post.test.ts https://github.com/simstudioai/sim/pull/8669/files#diff-6d0b4ca3c83105bc58cee0c55acba06bb1f231570a250386296939e365c11531
model-options.ts https://github.com/simstudioai/sim/pull/8669/files#diff-00c70b2091b3db84bc21a27d838206b611cc5300acaa100197bb0633ec35bdd3
store.ts https://github.com/simstudioai/sim/pull/8669/files#diff-08089d9f00e9355828629c2237ef32b4a0f6def9914fde7ac99d982bcdd387c6
.../sim/app/workspace/[workspaceId]/home/components/user-input/components/model-selector.tsxhttps://github.com/simstudioai/sim/pull/8669/files#diff-5a757ddbae59660a55408f377bbb677b658adbbcff43675423dd03f39d5ffdd4
View file https://github.com/simstudioai/sim/blob/b269ccac600800df6acbb469b15b41af54240752/apps/sim/app/workspace/%5BworkspaceId%5D/home/components/user-input/components/model-selector.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8669/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8669/files#diff-5a757ddbae59660a55408f377bbb677b658adbbcff43675423dd03f39d5ffdd4
https://github.com/simstudioai/sim/pull/8669/files#diff-5a757ddbae59660a55408f377bbb677b658adbbcff43675423dd03f39d5ffdd4
https://github.com/simstudioai/sim/pull/8669/files#diff-5a757ddbae59660a55408f377bbb677b658adbbcff43675423dd03f39d5ffdd4
https://github.com/simstudioai/sim/pull/8669/files#diff-5a757ddbae59660a55408f377bbb677b658adbbcff43675423dd03f39d5ffdd4
apps/sim/lib/mothership/chat/post.test.tshttps://github.com/simstudioai/sim/pull/8669/files#diff-6d0b4ca3c83105bc58cee0c55acba06bb1f231570a250386296939e365c11531
View file https://github.com/simstudioai/sim/blob/b269ccac600800df6acbb469b15b41af54240752/apps/sim/lib/mothership/chat/post.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8669/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8669/files#diff-6d0b4ca3c83105bc58cee0c55acba06bb1f231570a250386296939e365c11531
https://github.com/simstudioai/sim/pull/8669/files#diff-6d0b4ca3c83105bc58cee0c55acba06bb1f231570a250386296939e365c11531
https://github.com/simstudioai/sim/pull/8669/files#diff-6d0b4ca3c83105bc58cee0c55acba06bb1f231570a250386296939e365c11531
apps/sim/lib/mothership/model-options.tshttps://github.com/simstudioai/sim/pull/8669/files#diff-00c70b2091b3db84bc21a27d838206b611cc5300acaa100197bb0633ec35bdd3
View file https://github.com/simstudioai/sim/blob/b269ccac600800df6acbb469b15b41af54240752/apps/sim/lib/mothership/model-options.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8669/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8669/files#diff-00c70b2091b3db84bc21a27d838206b611cc5300acaa100197bb0633ec35bdd3
apps/sim/stores/mothership-effort/store.tshttps://github.com/simstudioai/sim/pull/8669/files#diff-08089d9f00e9355828629c2237ef32b4a0f6def9914fde7ac99d982bcdd387c6
View file https://github.com/simstudioai/sim/blob/b269ccac600800df6acbb469b15b41af54240752/apps/sim/stores/mothership-effort/store.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8669/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8669/files#diff-08089d9f00e9355828629c2237ef32b4a0f6def9914fde7ac99d982bcdd387c6
https://github.com/simstudioai/sim/pull/8669/files#diff-08089d9f00e9355828629c2237ef32b4a0f6def9914fde7ac99d982bcdd387c6
https://github.com/simstudioai/sim/pull/8669/files#diff-08089d9f00e9355828629c2237ef32b4a0f6def9914fde7ac99d982bcdd387c6
https://github.com/simstudioai/sim/pull/8669/files#diff-08089d9f00e9355828629c2237ef32b4a0f6def9914fde7ac99d982bcdd387c6
Please reload this pagehttps://github.com/simstudioai/sim/pull/8669/files
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

Viewport: width=device-width


URLs of crawlers that visited me.