Stop Codex protocol from owning Epiphany state

This commit is contained in:
Meta Vens 2026-07-12 02:19:47 +01:00
commit f2b8763eb5
17 changed files with 113 additions and 127 deletions

View file

@ -1,8 +1,8 @@
use codex_app_server_protocol::*;
use codex_core::CodexThread;
use codex_protocol::ThreadId;
use codex_protocol::protocol::EpiphanyRetrievalState;
use codex_protocol::protocol::EpiphanyThreadState;
use epiphany_state_model::EpiphanyRetrievalState;
use epiphany_state_model::EpiphanyThreadState;
use epiphany_codex_bridge::cultnet::EpiphanyStateUpdatedField;
use epiphany_codex_bridge::error::EpiphanyBridgeError;
use epiphany_codex_bridge::invalidation::epiphany_freshness_watcher_snapshot;

View file

@ -1,7 +1,7 @@
use codex_app_server_protocol::*;
use codex_core::CodexThread;
use codex_protocol::ThreadId;
use codex_protocol::protocol::EpiphanyRetrievalState;
use epiphany_state_model::EpiphanyRetrievalState;
use super::epiphany_thread_host::load_authoritative_epiphany_state;
use super::epiphany_thread_host::runtime_spine_store_path;
use epiphany_codex_bridge::cultnet::EpiphanySurfaceSource;

View file

@ -3,7 +3,7 @@ use std::path::Path;
use super::legacy_epiphany_rollout::latest_legacy_epiphany_state;
use codex_core::CodexThread;
use codex_core::RolloutRecorder;
use codex_protocol::protocol::EpiphanyThreadState;
use epiphany_state_model::EpiphanyThreadState;
use codex_protocol::protocol::InitialHistory;
use codex_protocol::protocol::TokenUsageInfo;
use epiphany_codex_bridge::mutation_service::EpiphanyMutationHost;

View file

@ -1,5 +1,5 @@
use codex_protocol::models::ResponseItem;
use codex_protocol::protocol::EpiphanyThreadState;
use epiphany_state_model::EpiphanyThreadState;
use codex_protocol::protocol::EventMsg;
use codex_protocol::protocol::RolloutItem;
@ -103,7 +103,7 @@ pub(super) fn latest_legacy_epiphany_state(items: &[RolloutItem]) -> Option<Epip
mod tests {
use super::*;
use codex_protocol::config_types::ModeKind;
use codex_protocol::protocol::EpiphanyStateItem;
use epiphany_state_model::EpiphanyStateItem;
use codex_protocol::protocol::ThreadRolledBackEvent;
use codex_protocol::protocol::TurnCompleteEvent;
use codex_protocol::protocol::TurnStartedEvent;