移除策划页面多余的总控状态面板
Design Agent 激活时不再渲染旧总控运行状态面板。 在现有策划会话测试中补充总控状态面板不显示的断言。
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user