Repository navigation
Conversation
- 状态条前导词加 numberOfLines/ellipsize,承载 description 时可收窄,避免长说明溢出挤掉计时 - description 折叠换行与连续空白,防止固定高度容器被撑破 - 子 Agent 步骤行保留 description 标记,命令图标仍按终端处理 - 英文判定改用汉字检测,弯引号等排版符号不再触发「正在」前缀 - 命令步骤展开后补显完整 description,截断文本有处可查
- StatusCaption 前导词也可收缩,长 lead+object 不再挤出计时 - 假名/谚文按中文语序,描述里的全角空格保留 - 补语言判定与空白压缩的回归用例
PR quality triageChanged areas: none CLI core policy: No CLI-core policy block detected. Missing-test policy: No missing-test policy block detected. Coverage baseline policy: No coverage-baseline policy block detected. CLI core files:
Coverage policy files:
Required check plan:
Test coverage signals:
Risk notes:
Hard merge gates come from the deterministic GitHub Actions contract lanes above. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upstream issue: #2034 — Closes #2034
手机端命令执行标签改为优先展示模型写入的
description(人类可读动作),与桌面端ToolCallBlock的既有规则一致;没有description时保持原样,回退到「运行 + 命令首行」。mobile/src/ui/chat/steps.ts:StepLabel新增description?: boolean;Bash/PowerShell分支优先读取input.description(trim 后压成单行),否则走原逻辑。mobile/src/ui/chat/StepGroup.tsx:折叠行用单行渲染描述;展开后的详情先显示完整description,再显示$ command与输出,长描述不会被截断后无处查看。mobile/src/ui/chat/captionModel.ts:状态条中,中文/日文/韩文描述显示为「正在<描述>」,拉丁字母描述原样显示,避免「正在调用 Run tests」这类病句。mobile/src/ui/chat/StatusCaption.tsx:前导词改为可收缩单行文本,长描述不会把「已运行 …」「已输出约 … tokens」挤出可视区。mobile/src/core/sessionActivityModel.ts+mobile/src/ui/activity/ActivitySheet.tsx:StepLine透传description标记,活动面板的子 Agent 步骤图标仍按 shell 步骤显示终端图标,不会退化成文件图标。describeStep/StepLabel)。Feature Quality Contract
mobile/src/ui/chat/steps.test.ts(有描述、PowerShell、空白描述回退、换行与制表符压成单行、全角空格保留)mobile/src/ui/chat/captionModel.test.ts(当前步骤取描述;中文/英文/日文/韩文/等批准五种文案)mobile/src/core/sessionActivityModel.test.ts(带描述的命令步骤保留description标记)cd mobile && bun --no-env-file test src/ui/chat/steps.test.ts src/ui/chat/captionModel.test.ts src/core/sessionActivityModel.test.ts→ 103 pass / 0 fail(293 expects)bun --no-env-file test src plugins→ 1438 pass / 3 skip / 11 fail;git stash基线同样 11 fail 且失败清单逐条一致,均为本机 Windows 环境既有问题(react-native-svgprocessColor、native network policy config plugin、LAN WebSocket、WAV upload、expo-notifications importance、ImagePreview/composer attachment),与本改动无关。CImobile-checks在 ubuntu 上通过。bun run typecheck✅、bun run lint✅、bun run export:h5 /tmp/h5-test✅description存在时改变标签文案与排版;无描述时行为与之前一致。StatusCaption的截断与ActivitySheet的图标选择由静态核对与数据层用例覆盖,未加渲染测试。Verification
bun run check:impact; if I claim PR-ready/full validation, I also ranbun run verify.Risk
allow-cli-core-change.allow-missing-tests.allow-coverage-baseline-change.