Skip to content

fix(tools): Preserve safe private trace results#818

Merged
dcramer merged 1 commit into
mainfrom
codex/private-tool-trace-results
Jul 10, 2026
Merged

fix(tools): Preserve safe private trace results#818
dcramer merged 1 commit into
mainfrom
codex/private-tool-trace-results

Conversation

@dcramer

@dcramer dcramer commented Jul 10, 2026

Copy link
Copy Markdown
Member

Private traces can now retain tool-selected result projections instead of redacting every tool payload. Host and plugin tools opt in with privateTraceResult, including tools created through the new plugin-facing zodTool() helper, while the payload scrubber only preserves adapter-approved projections.

searchTools exposes only each tool's name, description, and input schema. searchMcpTools exposes its complete current catalog response, including provider summaries, execution hints, and full tool descriptors; only the echoed query/provider request context and redundant data copy remain redacted. executeTool also records the resolved catalog tool name even when argument preparation fails.

Fixes #794

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jul 10, 2026 3:17pm

Request Review

Allow host and plugin tools to project explicitly safe result fields into
private traces while retaining redaction for all other tool data. Apply the
projection to discovery and system time tools, and preserve resolved
executeTool names for failures and successful calls.

Fixes #794
Co-Authored-By: OpenAI Codex <noreply@openai.com>
@dcramer dcramer force-pushed the codex/private-tool-trace-results branch from bf89636 to 1c29e8b Compare July 10, 2026 15:15
@dcramer dcramer merged commit c0a202a into main Jul 10, 2026
19 checks passed
@dcramer dcramer deleted the codex/private-tool-trace-results branch July 10, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

executeTool/searchTools should not redact tool names or results

1 participant