Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Conversation

vovakulikov
Copy link
Contributor

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

  • Build and link pnpm cody web
  • Check that after you go to the cody web page, go somewhere else and going back you still can see cody models picker UI in the toolbar

@vovakulikov vovakulikov requested review from fkling and pkukielka July 28, 2025 13:32
@vovakulikov vovakulikov self-assigned this Jul 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants