fix: store UI-selected model for first message model inheritance #1064
+153
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
chat.messagehookdelegate_taskwhenprevMessageis unavailableChanges
state.ts: AddSessionModelinterface and storage functions (setSessionModel,getSessionModel,clearSessionModel,updateSessionModel)index.ts: Store UI-selected model inchat.messagehook, cleanup insession.deletedeventtools.ts: Use stored session model as fallback for first message scenarioTest plan
Fixes #1024
Summary by cubic
Fixes model inheritance at session start so the UI-selected model is used on the first message, preventing Sisyphus from defaulting to the wrong model.
Written for commit 4f84007. Summary will update on new commits.