移除策划页面多余的总控状态面板

Design Agent 激活时不再渲染旧总控运行状态面板。
在现有策划会话测试中补充总控状态面板不显示的断言。
This commit is contained in:
2026-09-18 11:22:00 +00:00
parent 90b707727c
commit 5a712910b7
2 changed files with 3 additions and 2 deletions
@@ -698,9 +698,9 @@ export function ProjectSupervisorView({
</div>
) : null}
</div>
{directCodex ? null : (
{!directCodex && !designAgentActive ? (
<ProjectSupervisorRuntimePanel {...runtimePanelProps} />
)}
) : null}
{pendingCommand ? (
<div className="pending-command">
<span>
@@ -116,6 +116,7 @@ export function registerDesignAgentSurfaceTests() {
);
await screen.findByLabelText('批准');
expect(screen.queryByLabelText('项目总控 Agent 状态')).toBeNull();
expect(
harness.invoke.mock.calls.some(
([command]) => command === 'hydrate_design_agent_session',