refactor(tui): fold structure blocks to tags in read mode - #134
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Deploying sivtr with
|
| Latest commit: |
9a7622d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://51768db8.sivtr.pages.dev |
| Branch Preview URL: | https://tui-content-mode-unify.sivtr.pages.dev |
6aeeee1 to
f64b4cd
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f64b4cd7eb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if part.kind().is_structure() { | ||
| run.push(part); | ||
| continue; | ||
| chunks.push(structure_fold_label(part)); |
There was a problem hiding this comment.
此处把读取模式从按频道汇总改为逐项显示结构标签,同时提交还修改了用户可见的 read/raw 界面文案,但变更未写入 CHANGELOG.md 或版本变更日志,后续发布说明将遗漏这项可见行为变化;请补充相应条目。
AGENTS.md reference: AGENTS.md:L149-L150
Useful? React with 👍 / 👎.
Read mode now collapses every structure part to its <:...:> tag line (<:tool:Bash call:>, <:thinking:>, ...) instead of a plain channel summary (tools: Bash x2) and instead of the full payload. Raw mode keeps the complete block. Both modes render the tags with the same gray style. Deletes the channel-summary fold machinery and its dead styling; content labels become read/raw.
f64b4cd to
9a7622d
Compare
Purpose
Read mode now collapses every structure part to its <:…:>\ tag line (<:tool:Bash call:>, <:thinking:>, …) instead of a plain channel summary (\ ools: Bash x2). Raw mode keeps the complete block. Both modes render the tags with the same gray style — read and raw share styling, not content.
Changes
ead\ /
aw.
Validation