清理运行视窗提交边界
恢复提交钩子误格式化的主分支文件 保持 PR 仅包含运行视窗相关变更
This commit is contained in:
@@ -11565,8 +11565,8 @@ export function App({
|
||||
);
|
||||
const projectSupervisorHasConversationControls = Boolean(
|
||||
projectSupervisorRuntime?.pendingToolAction ||
|
||||
projectSupervisorRuntime?.userInputRequest ||
|
||||
projectSupervisorNeedsUserInput,
|
||||
projectSupervisorRuntime?.userInputRequest ||
|
||||
projectSupervisorNeedsUserInput,
|
||||
);
|
||||
const visibleAgentConversationMessages = latestVisibleItems(
|
||||
agentConversationMessages,
|
||||
|
||||
@@ -897,8 +897,7 @@ export function registerClientHomeTests() {
|
||||
];
|
||||
const streamedReply = '流式正文已经完整结束。';
|
||||
let streamHandler:
|
||||
| ((event: { payload: Record<string, unknown> }) => void)
|
||||
| null = null;
|
||||
((event: { payload: Record<string, unknown> }) => void) | null = null;
|
||||
const invoke = vi.fn(
|
||||
async (command: string, args?: Record<string, unknown>) => {
|
||||
if (command === 'read_local_conversation') {
|
||||
@@ -1576,11 +1575,9 @@ export function registerHomeProjectCreationTests() {
|
||||
expect(persistedTurnCall).toBeGreaterThanOrEqual(0);
|
||||
expect(persistedTurnCall).toBeLessThan(directTurnCall);
|
||||
const persistedTurnArgs = invoke.mock.calls[persistedTurnCall]?.[1] as
|
||||
| Record<string, unknown>
|
||||
| undefined;
|
||||
Record<string, unknown> | undefined;
|
||||
const directTurnArgs = invoke.mock.calls[directTurnCall]?.[1] as
|
||||
| Record<string, unknown>
|
||||
| undefined;
|
||||
Record<string, unknown> | undefined;
|
||||
expect(persistedTurnArgs).toEqual({
|
||||
projectPath,
|
||||
agentId: null,
|
||||
|
||||
@@ -461,8 +461,8 @@ export function registerProjectConversationTests() {
|
||||
'未命名游戏原型',
|
||||
);
|
||||
let finishConversationRead:
|
||||
| ((value: { path: string; agentId: null; messages: [] }) => void)
|
||||
| null = null;
|
||||
((value: { path: string; agentId: null; messages: [] }) => void) | null =
|
||||
null;
|
||||
const invoke = vi.fn(
|
||||
async (command: string, args?: Record<string, unknown>) => {
|
||||
if (command === 'append_local_permission_log') {
|
||||
|
||||
Reference in New Issue
Block a user