Skip to content

Conversation

@markijbema
Copy link
Contributor

Problem

When editing profile B while profile A is active, the handleSubmit function in SettingsView.tsx was sending upsertApiConfiguration to BOTH profiles:

  • Line 563: correctly saves to editingApiConfigName (profile B) ✅
  • Line 592: incorrectly saves to currentApiConfigName (profile A) ❌

This caused both profiles to receive identical configuration when saving, explaining the bug where "change B, then A gets the same changes".

Root Cause

The duplicate code block appears to be leftover from before PR #3732's profile isolation changes, likely kept during the merge in PR #3895 (Include changes from Roo Code v3.30.1-v3.32.0).

Fix

Remove the duplicate upsertApiConfiguration call that was incorrectly saving to currentApiConfigName instead of editingApiConfigName.

Related

@changeset-bot
Copy link

changeset-bot bot commented Nov 29, 2025

⚠️ No Changeset found

Latest commit: 02262d0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

…tate 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.
@markijbema markijbema force-pushed the mark/fix-profile-state-sharing-bug branch from 96c60c2 to 02262d0 Compare November 29, 2025 10:20
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.

2 participants