From 980fad261c4ebb67c735e37e9635997e3ba6b4d9 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 29 Oct 2026 23:56:14 -0500 Subject: [PATCH] Use the UI accessible-company list for reply parsing Match the CompanyContext scope rather than the instance-admin directory when determining which issue prefixes the browser links. Co-Authored-By: Paperclip --- tests/runner-e2e/product-journeys/agent-flows.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runner-e2e/product-journeys/agent-flows.ts b/tests/runner-e2e/product-journeys/agent-flows.ts index e0bd0b14a96..57a7c772565 100644 --- a/tests/runner-e2e/product-journeys/agent-flows.ts +++ b/tests/runner-e2e/product-journeys/agent-flows.ts @@ -97,7 +97,7 @@ export async function runAgentJourney(id: AgentJourney, context: JourneyContext, const runs = state.taskRuns.filter(run => run.status === "succeeded"); if (!runs.length || runs.some(run => !Number.isFinite(Date.parse(run.finishedAt)))) throw new JourneyError("failed", "final_run_time_missing"); const run = [...runs].sort((a, b) => Date.parse(a.finishedAt) - Date.parse(b.finishedAt)).at(-1)!; - const companies = await context.api.get("/api/companies"); + const companies = await context.api.get("/api/companies?scope=accessible"); if (!Array.isArray(companies) || !companies.some(row => row.id === context.company.id) || companies.some(row => typeof row.issuePrefix !== "string" || !row.issuePrefix)) throw new JourneyError("failed", "reply_company_context_missing"); await open(issue);