Skip to content

Commit 7c54a04

Browse files
committed
fix(server): keep custom project titles when baselines replay
1 parent 420df3a commit 7c54a04

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/server/src/orchestration-v2/ProjectStore.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ export const make = Effect.gen(function* () {
186186
)
187187
ON CONFLICT (project_id)
188188
DO UPDATE SET
189-
title = excluded.title,
189+
title = CASE
190+
WHEN projection_projects.has_custom_title = 1 AND excluded.has_custom_title = 0
191+
THEN projection_projects.title
192+
ELSE excluded.title
193+
END,
190194
has_custom_title = MAX(projection_projects.has_custom_title, excluded.has_custom_title),
191195
workspace_root = excluded.workspace_root,
192196
default_model_selection_json = excluded.default_model_selection_json,

0 commit comments

Comments
 (0)