Skip to content

feat(session): include tool_use input in extracted text#4080

Open
xu-song wants to merge 1 commit into
farion1231:mainfrom
xu-song:feat/tool-use-input-preview
Open

feat(session): include tool_use input in extracted text#4080
xu-song wants to merge 1 commit into
farion1231:mainfrom
xu-song:feat/tool-use-input-preview

Conversation

@xu-song

@xu-song xu-song commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Render tool_use content blocks with their input payload alongside the tool name when extracting text from session messages. Previously summaries only showed [Tool: name], making it impossible to tell what a tool was invoked with.

After:

[Tool: Edit]
{
  "file_path": "src/foo.ts",
  ...
}

If input is missing or null, behavior is unchanged.

Related Issue

Screenshots / 截图

Before / 修改前 After / 修改后
image image

Checklist / 检查清单

  • pnpm typecheck passes / 通过 TypeScript 类型检查
  • pnpm format:check passes / 通过代码格式检查
  • cargo clippy passes (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)
  • Updated i18n files if user-facing text changed / 如修改了用户可见文本,已更新国际化文件

@farion1231

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 06cca1ea8e

ℹ️ 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".

@xu-song xu-song force-pushed the feat/tool-use-input-preview branch from 06cca1e to 7b080f2 Compare June 12, 2026 03:45
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.

2 participants