From 674cca428ad460e7c21b4382b465c01f38e87cfc Mon Sep 17 00:00:00 2001 From: Linghong Date: Sat, 12 Sep 2026 10:52:48 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=E5=90=8C=E6=AD=A5AGC=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将客户端版本从 0.1.12 同步更新为 0.1.27 同步 package.json、Cargo.toml、Cargo.lock、tauri.conf.json 和 package-lock.json --- apps/ai-game-creator-shell/package.json | 2 +- apps/ai-game-creator-shell/src-tauri/Cargo.lock | 2 +- apps/ai-game-creator-shell/src-tauri/Cargo.toml | 2 +- apps/ai-game-creator-shell/src-tauri/tauri.conf.json | 2 +- package-lock.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/package.json b/apps/ai-game-creator-shell/package.json index e195301c3..da7eddb68 100644 --- a/apps/ai-game-creator-shell/package.json +++ b/apps/ai-game-creator-shell/package.json @@ -1,7 +1,7 @@ { "name": "@genarrative/ai-game-creator-shell", "private": true, - "version": "0.1.12", + "version": "0.1.27", "type": "module", "scripts": { "dev": "node scripts/start-tauri-dev.mjs", diff --git a/apps/ai-game-creator-shell/src-tauri/Cargo.lock b/apps/ai-game-creator-shell/src-tauri/Cargo.lock index f4ca27d53..5cb882909 100644 --- a/apps/ai-game-creator-shell/src-tauri/Cargo.lock +++ b/apps/ai-game-creator-shell/src-tauri/Cargo.lock @@ -1703,7 +1703,7 @@ dependencies = [ [[package]] name = "genarrative-ai-game-creator-shell" -version = "0.1.12" +version = "0.1.27" dependencies = [ "agent-runtime-core", "axum", diff --git a/apps/ai-game-creator-shell/src-tauri/Cargo.toml b/apps/ai-game-creator-shell/src-tauri/Cargo.toml index b1b08062c..de3106418 100644 --- a/apps/ai-game-creator-shell/src-tauri/Cargo.toml +++ b/apps/ai-game-creator-shell/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "genarrative-ai-game-creator-shell" -version = "0.1.12" +version = "0.1.27" edition = "2021" publish = false diff --git a/apps/ai-game-creator-shell/src-tauri/tauri.conf.json b/apps/ai-game-creator-shell/src-tauri/tauri.conf.json index 15e394d98..8cf521851 100644 --- a/apps/ai-game-creator-shell/src-tauri/tauri.conf.json +++ b/apps/ai-game-creator-shell/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Genarrative AI Game Creator", - "version": "0.1.12", + "version": "0.1.27", "identifier": "world.genarrative.ai-game-creator", "build": { "beforeDevCommand": "npm --prefix ../.. run agc:serve", diff --git a/package-lock.json b/package-lock.json index 3b119a3f6..3babb421c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -93,7 +93,7 @@ }, "apps/ai-game-creator-shell": { "name": "@genarrative/ai-game-creator-shell", - "version": "0.1.12", + "version": "0.1.27", "dependencies": { "@cubone/react-file-manager": "^1.35.0", "@genarrative/image-canvas-core": "0.1.0", -- 2.52.0 From d9f1376beb1593a73fd096175de7f01de1cda372 Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 07:34:12 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E7=AD=96=E5=88=92Agent?= =?UTF-8?q?=E6=B5=81=E5=BC=8F=E8=B0=83=E8=AF=95=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 记录流式事件时间、序号、增量与累计文本长度及结束原因 扩大异步调试队列容量,保持调试写入不阻塞正常运行 --- .../src-tauri/src/agent/design_runtime.rs | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs index a8bb580e9..959081636 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs @@ -473,7 +473,7 @@ fn design_debug(root: &Path, kind: &str, data: Value) { type Entry = (PathBuf, Value); static QUEUE: OnceLock> = OnceLock::new(); let sender = QUEUE.get_or_init(|| { - let (sender, receiver) = std::sync::mpsc::sync_channel::(16); + let (sender, receiver) = std::sync::mpsc::sync_channel::(256); let _ = std::thread::Builder::new() .name("design-debug".into()) .spawn(move || { @@ -546,8 +546,26 @@ async fn request_design_provider( None, )); let result = if llm.stream { + let mut stream_sequence = 0_u64; client .stream_run(request.clone(), |delta| { + stream_sequence = stream_sequence.saturating_add(1); + design_debug( + root, + "stream", + json!({ + "turnId": turn_id, + "requestIndex": session.turn.as_ref().map(|turn| turn.request_index), + "attempt": attempt, + "sequence": stream_sequence, + "occurredAtUnixNanos": unix_timestamp_nanos().to_string(), + "model": llm.model, + "deltaChars": delta.delta_text.chars().count(), + "accumulatedChars": delta.accumulated_text.chars().count(), + "deltaText": delta.delta_text, + "finishReason": delta.finish_reason, + }), + ); emit(design_event( root, &turn_id, -- 2.52.0 From 2589772d1a354d49b46f472a417f8100088911fe Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 08:48:44 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AD=96=E5=88=92Agent?= =?UTF-8?q?=E6=B5=81=E5=BC=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将上游累计回复通过本地缓冲逐步呈现 避免大块流式响应一次性刷新并保持正常会话链路不变 --- apps/ai-game-creator-shell/src/App.tsx | 58 ++++++++++++++++++++------ 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index cc58ed5c8..3fefcbd56 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -731,7 +731,10 @@ export function App({ null, ); planningV2SessionRef.current = planningV2Session; - const [planningV2TransientReply, setPlanningV2TransientReply] = useState(''); + const [planningV2TransientReply, setPlanningV2TransientReplyVisible] = + useState(''); + const planningV2TransientReplyTargetRef = useRef(''); + const planningV2VisibleReplyRef = useRef(''); const [planningV2Reasoning, setPlanningV2Reasoning] = useState(''); const planningV2TurnRef = useRef<{ projectPath: string; @@ -752,6 +755,37 @@ export function App({ >(), ); + function setPlanningV2TransientReplyTarget(next: string) { + planningV2TransientReplyTargetRef.current = next; + if (!next) { + planningV2VisibleReplyRef.current = ''; + setPlanningV2TransientReplyVisible(''); + } + } + + useEffect(() => { + const timer = window.setInterval(() => { + const target = planningV2TransientReplyTargetRef.current; + setPlanningV2TransientReplyVisible((current) => { + if (!target) { + planningV2VisibleReplyRef.current = ''; + return ''; + } + const prefix = target.startsWith(current) ? current : ''; + if (prefix === target) { + planningV2VisibleReplyRef.current = target; + return target; + } + const remaining = target.length - prefix.length; + const step = remaining > 160 ? 8 : remaining > 48 ? 4 : 2; + const next = target.slice(0, prefix.length + step); + planningV2VisibleReplyRef.current = next; + return next; + }); + }, 32); + return () => window.clearInterval(timer); + }, []); + function applyPlanningV2CommandResult( result: PlanningSessionCommandResultV2, clientTurnId?: string, @@ -920,7 +954,7 @@ export function App({ }; setChatAgentBusy(true); setProjectSupervisorRuntimeError(''); - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); try { const view = await invoke('continue_design_agent_session', { projectPath: nextProjectPath, @@ -943,7 +977,7 @@ export function App({ setPlanGddError(message); } finally { designAgentTurnRef.current = null; - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); setChatAgentBusy(false); } } @@ -1434,7 +1468,7 @@ export function App({ setProjectSupervisorResponseStream(null); setProjectSupervisorRuntimeError(''); setPlanningV2Session(null); - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); setPlanningV2Active(planningStartMode); planningV2ActiveRef.current = planningStartMode; designAgentLaneRef.current = planningStartMode; @@ -1821,7 +1855,7 @@ export function App({ return; } if (payload.status === 'started') { - setPlanningV2TransientReply( + setPlanningV2TransientReplyTarget( payload.accumulatedText || '正在生成策划方案…', ); setProjectSupervisorRuntimeError(''); @@ -1830,7 +1864,7 @@ export function App({ payload.status === 'delta' && (payload.accumulatedText || payload.deltaText) ) { - setPlanningV2TransientReply( + setPlanningV2TransientReplyTarget( payload.accumulatedText || payload.deltaText, ); setProjectSupervisorRuntimeError(''); @@ -1879,13 +1913,13 @@ export function App({ return; } if (payload.kind === 'text' && payload.text != null) { - setPlanningV2TransientReply(payload.text); + setPlanningV2TransientReplyTarget(payload.text); } if (payload.reasoningText != null) { setPlanningV2Reasoning(payload.reasoningText); } if (payload.kind === 'tool' && payload.text) { - setPlanningV2TransientReply(payload.text); + setPlanningV2TransientReplyTarget(payload.text); } if (payload.view) { applyDesignView(payload.view, payload.projectPath); @@ -5916,7 +5950,7 @@ export function App({ }; setChatAgentBusy(true); setProjectSupervisorRuntimeError(''); - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); try { const result = currentSessionId ? await invoke( @@ -5969,7 +6003,7 @@ export function App({ ]); } finally { planningV2TurnRef.current = null; - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); setChatAgentBusy(false); } } @@ -11639,7 +11673,7 @@ export function App({ projectPath: nextProjectPath, clientTurnId, }; - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); setChatAgentBusy(true); setPlanGddDecisionBusy(true); void invoke('decide_design_phase', { @@ -11680,7 +11714,7 @@ export function App({ return; } designAgentTurnRef.current = null; - setPlanningV2TransientReply(''); + setPlanningV2TransientReplyTarget(''); setChatAgentBusy(false); setPlanGddDecisionBusy(false); }); -- 2.52.0 From c976a0944f13f2c43747705a561f6792a25fcc4b Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 09:26:35 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AD=96=E5=88=92?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E5=8D=A1=E7=89=87=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将审批卡和问询卡移动到输入框上方 拆分阶段状态与待处理操作并保持原有交互逻辑 --- .../project-workspace/DesignAgentSurface.tsx | 88 ++++++++++++++----- .../ProjectSupervisorView.tsx | 17 +++- apps/ai-game-creator-shell/src/styles.css | 6 ++ 3 files changed, 86 insertions(+), 25 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx index 91483c865..077a53437 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx @@ -25,23 +25,20 @@ type DesignAgentSurfaceProps = { onRetry: () => void; }; -export function DesignAgentSurface({ +type DesignAgentControlsProps = Pick< + DesignAgentSurfaceProps, + 'view' | 'busy' | 'error' | 'onApprove' | 'onClarify' | 'onRetry' +>; + +export function DesignAgentPhaseStatus({ view, - busy, error, - onApprove, - onClarify, onRetry, -}: DesignAgentSurfaceProps) { - const [clarifyText, setClarifyText] = useState(''); + busy, +}: DesignAgentControlsProps) { const phase = view?.session.currentPhase ?? 'concept'; - const pending = view?.session.pendingApproval; - const clarification = view?.session.pendingClarification; - useLayoutEffect(() => { - setClarifyText(''); - }, [clarification?.requestId]); return ( -
+
当前阶段 @@ -54,6 +51,42 @@ export function DesignAgentSurface({ ) : null}
{error ?

{error}

: null} + {view?.canRetry ? ( + + ) : null} +
+ ); +} + +export function DesignAgentPendingActions({ + view, + busy, + onApprove, + onClarify, +}: DesignAgentControlsProps) { + const [clarifyText, setClarifyText] = useState(''); + const phase = view?.session.currentPhase ?? 'concept'; + const pending = view?.session.pendingApproval; + const clarification = view?.session.pendingClarification; + useLayoutEffect(() => { + setClarifyText(''); + }, [clarification?.requestId]); + if (!pending || phase === 'consultant') { + if (!clarification) return null; + } + return ( +
{pending && phase !== 'consultant' ? (

当前阶段产物已提交,是否批准进入下一阶段?

@@ -110,17 +143,26 @@ export function DesignAgentSurface({
) : null} - {view?.canRetry ? ( - - ) : null}
); } + +export function DesignAgentSurface({ + view, + busy, + error, + onApprove, + onClarify, + onRetry, +}: DesignAgentSurfaceProps) { + return ( + + ); +} diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx index 41bb6d564..a42ef3ab1 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx @@ -33,7 +33,10 @@ import { ConversationModelSelect, type ConversationModelSelectHandle, } from './ConversationModelSelect'; -import { DesignAgentSurface } from './DesignAgentSurface'; +import { + DesignAgentPendingActions, + DesignAgentPhaseStatus, +} from './DesignAgentSurface'; import { PlanGddSurface } from './GddApprovalCard'; import { pendingCommandDetail, @@ -178,7 +181,7 @@ export function ProjectSupervisorView({ >
{designView || onDesignApprove ? ( -
) : null} + {designView || onDesignApprove ? ( + undefined)} + onClarify={onDesignClarify ?? (() => undefined)} + onRetry={onDesignRetry ?? (() => undefined)} + /> + ) : null}
{ diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index 1e7d46c69..3496054f5 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -8521,6 +8521,12 @@ button.design-workspace-tree__entry:hover, padding: 0; } +.design-agent-pending-actions { + display: grid; + gap: 10px; + margin-top: 2px; +} + .design-agent-approval p, .design-agent-clarify p { margin: 0; -- 2.52.0 From 731e3c3f000fec8ee302fd35e0aed41a25bff5b9 Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 09:36:27 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=E5=BC=BA=E5=8C=96=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=8A=B6=E6=80=81=E7=A1=AE=E8=AE=A4=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 审批通过后要求 Agent 先调用 get_workflow_status 在状态确认前禁止开始阶段工作或断言阶段状态 --- .../src-tauri/src/agent/design_runtime.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs index 959081636..3cd44b4bd 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs @@ -229,15 +229,18 @@ fn prepare_design_decision( } if approved { let phase = approve_design_phase(session, request_id)?; - let suffix = if phase == "consultant" { - "" - } else { - "请开始该阶段工作。" - }; append_design_user( session, id, - format!("用户已批准上一阶段,现在进入 {phase} 阶段。{suffix}"), + if phase == "consultant" { + format!( + "用户已批准上一阶段,现在进入 {phase} 阶段。开始本轮工作前,先调用 get_workflow_status 确认 Runtime 当前阶段;在工具返回前,不要开始顾问工作或断言阶段状态。" + ) + } else { + format!( + "用户已批准上一阶段,现在进入 {phase} 阶段。开始本轮工作前,先调用 get_workflow_status 确认 Runtime 当前阶段;在工具返回前,不要开始新阶段工作、写入文件、提交审批或断言阶段状态。" + ) + }, ); begin_design_turn(session, id); } else { -- 2.52.0 From 114a016c570a0aad0ebc6aa8253bd0d3f5b81ae3 Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 09:58:23 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=E8=B0=83=E6=95=B4LLM=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E5=BC=BA=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将客户端未修改设置时的 reasoning effort 默认值从 max 调整为 high 同步前端配置草稿与 Rust 默认配置 --- apps/ai-game-creator-shell/src-tauri/src/main.rs | 2 +- .../src/features/runtime-config/RuntimeConfigDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/main.rs b/apps/ai-game-creator-shell/src-tauri/src/main.rs index 68d09633b..61d0fddcf 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/main.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/main.rs @@ -1499,7 +1499,7 @@ const GAME_CREATOR_APP_CONFIG_SCHEMA_VERSION: &str = "game-creator-config.v2"; const DEFAULT_GAME_CREATOR_LLM_BASE_URL: &str = "https://dev.genarrative.world/gpt/v1"; const DEFAULT_GAME_CREATOR_LLM_MODEL: &str = "gpt-6-astra"; const DEFAULT_GAME_CREATOR_LLM_API_KIND: &str = "openai_responses"; -const DEFAULT_GAME_CREATOR_LLM_REASONING_EFFORT: &str = "max"; +const DEFAULT_GAME_CREATOR_LLM_REASONING_EFFORT: &str = "high"; const DEFAULT_GAME_CREATOR_LLM_CONTEXT_WINDOW_TOKENS: u64 = 128_000; const DEFAULT_GAME_CREATOR_LLM_AUTO_COMPACT_TOKEN_LIMIT: u64 = 64_000; const DEFAULT_GAME_CREATOR_LLM_TOOL_OUTPUT_TOKEN_LIMIT: u64 = 12_000; diff --git a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx index 4a733b7d2..da0075a02 100644 --- a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx +++ b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx @@ -52,7 +52,7 @@ const defaultRuntimeConfigDraft: GameCreatorAppConfig = { baseUrl: '', model: '', apiKind: 'openai_responses', - reasoningEffort: 'max', + reasoningEffort: 'high', stream: true, webSearchEnabled: true, contextWindowTokens: 128000, -- 2.52.0 From c8dc57a4e3f4fa343719547bd8041703d9e015a0 Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 10:47:41 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E5=BC=BA=E5=BA=A6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同步运行时配置测试对 high 默认 reasoning effort 的断言 保留策划 Agent 伪流式显示的降速调整 --- apps/ai-game-creator-shell/src/App.tsx | 4 ++-- apps/ai-game-creator-shell/tests/appSurface/harness.ts | 2 +- .../tests/appSurface/runtime-settings.suite.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index af6de1ca1..cb243be0c 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -808,12 +808,12 @@ export function App({ return target; } const remaining = target.length - prefix.length; - const step = remaining > 160 ? 8 : remaining > 48 ? 4 : 2; + const step = remaining > 160 ? 4 : remaining > 48 ? 2 : 1; const next = target.slice(0, prefix.length + step); planningV2VisibleReplyRef.current = next; return next; }); - }, 32); + }, 50); return () => window.clearInterval(timer); }, []); diff --git a/apps/ai-game-creator-shell/tests/appSurface/harness.ts b/apps/ai-game-creator-shell/tests/appSurface/harness.ts index 0d0cf0a10..f2f689756 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/harness.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/harness.ts @@ -620,7 +620,7 @@ function createProjectSupervisorRuntimeHarness({ baseUrl: '', model: 'quality', apiKind: 'openai_responses', - reasoningEffort: 'max', + reasoningEffort: 'high', stream: true, webSearchEnabled: true, contextWindowTokens: 128000, diff --git a/apps/ai-game-creator-shell/tests/appSurface/runtime-settings.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/runtime-settings.suite.ts index b3c9142a3..0811cd81b 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/runtime-settings.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/runtime-settings.suite.ts @@ -1000,7 +1000,7 @@ export function registerPublishedRuntimeSettingsTests() { expect(screen.queryByLabelText('LLM API Key')).toBeNull(); expect(screen.queryByLabelText('LLM Base URL')).toBeNull(); expect(screen.queryByLabelText('LLM 模型')).toBeNull(); - expect(screen.getByLabelText('推理档')).toHaveProperty('value', 'max'); + expect(screen.getByLabelText('推理档')).toHaveProperty('value', 'high'); expect(screen.getByLabelText('联网检索')).toHaveProperty('checked', true); fireEvent.click(screen.getByRole('button', { name: /Agent 分工/ })); expect(screen.getByText('所有角色使用统一账号服务')).not.toBeNull(); @@ -1031,7 +1031,7 @@ export function registerPublishedRuntimeSettingsTests() { baseUrl: '', model: '', apiKind: 'openai_responses', - reasoningEffort: 'max', + reasoningEffort: 'high', stream: true, webSearchEnabled: true, contextWindowTokens: 128000, -- 2.52.0