feat(web): persist model, thinking and fast mode in new threads#1121
feat(web): persist model, thinking and fast mode in new threads#1121maria-rcks wants to merge 3 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can validate your CodeRabbit configuration file in your editor.If your editor has YAML language server, you can enable auto-completion and validation by adding |
|
Very needed QOL feature. It’s very annoying having to switch models every time you start a new thread. |
|
Updating fast mode in newer threads affects the mode in older threads see below: Edit: Looked a bit deeper, it seems older threads only stay isolated if they have an explicit per thread override in the draft store. If they do not, they inherit the shared sticky value pr1121-review-compressed-noaudio.mp4 |
|
@maskdotdev lmk if its fixed now |
awesome work! its fixed |
What Changed
model,thinking effort, andfast modein local browser stateWhy
When you changed these in one thread and opened another, they reset.
This keeps the last used Codex settings sticky across thread switching and app reloads, without changing
planmode or access mode.I and some people may prefer models in medium over high and only would want to use high in some threads
Closes #384
Supersedes #1004
Supersedes #1056
Checklist
151224.mp4
(sorry for the crappy demo, the macbook its on its way)
Note
Persist model, reasoning effort, and fast mode across new threads in the composer
useStickyComposerSettingshook that reads and writes composer settings (model, effort,codexFastMode) tolocalStorage, with schema validation and model slug normalization.useHandleNewThreadto initialize new draft threads with the persisted sticky settings, falling back to the provider default effort when no sticky value exists.ChatViewto write back to sticky settings whenever the user selects a Codex model, changes reasoning effort, or toggles fast mode.composerDraftStorewithhasEffortOverrideandhasCodexFastModeOverrideflags so drafts are retained even when the overridden values are defaults (e.g. effortnullor fast modefalse).setEffortorsetCodexFastModenow always creates/retains a draft entry due to the new override flags, where previously a null/false value would skip draft creation.Macroscope summarized ae19079.