chore: add small debug client (#8894)

Small debug client, do not use in production
This commit is contained in:
jif-oai
2026-01-08 13:40:14 +00:00
committed by GitHub
parent be212db0c8
commit 0318f30ed8
10 changed files with 1413 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
use std::collections::HashMap;
use codex_app_server_protocol::RequestId;
#[derive(Debug, Default)]
pub struct State {
pub pending: HashMap<RequestId, PendingRequest>,
pub thread_id: Option<String>,
pub known_threads: Vec<String>,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum PendingRequest {
Start,
Resume,
List,
}
#[derive(Debug, Clone)]
pub enum ReaderEvent {
ThreadReady {
thread_id: String,
},
ThreadList {
thread_ids: Vec<String>,
next_cursor: Option<String>,
},
}