File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
mpp-ui/src/commonMain/kotlin/cc/unitmesh/devins/ui/compose/agent Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import androidx.compose.runtime.*
88import androidx.compose.ui.Alignment
99import androidx.compose.ui.Modifier
1010import androidx.compose.ui.unit.dp
11+ import cc.unitmesh.agent.Platform
1112import cc.unitmesh.devins.ui.compose.editor.DevInEditorInput
1213import cc.unitmesh.devins.workspace.WorkspaceManager
1314import cc.unitmesh.llm.KoogLLMService
@@ -39,7 +40,8 @@ fun AgentChatInterface(
3940 val viewModel =
4041 remember(llmService, currentWorkspace?.rootPath) {
4142 val workspace = currentWorkspace
42- val rootPath = workspace?.rootPath ? : return @remember null
43+ val rootPath = workspace?.rootPath ? : Platform .getUserHomeDir()
44+
4345 if (llmService != null ) {
4446 CodingAgentViewModel (
4547 llmService = llmService,
You can’t perform that action at this time.
0 commit comments