Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Settings UI now reacts immediately when API keys or base URLs are saved.

Changes

  • Add useProvidersConfig hook that subscribes to backend onConfigChanged events
  • ProvidersSection/ModelsSection use hook instead of manual refresh after save
  • ChatInput subscribes to config changes for OpenAI key status (voice input)

Previously the UI would only update after manual refresh or component remount.
Now changes propagate instantly via the existing oRPC subscription mechanism.

Generated with mux

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike ibetitsmike force-pushed the fix-settings-update-delay branch from c17e85d to 8a42d15 Compare December 3, 2025 15:33
Use optimistic updates for immediate feedback when saving API keys, base URLs, and custom models.
Subscription still exists for external changes (CLI, other components).

Changes:
- Add useProvidersConfig hook with optimistic update support
- ProvidersSection updates UI immediately on save, persists in background
- ModelsSection uses optimistic updates to avoid stale state races
- ChatInput subscribes to config changes for OpenAI key status

_Generated with `mux`_
@ibetitsmike ibetitsmike force-pushed the fix-settings-update-delay branch from 8a42d15 to 8a52b4c Compare December 3, 2025 15:36
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 3, 2025
Merged via the queue into main with commit 883cb18 Dec 3, 2025
15 checks passed
@ibetitsmike ibetitsmike deleted the fix-settings-update-delay branch December 3, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant