From 719aa4eee695438d99955095766c3f5f7f247e8e Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 10 Oct 2026 11:46:43 -0500 Subject: [PATCH] Keep attached Boat identity read-only in environment settings Co-Authored-By: Paperclip --- doc/plans/2026-10-10-boat-environment.md | 9 ++++----- ui/src/pages/CompanyEnvironments.test.tsx | 5 +++++ ui/src/pages/CompanyEnvironments.tsx | 13 +++++++++++-- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/doc/plans/2026-10-10-boat-environment.md b/doc/plans/2026-10-10-boat-environment.md index 25b16f5172a..b0a029565d1 100644 --- a/doc/plans/2026-10-10-boat-environment.md +++ b/doc/plans/2026-10-10-boat-environment.md @@ -272,11 +272,10 @@ per-command deadlines remain unchanged. The native Claude warm follow-up `199cb94d-d6c0-4675-9719-d65b2daf761b` succeeded in 89 seconds and read the same file hash. Runner PID 51467 -(start ticks 89621), runner identity `34cbf0a2`, listener 43127, and provider -processes remained the same; owner generation advanced from 1 to 2 while launch -generation stayed 1. Evidence: [Claude warm follow-up](assets/2026-10-10-boat/native-claude-warm.jpg). +(start ticks 89621), runner identity `34cbf0a2`, and listener 43127 remained +the same. Owner generation advanced from 1 to 2 while launch generation stayed 1. Claude provider subprocesses restarted for the second turn, +while the provider conversation and isolated home persisted. Evidence: [Claude warm follow-up](assets/2026-10-10-boat/native-claude-warm.jpg). Required remaining evidence includes post-idle task continuation, -exact last-owner process retirement, and the -same matrix on the final source revision at the designated staging instance. +exact last-owner process retirement, and the same matrix on the final source revision at the designated staging instance. Provider-only smoke checks do not substitute for these product journeys. diff --git a/ui/src/pages/CompanyEnvironments.test.tsx b/ui/src/pages/CompanyEnvironments.test.tsx index 40c30301f1d..1b4c39d3f28 100644 --- a/ui/src/pages/CompanyEnvironments.test.tsx +++ b/ui/src/pages/CompanyEnvironments.test.tsx @@ -798,6 +798,11 @@ describe("CompanyEnvironments — test provider button", () => { const page = getEnvironmentFormPage()!; const nameInput = Array.from(page.querySelectorAll("input")) .find((input) => input.value === "Boat")!; + expect(Array.from(page.querySelectorAll("select")) + .find((select) => select.value === "computer")?.disabled).toBe(true); + expect(Array.from(page.querySelectorAll("input")) + .find((input) => input.value === "bx_existing")?.readOnly).toBe(true); + expect(page.textContent).toContain("To attach a different Boat, add a separate environment."); await act(async () => setInputValue(nameInput, "Renamed Boat")); await act(async () => click(findButton(page, "Save environment"))); await waitForAssertion(() => { diff --git a/ui/src/pages/CompanyEnvironments.tsx b/ui/src/pages/CompanyEnvironments.tsx index 673436ca2c6..4541780520d 100644 --- a/ui/src/pages/CompanyEnvironments.tsx +++ b/ui/src/pages/CompanyEnvironments.tsx @@ -2264,6 +2264,7 @@ export function CompanyEnvironments({ mode = "list" }: CompanyEnvironmentsProps) + {editingEnvironmentId && (experimentalSettings?.enableBoatEnvironments || environmentForm.driver === "computer") ? ( +

+ {environmentForm.driver === "computer" + ? "To attach a different Boat, add a separate environment." + : "To use Boat, add a separate environment."} +

+ ) : null} {environmentForm.driver === "computer" && <> - + setEnvironmentForm(current => ({ ...current, boatId: event.target.value }))} />