Skip to content

Studio: keep custom spellings when another window saves voice settings - #16577

Merged
danielhanchen merged 5 commits into
unslothai:mainfrom
NilayYadav:voice-settings-other-windows
Nov 4, 2026
Merged

danielhanchen merged 5 commits into
unslothai:mainfrom
NilayYadav:voice-settings-other-windows

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

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

Before (main) After (this PR)
Tab A added a word, tab B then changed a voice setting: after a reload the dictionary is empty. Same steps: the word is kept.

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 adds Kestrelle. Tab B is reloaded and the saved dictionary is read back.

Browser Merge base 24d65c1 This PR 35fba03
Chromium ["Kestrelle"] ["Zephyrine", "Kestrelle"]
Firefox ["Kestrelle"] ["Zephyrine", "Kestrelle"]
WebKit ["Kestrelle"] ["Zephyrine", "Kestrelle"]

@NilayYadav NilayYadav self-assigned this Nov 3, 2026
@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T20:38:35.515699Z 35fba03 Manual 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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.

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();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

1 similar comment
@NilayYadav

Copy link
Copy Markdown
Collaborator Author

@codex review

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

Copy link
Copy Markdown

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.

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() });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 938a4c7935

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 35fba03742

ℹ️ 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".

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 3, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 3, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 3, 2026
@danielhanchen danielhanchen self-assigned this Nov 4, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Nov 4, 2026
@danielhanchen
danielhanchen merged commit f7eeafb into unslothai:main Nov 4, 2026
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.

2 participants