From 500479b4aa2faef50c519f898cf6796320125897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 12:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=EF=BC=9A=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=20ThreadItem=20=E4=B8=8E=20TurnFailure=20=E7=9A=84=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=BB=91=E5=AE=9A=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ThreadItem 注记改为"原样投影、脱敏在前端" - TurnFailure 注记改为 TurnError::classify / TurnErrorClassified::ShouldContinue --- .../view/project-development/chat/generated/ThreadItem.ts | 2 +- .../view/project-development/chat/generated/TurnFailure.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/project-development/chat/generated/ThreadItem.ts b/apps/ai-game-creator-shell/src/view/project-development/chat/generated/ThreadItem.ts index cbb236f88..d4c442a36 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/chat/generated/ThreadItem.ts +++ b/apps/ai-game-creator-shell/src/view/project-development/chat/generated/ThreadItem.ts @@ -2,7 +2,7 @@ import type { ThreadFileChange } from './ThreadFileChange'; /** - * 聊天视图的输入条目:一条 Codex 原始条目的脱敏投影。 + * 聊天视图的输入条目:一条 Codex 原始条目的原样投影(脱敏与限长在事件进前端状态时统一做)。 * * `itemType` 就是 Codex 的原始类型,逐字透传;前端按它决定投影成消息、思考还是工具卡片。 * 未识别的类型走 [`ThreadItem::Other`],Rust 不替前端决定它是否可见。 diff --git a/apps/ai-game-creator-shell/src/view/project-development/chat/generated/TurnFailure.ts b/apps/ai-game-creator-shell/src/view/project-development/chat/generated/TurnFailure.ts index 4399bcce6..be016b8c9 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/chat/generated/TurnFailure.ts +++ b/apps/ai-game-creator-shell/src/view/project-development/chat/generated/TurnFailure.ts @@ -16,8 +16,9 @@ import type { Unclassified } from './Unclassified'; * 按变体拼文案;宿主原始事实(`detail` / `cause` / `diagnostic`)留在字段里,只用于分流与诊断、 * 不直接上屏。 * - * 唯一投影点是 [`crate::agent::TurnError::terminal_failure`]:控制流(返修要求)返回 - * `None`,所以控制流既不会出现在这里,前端也不需要为它写分支。 + * 唯一投影点是 [`crate::agent::TurnError::classify`]:控制流(返修要求)落进 + * [`crate::agent::TurnErrorClassified::ShouldContinue`],所以控制流既不会出现在这里,前端也 + * 不需要为它写分支。 */ export type TurnFailure = | ({ type: 'projectRootUnanchored' } & ProjectRootUnanchored)