Skip to content

Conversation

@owenlin0
Copy link
Contributor

Makes it easier to figure out which types are defined in the old vs. new API schema.

@owenlin0 owenlin0 marked this pull request as ready for review October 30, 2025 23:39
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1 to +6
// Module declarations for the app-server protocol namespace.
// Exposes protocol pieces used by `lib.rs` via `pub use protocol::common::*;`.

pub mod common;
pub mod v1;
pub mod v2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve protocol:: re-exports for backward compatibility*

Before the refactor all protocol types were exposed directly under protocol::*, allowing callers to import codex_app_server_protocol::protocol::ClientRequest and similar. After the split the new protocol module only declares common, v1, and v2 submodules and nothing re‑exports their contents, so every existing path of the form protocol::Foo now fails to compile even though the commit description advertises a refactor rather than an API break. If maintaining compatibility is desired, re‑export the submodule contents from protocol/mod.rs (e.g. pub use self::common::*;) so the old paths continue to work while still offering protocol::v1 and protocol::v2.

Useful? React with 👍 / 👎.

@owenlin0 owenlin0 enabled auto-merge (squash) October 30, 2025 23:53
@owenlin0 owenlin0 merged commit cdc3df3 into main Oct 30, 2025
25 checks passed
@owenlin0 owenlin0 deleted the owen/refactor_v1_v2 branch October 30, 2025 23:56
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants