Skip to content

Chat composer does not refresh after first AI provider setup #29

@RayZhao1998

Description

@RayZhao1998

Bug report

Summary

After a fresh user configures their first AI provider, the main chat composer can continue to show Set up AI provider instead of refreshing to the newly available model selector.

Steps to reproduce

  1. Start OpenBridge with no configured AI providers.
  2. Open Settings > AI Providers.
  3. Configure the first provider, for example by signing in with OpenAI OAuth or saving an API token.
  4. Return to the main chat window.
Image

Expected behavior

The main chat composer should immediately reload provider/model state and show the configured provider's model selector without requiring an app restart or manually reopening the model menu.

Actual behavior

The main chat composer can remain in the empty provider state and still show Set up AI provider, even though the provider settings and credentials were saved successfully.

Notes

This appears to be stale UI state in ChatEditorViewModel.availableModelGroups: provider settings are persisted, but the already-open composer does not reliably reload model availability after provider configuration changes.

Draft PR #27 appears to address this area as part of a broader runtime settings hot-reload change. A narrow fix would be to broadcast AI provider store mutations and have the chat composer reload selected model/provider state when that notification is received.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions