Skip to content

Refactor history and notes tools around backend traits - #61251

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4ebfb9f6aa9395f9a27bd7fbe6cf131c0a06d8d7
Nov 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4ebfb9f6aa9395f9a27bd7fbe6cf131c0a06d8d7

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Refactor history and notes tools around backend traits

What changed

  • Introduce Request, Backend, Handle, and ToolResponse traits so backends can choose input types, response schemas, output rendering, and tool exposure.
  • Consolidate tool names, request types, catalog keys, and parallel-call settings in one registration macro, with HTTP routes derived from request metadata.
  • Move trusted session and agent context into HttpBackend, preserving opaque JSON arguments and catalog overrides for the HTTP proxy.

Testing

Extend the extension integration test to verify that an unknown future_catalog_parameter is forwarded to the HTTP endpoint alongside trusted context. Adapt the bundled tool contract snapshot test to use the new registration path.

## What changed

- Introduce `Request`, `Backend`, `Handle`, and `ToolResponse` traits so backends can choose input types, response schemas, output rendering, and tool exposure.
- Consolidate tool names, request types, catalog keys, and parallel-call settings in one registration macro, with HTTP routes derived from request metadata.
- Move trusted session and agent context into `HttpBackend`, preserving opaque JSON arguments and catalog overrides for the HTTP proxy.

## Testing

Extend the extension integration test to verify that an unknown `future_catalog_parameter` is forwarded to the HTTP endpoint alongside trusted context. Adapt the bundled tool contract snapshot test to use the new registration path.

GitOrigin-RevId: 4ebfb9f6aa9395f9a27bd7fbe6cf131c0a06d8d7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4ebfb9f6aa9395f9a27bd7fbe6cf131c0a06d8d7 branch from 61568be to aa5f492 Compare November 13, 2026 04:22
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-13T04:22:08.258448Z 61568be PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit aa5f492 into main Nov 13, 2026
12 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4ebfb9f6aa9395f9a27bd7fbe6cf131c0a06d8d7 branch November 13, 2026 04:22
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — aa5f4920 Deployed Nov 13, 2026 by mudsg24 via Generate label suggestions #63238
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants