Vendor Codex and land Phase 1 Epiphany state slice

This commit is contained in:
Meta Vens 2026-04-23 23:20:16 +01:00
commit 2042687e30
3959 changed files with 953751 additions and 7 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>,
},
}