feat: Replace preview session process spawn with lightweight config query#1438
Open
charlesvien wants to merge 5 commits into04-01-model-selector-brokenfrom
Conversation
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 2, 2026
adboio
approved these changes
Apr 2, 2026
Contributor
adboio
left a comment
There was a problem hiding this comment.
zero context on the history of the preview session but this seems reasonable, good stuff 🫡
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Creating a new task required spawning a full preview session just to fetch model/mode config options, adding too much latency + complexity.
I don't get the value of these anymore, if someone else does please let me know if I am way off here. We added preview sessions at a time before the gateway had a models API endpoint and before a ton of infrastructure we now have.
The worst part is the preview sessions don't help prompt submit -> agent working time because they are only used to fetch model and mode config options. It's not used as the session for the actual task on prompt submission and tbh that's probably for the best.
Closes #1347
Closes #1363
Changes
How did you test this?
Manually