Skip to content

[BUG] Context condensing model selection is not persisted (reverts to default model after restart) #10862

@SachinDandavati

Description

@SachinDandavati

Problem (one or two sentences)

The setting to assign a different model for context condensing fails to persist after being selected in the menu. Even after saving, the selection reverts to the default primary model, preventing the use of a secondary, cost-effective model for summarization.

Context (who is affected and when)

This affects users who want to use a powerful model (like Claude 4.5 Sonnet) for coding while offloading the summarization of chat history to a faster, cheaper model (like Gemini 1.5 Flash). The issue occurs during the configuration phase in the Context settings menu.

Reproduction steps

  1. Open Roo Code and click the gear icon to access Settings.
  2. Navigate to the Context pane.
  3. Locate the API Configuration for Context Condensing dropdown and select a non-default API profile.
  4. Verify that Automatically trigger intelligent context condensing is enabled.
  5. Close the settings panel or use the Developer: Reload Window command in VS Code.
  6. Re-open the settings and check if the selection remained.

Expected result

The specific API configuration selected for context condensing should stay saved and be used for all future summarization triggers in that profile

Actual result

The dropdown menu reverts to the default primary configuration, and the intended condensing model is never utilized

Variations tried (optional)

I have attempted to toggle the automatic trigger checkbox on and off before selecting the model, and I tried adjusting the Context Threshold percentage to force a state update, but the model selection still reverts. I also checked the ui_state.json file in VS Code's globalStorage, where the change appears not to be written or is being overwritten upon app initialization.

App Version

Version: 3.41.3 (23717fb)

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

[Settings] Failed to persist contextCondensingConfigId to globalState.
[Storage] Overwriting ui_state.json with default profile values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions