From 82a96b128d01a57df51de53c4e837dd391f70f5f Mon Sep 17 00:00:00 2001 From: Dotta Date: Fri, 9 Oct 2026 16:55:37 -0500 Subject: [PATCH] test: begin exact run retry at canonical agent route Preserve retry-authority and visible-denial assertions while avoiding the initial agent-route remount race. Co-Authored-By: Paperclip --- tests/e2e/chat-adapters-ui-messaging.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/chat-adapters-ui-messaging.spec.ts b/tests/e2e/chat-adapters-ui-messaging.spec.ts index cbd94d7bdfc..32a8b4e06a6 100644 --- a/tests/e2e/chat-adapters-ui-messaging.spec.ts +++ b/tests/e2e/chat-adapters-ui-messaging.spec.ts @@ -1435,12 +1435,12 @@ test.describe("Exact failed chat run retry", () => { const startPath = surface === "agent run" - ? `/${seed.prefix}/agents/${seed.agentId}/runs/${failedRunId}` + ? `/${seed.prefix}/agents/maya/runs/${failedRunId}` : `/${seed.prefix}/inbox/all`; await page.goto(startPath); if (surface === "agent run") { - // Canonicalization reloads the agent query. Interact after that - // navigation so a remount cannot discard the retry mutation result. + // Begin on the canonical route: observing the URL replacement + // alone can race the remount and discard retry mutation feedback. await expect(page).toHaveURL( new RegExp(`/${seed.prefix}/agents/maya/runs/${failedRunId}$`), );