Lightweight coding agent that runs in your terminal
Rust
chore(app-server): remove stubbed thread/compact API (#8086)
Owen Lin412dd379562f
diff --git a/codex-rs/app-server-protocol/src/protocol/common.rs b/codex-rs/app-server-protocol/src/protocol/common.rsindex 6e5f469306..dca9f03e75 100644--- a/codex-rs/app-server-protocol/src/protocol/common.rs+++ b/codex-rs/app-server-protocol/src/protocol/common.rs@@ -117,10 +117,6 @@ client_request_definitions! {params: v2::ThreadListParams,response: v2::ThreadListResponse,},- ThreadCompact => "thread/compact" {- params: v2::ThreadCompactParams,- response: v2::ThreadCompactResponse,- },SkillsList => "skills/list" {params: v2::SkillsListParams,response: v2::SkillsListResponse,diff --git a/codex-rs/app-server-protocol/src/protocol/v2.rs b/codex-rs/app-server-protocol/src/protocol/v2.rsindex 23dceae13c..05362b204e 100644--- a/codex-rs/app-server-protocol/src/protocol/v2.rs+++ b/codex-rs/app-server-protocol/src/protocol/v2.rs@@ -958,18 +958,6 @@ pub struct ThreadListResponse {pub next_cursor: Option<String>,}-#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]-#[serde(rename_all = "camelCase")]-#[ts(export_to = "v2/")]-pub struct ThreadCompactParams {- pub thread_id: String,-}--#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]-#[serde(rename_all = "camelCase")]-#[ts(export_to = "v2/")]-pub struct ThreadCompactResponse {}-#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]#[serde(rename_all = "camelCase")]#[ts(export_to = "v2/")]diff --git a/codex-rs/app-server/src/codex_message_processor.rs b/codex-rs/app-server/src/codex_message_processor.rsindex 627b84b096..d017d22943 100644--- a/codex-rs/app-server/src/codex_message_processor.rs+++ b/codex-rs/app-server/src/codex_message_processor.rs@@ -368,13 +368,6 @@ impl CodexMessageProcessor {ClientRequest::ThreadList { request_id, params } => {self.thread_list(request_id, params).await;}- ClientRequest::ThreadCompact {- request_id,- params: _,- } => {- self.send_unimplemented_error(request_id, "thread/compact")- .await;- }ClientRequest::SkillsList { request_id, params } => {self.skills_list(request_id, params).await;}@@ -515,15 +508,6 @@ impl CodexMessageProcessor {}}- async fn send_unimplemented_error(&self, request_id: RequestId, method: &str) {- let error = JSONRPCErrorError {- code: INTERNAL_ERROR_CODE,- message: format!("{method} is not implemented yet"),- data: None,- };- self.outgoing.send_error(request_id, error).await;- }-async fn login_v2(&mut self, request_id: RequestId, params: LoginAccountParams) {match params {LoginAccountParams::ApiKey { api_key } => {