Skip to content

fix(web): voice settings follow the selected environment; provider saves stop reverting other devices' edits - #307

Merged
pandec merged 7 commits into
devfrom
fix/audit2-web-settings
Nov 25, 2026
Merged

pandec merged 7 commits into
devfrom
fix/audit2-web-settings

Conversation

@pandec

@pandec pandec commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Settings → Extras → Voice edited the primary environment while the Extras scope showed another one. The provider settings card kept a whole-envelope pending mirror that cleared only on an exact echo, so a stale save could revert a newer edit from another device. This PR fixes both and trims the fork's diff.

F2 — Voice follows the selected environment. Voice rows, TTS status, catalog and the Test dialog bind to the Extras scope's environment, like SP Labs. This also covers hosted clients with no primary. Profile fields are disabled without settings-write permission. The speech-key action still writes to every connected environment, as an explicit choice. A browser test fails on the base.

T22 — effect-state mirrors removed. The TTS test sample is now a subtree keyed by open, environment and profile. The sample text lives in the parent. Blob cleanup and autoplay are kept. AssistantMessageSpeech reads the live thread speech query only in the failure handler.

T13 (+ A5) — shared acknowledgement path. I restored upstream's customModelSaves.logic.ts and made it generic. The panel now keeps a list of unechoed envelope saves per instance (providerInstanceSaves.logic.ts) and applies upstream's echo rules to it. Saves retire when the stored envelope moves on. Secrets compare by presence. A key-only write retires on its reply. A reset's save expects an absent-instance echo. Cards render the latest unechoed envelope, and the card's mutators match upstream again. The icon map and usage source are kept. This also restores upstream's list-row markup and the canWritePreferences gating, which earlier merges had dropped. Fork diff on the touched files drops from 1,380 to about 700 changed lines. New logic and browser tests fail on the previous code.

T24 — one selector. ConnectionOnboarding.updatableBearerRoute is the single selector, used by both the update command and the web edit UI. Learned routes stay excluded.

Residual risks (not fixed).

  • Driver-config secret fields (for example an OpenCode password) are not masked in the echo key. A first-time secret save that overlaps another save can briefly show the older envelope.
  • A coalesced snapshot during an A→B→A restore can leave replied saves in the list. Upstream's custom-model logic has the same limit.

Done by Claude Opus 5.5 (Claude Code in T3 Code).

@pandec
pandec merged commit 7be2d11 into dev Nov 25, 2026
3 checks passed
@pandec
pandec deleted the fix/audit2-web-settings branch November 25, 2026 09:18
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