Make balanced smart context option the default (#1186)

<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Set “balanced” as the default smart context mode. Users now get balanced
when Smart Files Context is enabled and no mode is set; “conservative”
must be explicitly selected.

- **Refactors**
- Default fallback to balanced in UI and engine (proSmartContextOption
undefined -> "balanced").
- ProModeSelector saves "conservative" explicitly; selector reads
undefined as balanced.
  - Updated schema and types to allow "balanced" | "conservative".
- Engine payload now includes smart_context_mode with "balanced" by
default; e2e tests and snapshots updated.

- **Migration**
- No action needed. Existing users without an explicit mode will use
balanced by default; selecting conservative persists.

<!-- End of auto-generated description by cubic. -->
This commit is contained in:
Will Chen
2025-09-04 11:06:46 -07:00
committed by GitHub
parent 2842c61f7c
commit 56d0e76790
20 changed files with 39 additions and 21 deletions

View File

@@ -98,7 +98,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -68,7 +68,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -56,7 +56,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": false
"enable_smart_files_context": false,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -114,7 +114,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": false
"enable_smart_files_context": false,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -413,7 +413,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": false
"enable_smart_files_context": false,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -408,7 +408,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -408,7 +408,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -414,7 +414,7 @@
],
"enable_lazy_edits": true,
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
"smart_context_mode": "conservative"
}
},
"headers": {

View File

@@ -413,7 +413,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -413,7 +413,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -19,6 +19,7 @@
"lastShownReleaseNotesVersion": "[scrubbed]",
"enableProLazyEditsMode": true,
"enableProSmartFilesContextMode": true,
"proSmartContextOption": "conservative",
"selectedTemplateId": "react",
"selectedChatMode": "build",
"enableAutoFixProblems": false,

View File

@@ -421,7 +421,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -429,7 +429,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {

View File

@@ -437,7 +437,8 @@
}
],
"enable_lazy_edits": true,
"enable_smart_files_context": true
"enable_smart_files_context": true,
"smart_context_mode": "balanced"
}
},
"headers": {