fix: agent notifications pointaient vers / au lieu de /home?openNote=
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 1m24s
CI / Deploy production (on server) (push) Has been skipped

La landing page est sur /, l'app sur /home.
Correction: actionUrl = /home?openNote=noteId

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Antigravity
2026-05-29 15:17:36 +00:00
parent c415d93945
commit cd1be630d2

View File

@@ -1846,7 +1846,7 @@ export async function executeAgent(agentId: string, userId: string, promptOverri
type: isSlides ? 'agent_slides_ready' : isCanvas ? 'agent_canvas_ready' : 'agent_success',
title: agent.name,
message,
actionUrl: isCanvas ? `/lab?id=${result.canvasId}` : result.noteId ? `/?openNote=${result.noteId}` : '/agents',
actionUrl: isCanvas ? `/lab?id=${result.canvasId}` : result.noteId ? `/home?openNote=${result.noteId}` : '/agents',
relatedId: resultId || agentId,
})
}