feat: 增强聊天 UI 与终端配置
- 重构消息列表、思考块与工具调用块样式 - ChatContext 支持 agent 分段与 markdown 渲染优化 - 后端增加 PI 命令配置与 Web 终端改进 - 新增 run-backend.sh 启动脚本,忽略 backend/dist 构建产物
This commit is contained in:
@@ -100,7 +100,7 @@ function extensionCategory(extension: ExtensionInfo): "local" | "npm" {
|
||||
}
|
||||
if (extension.source?.startsWith("npm:")) return "npm";
|
||||
const pathHint = `${extension.path || ""} ${extension.location || ""}`.replace(/\\/g, "/");
|
||||
if (pathHint.includes("/.sproutclaw/agent/npm/node_modules/")) return "npm";
|
||||
if (pathHint.includes("/agent/npm/node_modules/")) return "npm";
|
||||
return "local";
|
||||
}
|
||||
|
||||
@@ -1366,7 +1366,7 @@ export function SettingsPage() {
|
||||
</span>
|
||||
</label>
|
||||
<p className={styles.fieldHint}>
|
||||
开启后在对话中显示 AI 的思考过程和工具调用详情,默认关闭。
|
||||
开启后在对话中显示 AI 的思考过程和工具调用;思考内容默认折叠,点击可展开。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1464,7 +1464,7 @@ export function SettingsPage() {
|
||||
["数据目录", envInfo.dataDir],
|
||||
["项目根目录", envInfo.repoRoot],
|
||||
["工作目录", envInfo.cwd],
|
||||
["Pi 命令", envInfo.piCmd],
|
||||
["SproutClaw 命令", envInfo.sproutclawCmd || envInfo.piCmd],
|
||||
] as [string, string | undefined][]
|
||||
)
|
||||
.filter(([, v]) => v !== undefined && v !== "")
|
||||
|
||||
Reference in New Issue
Block a user