Skip to content

Commit b4ff02a

Browse files
committed
feat(agent): inject PtyShellExecutor into agent factory #453
Add PtyShellExecutor as the shell executor dependency in PlatformCodingAgentFactory for improved shell command execution.
1 parent d0c61c5 commit b4ff02a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mpp-ui/src/jvmMain/kotlin/cc/unitmesh/devins/ui/compose/agent/PlatformCodingAgentFactory.jvm.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package cc.unitmesh.devins.ui.compose.agent
33
import cc.unitmesh.agent.CodingAgent
44
import cc.unitmesh.agent.config.McpToolConfigService
55
import cc.unitmesh.agent.render.CodingAgentRenderer
6+
import cc.unitmesh.agent.tool.shell.PtyShellExecutor
67
import cc.unitmesh.llm.KoogLLMService
78

89
/**
@@ -21,7 +22,8 @@ actual fun createPlatformCodingAgent(
2122
llmService = llmService,
2223
maxIterations = maxIterations,
2324
renderer = renderer,
24-
mcpToolConfigService = mcpToolConfigService
25+
mcpToolConfigService = mcpToolConfigService,
26+
shellExecutor = PtyShellExecutor()
2527
)
2628
}
2729

0 commit comments

Comments
 (0)