2 months ago
28f3628The re-run scope hangs off repo.org_id, which only gets set when an install is claimed. The fixture predates claims and synced its repos with the 4-arg call, so org_id stayed null, the scope block in loadRunView was skipped and repoName came back null. Claiming the install exercises that block for the first time, which surfaced a second problem: apps/web dynamically imports drizzle-orm in ~14 server modules without declaring it. Bundled builds resolve it through the root, bun test does not. Declared it. - test seeds an org + organization_installations claim, syncs with the resolved org id - user-1 stays a non-member, so the session view surfaces the scope and still refuses the re-run
Parent2a3065e