Read conversation summaries through thread store (#18716)

Migrate the conversation summary App Server methods to ThreadStore

Because this app server api allows explicitly fetching the thread by
rollout path, intercept that case in the app server code and (a) route
directly to underlying local thread store methods if we're using a local
thread store, or (b) throw an unsupported error if we're using a remote
thread store. This keeps the thread store API clean and all filesystem
operations inside of the local thread store, which pushing the
"fundamental incompatibility" check as early as possible.
This commit is contained in:
Tom authored and GitHub committed 2026-04-20 22:39:10 +00:00
1 parent 660153b6de
commit a718b6fd47
6 files changed
+253 -72

No files matched your search

+20
View File
@@ -38,10 +38,30 @@ impl LocalThreadStore {
pub fn new(config: RolloutConfig) -> Self {
Self { config }
}
/// Read a local rollout-backed thread by path.
pub async fn read_thread_by_rollout_path(
&self,
rollout_path: std::path::PathBuf,
include_archived: bool,
include_history: bool,
) -> ThreadStoreResult<StoredThread> {
read_thread::read_thread_by_rollout_path(
self,
rollout_path,
include_archived,
include_history,
)
.await
}
}
#[async_trait]
impl ThreadStore for LocalThreadStore {
fn as_any(&self) -> &dyn std::any::Any {
self
}
async fn create_thread(
&self,
_params: CreateThreadParams,