From fc0ce4ee5f1add290ae8952663e6d2d398987366 Mon Sep 17 00:00:00 2001 From: kdletters <61648117+kdletters@users.noreply.github.com> Date: Sun, 20 Sep 2026 10:58:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E8=B7=A8=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=90=AF=E5=8A=A8=E7=9A=84=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为五个项目打开与对话恢复测试提供插件项目绑定及空插件列表响应 保留原有业务状态断言和产品错误提示,修复完整界面门禁暴露的测试桩缺口 --- .../tests/appSurface/project-conversation.suite.ts | 8 ++++++++ .../tests/appSurface/project-development.suite.ts | 2 ++ 2 files changed, 10 insertions(+) diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts index eac40a8c4..2518af5bd 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts @@ -516,6 +516,8 @@ export function registerProjectConversationTests() { ); const invoke = vi.fn( async (command: string, args?: Record) => { + if (command === 'set_agc_plugin_project_path') return null; + if (command === 'list_agc_plugins') return []; if (command === 'append_local_permission_log') { return {}; } @@ -580,6 +582,8 @@ export function registerProjectConversationTests() { ); const invoke = vi.fn( async (command: string, args?: Record) => { + if (command === 'set_agc_plugin_project_path') return null; + if (command === 'list_agc_plugins') return []; if (command === 'append_local_permission_log') { return {}; } @@ -630,6 +634,8 @@ export function registerProjectConversationTests() { ); const invoke = vi.fn( async (command: string, args?: Record) => { + if (command === 'set_agc_plugin_project_path') return null; + if (command === 'list_agc_plugins') return []; if (command === 'append_local_permission_log') { return {}; } @@ -3110,6 +3116,8 @@ export function registerProjectConversationTests() { }); const invoke = vi.fn( async (command: string, args?: Record) => { + if (command === 'set_agc_plugin_project_path') return null; + if (command === 'list_agc_plugins') return []; const targetProjectPath = String(args?.projectPath ?? ''); if (command === 'append_local_permission_log') { return {}; diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts index af260f08a..f45acbbdb 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts @@ -10148,6 +10148,8 @@ export function registerProjectWorkbenchNavigationTests() { ); const invoke = vi.fn( async (command: string, args?: Record) => { + if (command === 'set_agc_plugin_project_path') return null; + if (command === 'list_agc_plugins') return []; if (command === 'append_local_permission_log') { return {}; }