Skip to content

fix: 1.6.1 思考块、流式顺序、网站卡片与加粗网址 - #13

Merged
OpenX123 merged 12 commits into
mainfrom
fix/1.6.1
Nov 24, 2026
Merged

OpenX123 merged 12 commits into
mainfrom
fix/1.6.1

Conversation

@OpenX123

Copy link
Copy Markdown
Owner

背景

1.6.0 实机反馈(Codex 会话):思考块空白与星号、流式输出不是自上而下、网站卡片混乱、**网址** 不加粗。用户已在本地 dev 版确认效果。

Bugfix

触发场景 根因证据 修复 回归
Codex 思考块展开顶部空两行、标题显示 **…** codex-acp 每段推理摘要以 \n\n 开头,YCode 原样拼接并以 pre-wrap 纯文本渲染(本机 52 条含 ** 的推理里 42 条以换行开头);头部取最后一行原文 显示层去首尾空行、折叠多余空行、标题去 **;完成态头部「思考 · 标题 · 持续了 N 秒」;保留首行缩进;收起时不做正文格式化 reasoningLayout.test.ts
流式时前面代码块还在增长,后面完整段落已出现 运行中轮次全部在展开的历史里,1.4.1 的成果摘录行被追加到末尾(conversationTurnFlowItems.ts) 删除摘录行及「打开 / 查看原始上下文」 conversationTurnDeliverables.test.ts、v4ConversationTurnRenderUnits.test.ts
同一地址以正文、摘录、网站卡片三种形式出现 1.4.1 网站卡片整轮扫描 URL(含代码块与独立行),标题仅取路径末段 不再从正文生成网站卡片;删除单 URL text fence 下的链接行;图片/媒体/HTML 文件卡保留 assistantPreviewCards*、v4AssistantPreviewCards
**http://127.0.0.1:21500/docs**。 不加粗且 href 带 ** GFM autolink literal 在 ** 后跟非空白时把 ** 吞进 URL,@streamdown/cjk 在 。 切断,开头 ** 失配(真实 Streamdown 管线复现) CJK 插件之后加 remark 步骤,把 ** 移出链接并包成 strong messageMarkdownStrongAutolink.test.ts(含流式中间态)

未包含

  • 会话切换叠层:jsdom + 真实 virtualizer 的 9 个场景均无法复现(撤销 248ba5c 后也不变红,说明保真度不足),按规则未改产品代码,待真实 Electron E2E 复现。

行为变化

  • 中间步骤里的原生图片/音视频不再显示在「已工作」折叠外,需展开查看。

验证

  • pnpm typecheck 通过;pnpm lint 0 errors;architecture:check --changed 0 违规;改动的 10 个根 UT 文件 177 例通过。
  • 每个修复包经独立审查;桌面 E2E 断言已更新但未运行。

🤖 Generated with Claude Code

OpenX123 and others added 12 commits November 23, 2026 12:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gaps

codex-acp starts every reasoning summary part with a blank line and a
**Title** line. The plain-text body rendered those blank lines as a large
gap and the running header showed the raw asterisks. Display layer only:
headers now use the last bold title (running: 正在思考 · title; completed:
思考 · title · duration), and the body trims edge whitespace, collapses
3+ newlines and renders whole-line titles bold without asterisks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GFM autolink literal swallows a closing ** when a CJK punctuation follows,
leaving ** in the href and the opening ** unmatched. A remark step after the
cjk link splitter cuts the link at ** and restores the strong node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 1.4.1 "deliverable excerpt" projection copied history paragraphs,
single-URL text fences and typed media into extra "Open / View original
context" rows appended at the end of a running turn's open history, so
complete paragraphs/code blocks showed up below the still-streaming block.
Per user decision (Q41=A) remove the projection, its identity/key helpers
and the extra link line rendered under single-URL text fences. The pure
reference extraction stays for inline media.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Localhost, public, closed-Markdown, text-fence and bare-URL links no
longer produce website cards (Q41=A); they stay clickable inline. HTML
file, Markdown, Office, PDF and media cards are unchanged, and a
localhost URL no longer suppresses the HTML file card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update assistant-preview-cards spec, the conversation-experience design
note and the preview-cards desktop E2E spec to the 1.6.1 behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…llapsed

审查发现:trim() 会去掉思考首行缩进;正文未挂载时每个流式 chunk 仍做整段格式化。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OpenX123
OpenX123 merged commit 64a7066 into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant