feat(core): 移除内置 Agent 的 maxSteps 限制,默认使用 Build 模式
- 移除 build/plan/general/explore 的 maxSteps 配置 - 内置 Agent 不再限制步数(与 OpenCode 保持一致) - 用户自定义 Agent 仍可按需配置 maxSteps - 新建 Agent 默认使用 Build 模式
This commit is contained in:
@@ -274,6 +274,11 @@ export async function getOrCreateAgent(sessionId: string): Promise<AgentInstance
|
||||
const agent = new coreModule.Agent(config);
|
||||
agent.setRegistry(coreModule.toolRegistry);
|
||||
|
||||
// 默认使用 Build 模式
|
||||
if (agent.setAgentMode) {
|
||||
agent.setAgentMode('build');
|
||||
}
|
||||
|
||||
// 设置权限回调,通过 WebSocket 请求用户确认
|
||||
const permissionManager = coreModule.getPermissionManager();
|
||||
permissionManager.setAskCallback(createServerPermissionCallback(sessionId));
|
||||
|
||||
Reference in New Issue
Block a user