实现AGC回车自动创建工作区
首页普通回车自动分配系统文档目录下的唯一工作区并启动项目总控 保留加号按钮手动选择目录和Shift回车换行语义 统一Windows Linux与macOS默认项目路径解析并移除产品态tmp默认值 补充自动工作区安全测试 首页交互回归与技术方案说明
This commit is contained in:
@@ -126,6 +126,27 @@ export function useDeveloperAgentPanel(launcherView: LauncherView) {
|
||||
agentChatRuntimeSyncConversationRef,
|
||||
} = state;
|
||||
|
||||
useEffect(() => {
|
||||
if (launcherView !== 'agent-chat' || agentChatProjectPath) {
|
||||
return;
|
||||
}
|
||||
const invoke = resolveTauriInvoke();
|
||||
if (!invoke) {
|
||||
return;
|
||||
}
|
||||
let active = true;
|
||||
void invoke<string>('get_default_local_game_project_path')
|
||||
.then((defaultPath) => {
|
||||
if (active && defaultPath.trim()) {
|
||||
setAgentChatProjectPath(defaultPath);
|
||||
}
|
||||
})
|
||||
.catch(() => undefined);
|
||||
return () => {
|
||||
active = false;
|
||||
};
|
||||
}, [agentChatProjectPath, launcherView, setAgentChatProjectPath]);
|
||||
|
||||
useEffect(() => {
|
||||
setAgentChatRunSubmitMode('steer');
|
||||
}, [
|
||||
|
||||
Reference in New Issue
Block a user