diff --git a/refact-agent/gui/src/features/Chat/Thread/reducer.ts b/refact-agent/gui/src/features/Chat/Thread/reducer.ts index 0ecb5ad1f..a4af3238f 100644 --- a/refact-agent/gui/src/features/Chat/Thread/reducer.ts +++ b/refact-agent/gui/src/features/Chat/Thread/reducer.ts @@ -379,9 +379,9 @@ function applyRestoredThread( payload.last_user_message_id, existing.last_user_message_id, ), - parent_id: valueOrExisting(payload.parent_id, existing.parent_id), - link_type: valueOrExisting(payload.link_type, existing.link_type), - root_chat_id: valueOrExisting(payload.root_chat_id, existing.root_chat_id), + parent_id: payload.parent_id ?? existing.parent_id, + link_type: payload.link_type ?? existing.link_type, + root_chat_id: payload.root_chat_id ?? existing.root_chat_id, worktree: valueOrExisting(payload.worktree, existing.worktree), task_meta: valueOrExisting(payload.task_meta, existing.task_meta), is_task_chat: valueOrExisting(payload.is_task_chat, existing.is_task_chat),