summaryrefslogtreecommitdiffhomepage
path: root/src/core/chunks
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-19 15:31:57 +0900
committerAdam Malczewski <[email protected]>2026-06-19 15:31:57 +0900
commit9c90105b6cfede0f3327169718300c649bb0531a (patch)
treea0078981e835414ff81baa8f41a2d41dc5c8272d /src/core/chunks
parentbaa6f6c9d21de2f6ffc60e00f53c61d026155933 (diff)
downloaddispatch-web-9c90105b6cfede0f3327169718300c649bb0531a.tar.gz
dispatch-web-9c90105b6cfede0f3327169718300c649bb0531a.zip
fix: silence state_referenced_locally warning + sync draft model on catalog fetch
- Use DEFAULT_MODEL directly when creating the initial draft store instead of reading the $state activeModel in a non-reactive context (init-time read only captures the initial value — semantically identical since activeModel === DEFAULT_MODEL at that point, but silences the Svelte state_referenced_locally warning). - Sync the draft store's model when the model catalog fetch corrects activeModel (default not in catalog). Without this, chat.send would use the stale DEFAULT_MODEL while the UI showed the corrected model.
Diffstat (limited to 'src/core/chunks')
0 files changed, 0 insertions, 0 deletions