修复策划模式输入提示显示
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled

策划模式保留输入框但隐藏占位文案

补充策划模式输入框显示回归测试
This commit is contained in:
2026-09-15 18:12:10 +00:00
parent e72a2da733
commit c229a353be
2 changed files with 18 additions and 1 deletions
@@ -491,7 +491,9 @@ export function ProjectSupervisorView({
placeholder={
directCodex
? '告诉陶泥儿接下来要做什么,或输入 @ 选择资源'
: '告诉项目总控接下来要做什么,或输入 @ 选择资源'
: planningSurfaceActive
? ''
: '告诉项目总控接下来要做什么,或输入 @ 选择资源'
}
onChange={onChatInputChange}
/>
@@ -577,6 +577,21 @@ export function registerPlanGddApprovalTests() {
expect(screen.queryByText(/计划 \d+\/\d+/)).toBeNull();
});
it('keeps the chat composer but hides its placeholder in the planning lane', async () => {
const harness = createProjectSupervisorRuntimeHarness({
planningV2Result: planningV2WorkingResult(),
});
await mountPlanningSurface(harness);
expect(screen.getByRole('textbox', { name: '项目需求' })).not.toBeNull();
expect(
screen.queryByText('告诉策划 Agent 接下来要做什么,或输入 @ 选择资源'),
).toBeNull();
expect(
screen.queryByText('告诉项目总控接下来要做什么,或输入 @ 选择资源'),
).toBeNull();
});
it('still surfaces the clarification card on the planning lane', async () => {
// 澄清卡是 V2 策划链路唯一需要用户动手的交互面之一。
const harness = createProjectSupervisorRuntimeHarness({