refine config provider and full replacement flow

This commit is contained in:
Shantur Rathore
2025-11-19 14:43:47 +00:00
parent 7aa94e7a88
commit 7e95005d8c
11 changed files with 296 additions and 266 deletions

View File

@@ -43,7 +43,7 @@ const App: Component = () => {
const { isDark } = useTheme()
const {
preferences,
addRecentFolder,
recordWorkspaceLaunch,
toggleShowThinkingBlocks,
setDiffViewMode,
setToolOutputExpansion,
@@ -92,7 +92,7 @@ const App: Component = () => {
setIsSelectingFolder(true)
const selectedBinary = binaryPath || preferences().lastUsedBinary || "opencode"
try {
addRecentFolder(folderPath)
recordWorkspaceLaunch(folderPath, selectedBinary)
clearLaunchError()
const instanceId = await createInstance(folderPath, selectedBinary)
setHasInstances(true)