Skip to content

feat(code): enable mid-session model switching for cloud runs#1712

Open
VojtechBartos wants to merge 1 commit intomainfrom
posthog-code/investigate-model-switching-for-cloud-run
Open

feat(code): enable mid-session model switching for cloud runs#1712
VojtechBartos wants to merge 1 commit intomainfrom
posthog-code/investigate-model-switching-for-cloud-run

Conversation

@VojtechBartos
Copy link
Copy Markdown
Member

Problem

Model dropdown didn't work on cloud runs — cloud sessions never had a model config option populated, and the click handler was gated on a status cloud runs never reach.

Solution

Renderer-only fix. No backend or sandbox changes needed (they already accept set_config_option as a passthrough).

  • Fetch model/effort options from the existing preview-config trpc endpoint and merge them into cloud sessions' configOptions.
  • Relax the ModelSelector guard so cloud sessions can fire the switch.

Showcase

code-model-switch.mov

@VojtechBartos VojtechBartos requested a review from a team April 17, 2026 13:45
@VojtechBartos VojtechBartos self-assigned this Apr 17, 2026
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.

1 participant