Keep attached Boat identity read-only in environment settings

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-10 11:46:43 -05:00
1 parent 7ec6da3e15
commit 719aa4eee6
3 files changed
+20 -7

No files matched your search

+4 -5
View File
@@ -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.
@@ -798,6 +798,11 @@ describe("CompanyEnvironments — test provider button", () => {
const page = getEnvironmentFormPage()!;
const nameInput = Array.from(page.querySelectorAll<HTMLInputElement>("input"))
.find((input) => input.value === "Boat")!;
expect(Array.from(page.querySelectorAll<HTMLSelectElement>("select"))
.find((select) => select.value === "computer")?.disabled).toBe(true);
expect(Array.from(page.querySelectorAll<HTMLInputElement>("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(() => {
+11 -2
View File
@@ -2264,6 +2264,7 @@ export function CompanyEnvironments({ mode = "list" }: CompanyEnvironmentsProps)
<select
className="w-full rounded-md border border-border bg-transparent px-2.5 py-1.5 text-sm outline-none"
value={environmentForm.driver}
disabled={Boolean(editingEnvironmentId) && environmentForm.driver === "computer"}
onChange={(e) =>
setEnvironmentForm((current) => ({
...current,
@@ -2288,16 +2289,24 @@ export function CompanyEnvironments({ mode = "list" }: CompanyEnvironmentsProps)
<option value="sandbox">Sandbox</option>
) : null}
<option value="ssh">SSH</option>
{(experimentalSettings?.enableBoatEnvironments || environmentForm.driver === "computer") && <option value="computer">Boat</option>}
{(experimentalSettings?.enableBoatEnvironments || environmentForm.driver === "computer") && <option value="computer" disabled={Boolean(editingEnvironmentId) && environmentForm.driver !== "computer"}>Boat</option>}
{environmentForm.driver === "local" ? (
<option value="local">Local</option>
) : null}
</select>
{editingEnvironmentId && (experimentalSettings?.enableBoatEnvironments || environmentForm.driver === "computer") ? (
<p className="text-sm text-muted-foreground">
{environmentForm.driver === "computer"
? "To attach a different Boat, add a separate environment."
: "To use Boat, add a separate environment."}
</p>
) : null}
</Field>
{environmentForm.driver === "computer" && <>
<Field label="Boat ID" hint="Attach an existing Boat with persistent storage enabled.">
<Field label="Boat ID" hint={editingEnvironmentId ? "This environment is attached to this Boat." : "Attach an existing Boat with persistent storage enabled."}>
<Input value={environmentForm.boatId} placeholder="bx_…"
readOnly={Boolean(editingEnvironmentId)}
onChange={(event) => setEnvironmentForm(current => ({ ...current, boatId: event.target.value }))} />
</Field>
<Field label="Boat API key" hint={environmentForm.boatApiKeySecretRef ? "A key is saved. Leave blank to keep it." : "Stored as an encrypted secret."}>