[Feat] Add session preview rendering#53
Conversation
Signed-off-by: samzong <samzong.lu@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ff8177afe
ℹ️ 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".
| Role::Assistant if is_tool_message(&message.content) => { | ||
| pending_tools.push(message.content.clone()); |
There was a problem hiding this comment.
Preserve assistant text after leading tool logs
When an assistant message starts with a tool-looking line but also includes normal answer text later in the same message, this branch moves the entire message into pending_tools, so the answer is rendered only inside a collapsed log instead of as visible assistant prose. This regresses the previous line-by-line rendering for mixed messages such as [tool:read]\nHere is the result...; only the tool lines should be grouped, while subsequent prose should remain visible.
Useful? React with 👍 / 👎.
What's changed?
vand passes usage metadata through CLI/TUI sharing paths.Why