mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
fix legacy title reconciliation
This commit is contained in:
@@ -587,7 +587,7 @@ pub async fn read_repair_rollout_path(
|
||||
.await
|
||||
{
|
||||
Ok(true) => return,
|
||||
Ok(false) => saw_existing_metadata = false,
|
||||
Ok(false) => return,
|
||||
Err(err) => {
|
||||
warn!(
|
||||
"state db read-repair update failed for {}: {err}",
|
||||
|
||||
@@ -918,7 +918,10 @@ ON CONFLICT(id) DO UPDATE SET
|
||||
name = COALESCE(
|
||||
threads.name,
|
||||
CASE
|
||||
WHEN threads.title <> '' AND threads.title <> excluded.title THEN threads.title
|
||||
WHEN threads.title <> ''
|
||||
AND (threads.first_user_message = '' OR trim(threads.title) <> trim(threads.first_user_message))
|
||||
AND threads.title <> excluded.title
|
||||
THEN threads.title
|
||||
ELSE excluded.name
|
||||
END
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user