移除伪思考过程块:拿不到真思考过程就不显示
Project CI / Repository checks (pull_request) Failing after 15s
Project CI / Backend tests (pull_request) Failing after 15s
Project CI / Frontend tests (pull_request) Failing after 2m21s
Project CI / Native shell tests (pull_request) Failing after 5m17s

This commit is contained in:
2026-09-15 19:43:41 +08:00
parent 24c8631869
commit 0d2010168e
2 changed files with 1 additions and 34 deletions
-18
View File
@@ -823,22 +823,6 @@ export function App({
const directCodexConversationTurnSequenceRef = useRef(0);
// 工具调用卡片:按 **id** 归并(实时增量 + 回读历史共用一份),同一 id 只渲染一次。
// 用 ref 做写入基准,避免同一批事件里多条增量互相覆盖。
// 直连回合的"思考过程"行:按回合累积过程/中间态文本(去重相邻重复、最多 40 行)。
const [directTurnSteps, setDirectTurnSteps] = useState<string[]>([]);
const directTurnStepsRef = useRef<string[]>([]);
function pushDirectTurnStep(text: string) {
const line = text.trim();
if (!line) {
return;
}
const current = directTurnStepsRef.current;
if (current[current.length - 1] === line) {
return;
}
const next = [...current, line].slice(-40);
directTurnStepsRef.current = next;
setDirectTurnSteps(next);
}
const [directToolCalls, setDirectToolCalls] = useState<
GameCreatorDirectToolCall[]
>([]);
@@ -1866,7 +1850,6 @@ export function App({
? payload.updatedAt
: Date.now();
const processDetail = directCodexProcessDetail(payload);
pushDirectTurnStep(processDetail);
if (payload.status === 'failed') {
activeDirectCodexTurnRef.current = null;
lastDirectCodexActivityRef.current = null;
@@ -12198,7 +12181,6 @@ export function App({
: projectSupervisorTransientReply
}
designReasoning={planningV2Reasoning}
processSteps={directTurnSteps}
visibleMessages={visibleMessages}
visibleProfessionalAgentCards={visibleProfessionalAgentCards}
showProfessionalCollaboration={
@@ -156,8 +156,7 @@ type ProjectSupervisorViewProps = RuntimePanelProps & {
showProfessionalCollaboration?: boolean;
transientReply: string;
designReasoning?: string;
/** 直连回合累积的过程/步骤行(真 reasoning 文本当前拿不到,见文档限制)。 */
processSteps?: string[];
visibleMessages: ChatMessage[];
visibleProfessionalAgentCards: AgentStatusCard[];
walletEntry?: ReactNode;
@@ -222,7 +221,6 @@ export function ProjectSupervisorView({
showProfessionalCollaboration = true,
transientReply,
designReasoning = '',
processSteps = [],
visibleMessages,
visibleProfessionalAgentCards,
walletEntry,
@@ -457,19 +455,6 @@ export function ProjectSupervisorView({
className="message-tool-call"
/>
) : null}
{directCodex && processSteps.length > 0 ? (
<details
className="design-agent-reasoning project-supervisor-thinking"
data-testid="agent-thinking"
>
<summary></summary>
<ol className="project-supervisor-thinking-steps">
{processSteps.map((step, index) => (
<li key={`${index}-${step}`}>{step}</li>
))}
</ol>
</details>
) : null}
{designReasoning ? (
<details className="design-agent-reasoning">
<summary></summary>