Repository navigation
fix(python tui): 订阅 llm.* 通配符并渲染模型思考过程 - #172
Merged
Merged
Conversation
TUI 的 event.subscribe 逐个枚举 llm.model_selected/llm.token/llm.usage, 独缺 llm.thinking,导致模型思考过程在 TUI 完全不可见:daemon 侧 (core/llm/provider.py 已在 thinking_delta 分支)正常发布 llm.thinking, 客户端从未订阅,也没有对应渲染代码。桌面端已用 "llm.*" 通配符覆盖。 - 订阅 topic 改为 "llm.*" 通配符,与桌面端对齐,避免将来再逐个枚举时遗漏 - 新增 ThinkingBlock 累积思考内容,标签随完成状态在「当前判断」/「过程说明」间切换; 节流刷新间隔与 LLMStreamBlock 对齐,避免高频思考分片触发整块重渲染 - _handle_event_inner 增加 llm.thinking 分支,thinking 为空时直接忽略 - _break_llm 同步定稿思考块,_trim_log 将其纳入保护集合,避免长会话裁剪掉内容
2 tasks done
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.
TUI 的 event.subscribe 逐个枚举 llm.model_selected/llm.token/llm.usage, 独缺 llm.thinking,导致模型思考过程在 TUI 完全不可见:daemon 侧
(core/llm/provider.py 已在 thinking_delta 分支)正常发布 llm.thinking, 客户端从未订阅,也没有对应渲染代码。桌面端已用 "llm.*" 通配符覆盖。
Summary
Behavior
Validation
如只修改 Skill 的 Python artifact helper,再补充该 Skill 文档要求的专项检查。
Risk
UI evidence
Checklist
docs/reference/wire-protocol.md。Signed-off-by(DCO)。