feat: Replace preview session process spawn with lightweight config query#1438
Merged
charlesvien merged 8 commits intomainfrom Apr 2, 2026
Conversation
Member
Author
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 🫡
5f29f86 to
ff2787d
Compare
12024f5 to
e2a1a17
Compare
Contributor
Merge activity
|
charlesvien
added a commit
that referenced
this pull request
Apr 2, 2026
## Problem Removing the preview session in #1438 broke slash command suggestions in the new task view -- only the 3 built-in feedback commands appear when typing /. ## Changes 1. Fetch skills from skills.list on TaskInputEditor mount and store in draftStore.commands 2. Fall back to draftStore.commands in getCommandSuggestions when no active session exists 3. Clean up stored commands on unmount ## How did you test this? Manually
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