Commit 02262d0
committed
fix: remove duplicate message calls in handleSubmit causing profile state sharing
When editing profile B while profile A is active, the handleSubmit function
had a duplicate block that was:
1. Sending updateCondensingPrompt twice (line 560 and removed duplicate)
2. Sending upsertApiConfiguration to currentApiConfigName (active profile A)
instead of editingApiConfigName (profile B being edited)
3. Sending telemetrySetting twice (line 564 and removed duplicate)
The duplicate upsertApiConfiguration call caused both profiles to receive
identical configuration when saving, explaining the bug where 'change B,
then A gets the same changes'.
The duplicate code block appears to be leftover from before PR #3732's
profile isolation changes, likely kept during the merge in PR #3895.
Fixes the profile state sharing bug reported after PR #3895 merge.1 parent 0a1f30d commit 02262d0
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | 589 | | |
596 | 590 | | |
597 | 591 | | |
| |||
0 commit comments