Repository navigation
Studio: keep custom spellings when another window saves voice settings - #16577
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 739adc6ced
ℹ️ 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".
| if (typeof window !== "undefined") { | ||
| window.addEventListener("storage", (event) => { | ||
| if (event.key === useVoiceSettingsStore.persist.getOptions().name) { | ||
| void useVoiceSettingsStore.persist.rehydrate(); |
There was a problem hiding this comment.
Preserve dictionary drafts when rehydrating remote writes
If a background dictation finishes in tab B while tab A is replacing a dictionary entry, this rehydration can permanently delete another word. updateDictionaryEntry intentionally preserves raw input until blur, but the hydration merge at lines 396–400 removes empty entries and trims drafts. Starting from ["Alpha", "Beta"], clearing Alpha in A makes B hydrate ["Beta"]; B's subsequent addRecentDictation persists that normalized list, and this handler replaces A's still-focused, index-keyed first row with Beta. Typing the replacement then overwrites Beta instead. Preserve draft rows during synchronization, or keep editable drafts separate from persisted dictionary entries.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this one. It needs a write from the other window to land in the second or two a dictionary row is blank here, which is a narrow race, and the blank row is only a draft until blur anyway.
…provider [skip ci]
…another window [skip ci]
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 03043d923a
ℹ️ 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".
| if (typeof window !== "undefined") { | ||
| window.addEventListener("storage", (event) => { | ||
| if (event.key === EXTERNAL_PROVIDERS_KEY || event.key === null) { | ||
| useExternalProvidersStore.setState({ providers: loadExternalProviders() }); |
There was a problem hiding this comment.
Preserve active chat options during connection catalog sync
With a kimi-k2.6 chat in tab B and Search enabled, adding or editing an unrelated connection in tab A now replaces B's providers array. This retriggers the catalog-dependent effect in ChatPage, whose Kimi branches force Search off (chat-page.tsx:3110–3112) and Think on (chat-page.tsx:3121–3125), even though B's active connection is unchanged. The next prompt therefore runs with different tool/reasoning settings without any action in B. Preserve the live chat's choices during catalog updates, or only reapply selection defaults when the active connection's relevant configuration changes.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this here. That effect already reapplies the Kimi defaults on any connection catalog change in the same window (editing a connection, llama.cpp auto reload), so this isn't new behavior; if it needs to keep live pills it should be fixed in ChatPage on its own.
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
With Studio open in two windows or tabs, a word added to the dictation dictionary in one window was silently lost as soon as the other window saved any voice setting. The second window still held the voice settings it loaded at startup, so its next save (a toggle, a dictation, a dictionary edit) wrote that old dictionary and dictation history over the newer ones.
Voice settings now reload whenever another window saves them, the same way the browser preferences and keyboard shortcuts already do. Changes made in one window show up in the others right away, and nothing is overwritten.
Screenshots
Two-window check (merge base vs this PR)
Two tabs in one browser profile: tab B opens Settings > Voice > Custom spellings, tab A adds
Zephyrine, then tab B addsKestrelle. Tab B is reloaded and the saved dictionary is read back.24d65c135fba03["Kestrelle"]["Zephyrine", "Kestrelle"]["Kestrelle"]["Zephyrine", "Kestrelle"]["Kestrelle"]["Zephyrine", "Kestrelle"]