补上“原生工具阶段”的 thought 读取逻辑:现在会优先读 response.Thought(reasoning_content/thought/reasoning),没有再回退解析 content 里的 thought JSON,然后写入思考 UI。

文件:AIIntelligenceCore.cs、SimpleAIClient.cs
This commit is contained in:
2026-01-02 14:50:35 +08:00
parent 57f4ecd494
commit 333a4890eb
5 changed files with 123 additions and 9256 deletions

View File

@@ -622,9 +622,13 @@ namespace WulaFallenEmpire.EventSystem.AI.UI
DrawReactTracePanel(traceRect, liveTraceEntry);
}
}
else if (thinkingY + 40f >= viewTop && thinkingY <= viewBottom)
else
{
DrawThinkingIndicator(new Rect(innerPadding, thinkingY, contentWidth, 35f));
float indicatorHeight = (_core != null && !string.IsNullOrWhiteSpace(_core.LatestThought)) ? 55f : 35f;
if (thinkingY + indicatorHeight >= viewTop && thinkingY <= viewBottom)
{
DrawThinkingIndicator(new Rect(innerPadding, thinkingY, contentWidth, indicatorHeight));
}
}
}
@@ -864,7 +868,16 @@ namespace WulaFallenEmpire.EventSystem.AI.UI
Text.Font = GameFont.Small;
Text.Anchor = TextAnchor.MiddleLeft;
Widgets.Label(rect, BuildThinkingStatus());
Rect statusRect = new Rect(rect.x, rect.y, rect.width, 22f);
Widgets.Label(statusRect, BuildThinkingStatus());
string thought = _core?.LatestThought;
if (!string.IsNullOrWhiteSpace(thought))
{
Text.Font = GameFont.Tiny;
Rect thoughtRect = new Rect(rect.x, statusRect.yMax + 2f, rect.width, 22f);
Widgets.Label(thoughtRect, $"??: {thought}");
}
GUI.color = originalColor;
Text.Anchor = originalAnchor;