Skip to content

Foreground server logo, chat stream trust, and hub edit/scroll polish - #280

Merged
steve02081504 merged 21 commits into
masterfrom
fix
Aug 6, 2026
Merged

Foreground server logo, chat stream trust, and hub edit/scroll polish#280
steve02081504 merged 21 commits into
masterfrom
fix

Conversation

@steve02081504

@steve02081504 steve02081504 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Foreground server on a real TTY (needs_output) runs the same icon_anime intro/dismiss/farewell session as fount log; path CLI renames run_server_with_updates to run_with_updates and adds a run_server entry for debug + keepalive.
  • Chat Hub stream preview elevates Markdown inline HTML only via strict isTrustedMarkdownAuthor (not blanket !isRemote); reasoning blocks render as Markdown <details> with CommonMark blank lines; add scrollToBottomIfPinned and same-channel hash-nav short-circuit.
  • Consolidate message edit templates into one edit_body, reject empty edits with i18n toast, and cover reasoning Markdown with a pure test.

Test plan

  • Real TTY: fount server shows icon intro, dismisses after start, farewell on shutdown / Ctrl+C mid-intro
  • Non-TTY / background: no logo session
  • Hub: trusted local stream shows reasoning <details>; untrusted/federated stream stays safe preview
  • Hub: while scrolled up, stream/append does not yank to bottom; pinned stays pinned
  • Same group+channel hash with eventId scrolls/highlights without full remount
  • Edit message: empty save shows toast; normal save works
  • fount test --no-parallel shells/chat:pure:reasoning_markdown

摘要

  • 前台服务器统一复用 icon_anime 会话,并拆分 run_serverrun_with_updates
  • Chat Hub 收紧 Markdown 与主动 HTML 的信任边界,支持可信 reasoning <details> 渲染、贴底滚动和重复导航抑制。
  • 消息编辑统一使用 edit_body,增加快捷键提示、空内容校验和国际化文案。
  • 将正常中断退出码改为 0,并更新虚拟控制台依赖。
  • 新增仓库描述自动化流程,支持按日期、节日和多语言描述更新仓库信息。

原因

统一前台服务器与 TTY 动画行为。
降低流式渲染、内联 HTML、事件属性和危险 URL 的风险。
减少消息编辑模板重复,改善编辑体验和可访问性。
自动维护仓库描述,减少人工操作。

架构与审美风险

  • StreamRenderer 的异步信任切换同时触发缓存清理和 DOM 重渲染,时序复杂。
  • reasoning 将原始 <details> 交给 Markdown 管线,输出依赖下游的 HTML 和空行处理。
  • run_server 集中调试参数、前台启动和 keepalive 入口,职责更清晰,但入口层更集中。
  • 编辑模板重组并移除旧接口,结构更干净,但调用方必须统一使用 editBodyHtml
  • 仓库描述自动化引入日期、节日匹配和外部依赖,配置与工作流耦合度上升。

Loading
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.

3 participants