Keep setup rationale in the pull request

Remove the explanatory source comment to follow the contributor policy. The runtime expression and the 140 passing regression tests are unchanged. The previous commit passed all automated CI checks.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Nicky LeachandPaperclip committed 2026-10-27 14:58:49 -07:00
1 parent f2a5a2df76
commit 8f43a6d801
1 file changed
-1
@@ -414,7 +414,6 @@ function Setup({
); );
const needsCurrentSetup = ["codex_local", "claude_local", "opencode_local", "pi_local"].includes(adapterType); const needsCurrentSetup = ["codex_local", "claude_local", "opencode_local", "pi_local"].includes(adapterType);
const preparingComputer = created?.pauseReason === "setup" && ["preparing", "pausing"].includes(created.lifecycleState ?? ""); const preparingComputer = created?.pauseReason === "setup" && ["preparing", "pausing"].includes(created.lifecycleState ?? "");
// Drafts from the name/adapter dialog can inherit the policy's environment.
const environmentSelectionSaved = (!environmentOverride && created?.defaultEnvironmentId == null) const environmentSelectionSaved = (!environmentOverride && created?.defaultEnvironmentId == null)
|| (created?.defaultEnvironmentId ?? null) === (environmentOverride || (forced.forced || managedOnly ? environmentId : null)); || (created?.defaultEnvironmentId ?? null) === (environmentOverride || (forced.forced || managedOnly ? environmentId : null));
const ready = Boolean(created) && environmentSelectionSaved && !environmentSaving && !preparingComputer && connectionSettingsReady && (!needsCurrentSetup || ( const ready = Boolean(created) && environmentSelectionSaved && !environmentSaving && !preparingComputer && connectionSettingsReady && (!needsCurrentSetup || (