Repository navigation
Replies: 3 comments
Implementation readyA working implementation of this feature is already prepared on my fork, ready for review:
What it does:
Verification: focused vitest run on the four owning specs (85 passed); I could not open a pull request because the repository currently has pull requests disabled. Happy to open one as soon as that is enabled, or point review at the fork branch directly. |
Update: fold is now the defaultFollow-up commit pushed to Verification: focused vitest run on the owning specs (updated for the new default), plus |
|
补充一个 #4863 实现需要覆盖的用例,供 问题不在"该不该折过程行",而在折叠上界只认"最后一段答复"。 本机 0.1.5-rc.2 的 // L6751-6755:折叠锚点只看本轮最后一个 step
function latestAnswer(turn) {
const data = turn.steps.at(-1)?.data.get("assistant-step");
if (!isFinalAssistant(data) || !hasAssistantReplyContent(data.blocks)) return null;
return data.blocks.some((block) => block.kind === "tool-call") ? null : data;
}
// L6781:折叠上界 = 那一段的起点
answerAnchorSeq: answer.finalNode.seq,
// L1556:于是它之前的一切都成了 processMember
const processMember = … && routedNode.anchorSeq < processSpec.answerAnchorSeq;结果:一轮中间的助手正文段落也被折进「过程」,不只有 thinking/tool 行。实测一轮 对
完整复现与定位已单独开贴:#6254 |
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Long tool-heavy turns leave the chat view crowded with intermediate process rows — consecutive Think/reasoning blocks and tool calls — even after the turn has settled. The reader has to scroll past all of that to reach the final answer.
Proposal
Fold each turn's pre-result activity into one collapsible group behind a
work · {duration}header, gated by a Settings toggle:All reactions