This repository was archived by the owner on Aug 1, 2025. It is now read-only.
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.
Fixes https://linear.app/sourcegraph/issue/SRCH-2033/model-dropdown-disappears-in-chat-under-certain-navigation-patterns
0.34.0 version includes a fix for not appearing cody model UI, This happens because in the Sourcegraph web app, we preserve the agent worker between SvelteKit routes, so when we visit the Cody Web page for the second time we skip client configuration updates and since local UI state doesn't contain any default state, we see no model picker.
This problem is specific to the Cody Web since other cody clients don't operate with code agents like we do in the web app, and they don't need to preserve agent at all, so updates event there go as usuall, in cody web we create agent on the first run and then preserve it and on the second run we call create new chat event (to show you an empty chat page) but since agent already subscribed on the chat events from the prev call we ingored them and didn't get client config information)
Including client config event in the chat tab isolation events is ok since client config is a universal event which is the same for each code chat session.
Test plan