Repository navigation
The chat's model list opened before a first message starts the agent - #289
Merged
Merged
Conversation
Since #268 the chat's agent starts at the chat's first use, and the host answered the model list with nothing until then: the list held only "Default model" until a message was sent, so a model (and its provider) could not be chosen first. Opening the list (a press or a key on it) is now a use: the panel asks for the models with `start`, the host starts the agent ("Connecting…") and answers its models. An editor whose chat is never touched still starts nothing. Checked live in wfpy-ide (headless harness): "Not started" and "Default model", one press on the list, then "Connected · opencode" and its 33 models. Claude-Session: https://claude.ai/code/session_011UYzzShRuBLgefHUrAbqya
…n after a failed start What the review of #289 turned up: - Only a primary press, or a key that opens a list (Enter, Space, the arrows), starts the agent: Tab through the list, or a right click on it, no longer does. - After a start that failed ("Disconnected", no models), opening the list starts it again; not while the agent's CLI has the session. - "Not started" says the model list is one of the uses that start it. Claude-Session: https://claude.ai/code/session_011UYzzShRuBLgefHUrAbqya
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.
Since #268 the chat's agent starts at the chat's first use, and until then the host answered the panel's model list with nothing. The list held only "Default model" until a message was sent, so a model (and its provider) could not be chosen before the first message.
start: true(once), the host starts the agent, the panels read "Connecting…", and the list fills with the agent's models.chat.getProviderswithoutstartis answered as before: nothing is spawned for a panel's own request.Checked by unit tests (
chat-runtime-agent-on-demand,chat-panel-connected-agent), the typechecks, the neutrality gate and the build, and live in wfpy-ide (headless harness): "Not started" with "Default model", one press on the list, then "Connected · opencode" and its 33 models.Not changed here (as before #268): with no chat open the host sends no current model, so the list shows its first entry rather than the agent's default.
https://claude.ai/code/session_011UYzzShRuBLgefHUrAbqya