app-server: Add ephemeral field to Thread object (#13084)

Currently there is no alternative way to know that thread is ephemeral,
only client which did create it has the knowledge.
This commit is contained in:
Ruslan Nigmatullin
2026-02-27 17:42:25 -08:00
committed by GitHub
parent 1a8d930267
commit 8c1e3f3e64
19 changed files with 108 additions and 0 deletions

View File

@@ -7869,6 +7869,7 @@ fn build_thread_from_snapshot(
Thread {
id: thread_id.to_string(),
preview: String::new(),
ephemeral: config_snapshot.ephemeral,
model_provider: config_snapshot.model_provider_id.clone(),
created_at: now,
updated_at: now,
@@ -7910,6 +7911,7 @@ pub(crate) fn summary_to_thread(summary: ConversationSummary) -> Thread {
Thread {
id: conversation_id.to_string(),
preview,
ephemeral: false,
model_provider,
created_at: created_at.map(|dt| dt.timestamp()).unwrap_or(0),
updated_at: updated_at.map(|dt| dt.timestamp()).unwrap_or(0),