From 5786dc675df7401383ef5799e950ebdea69c4116 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Mon, 16 Mar 2026 11:23:51 -0700 Subject: [PATCH] fix(offload): apply empirically verified nic0 hostname construction to setup --- .gemini/skills/offload/scripts/setup.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.gemini/skills/offload/scripts/setup.ts b/.gemini/skills/offload/scripts/setup.ts index 97ac8906a1..054e74647a 100644 --- a/.gemini/skills/offload/scripts/setup.ts +++ b/.gemini/skills/offload/scripts/setup.ts @@ -62,16 +62,12 @@ export async function runSetup(env: NodeJS.ProcessEnv = process.env) { } // 1. Configure Isolated SSH Alias (Direct Internal Hostname) - console.log(`\nšŸš€ Configuring Isolated SSH Alias...`); - let dnsSuffix = await prompt('Internal DNS Suffix (e.g. .internal or .internal.gcpnode.com)', '.internal.gcpnode.com'); - - // FIX: Ensure exactly ONE dot between projectId and suffix - if (dnsSuffix && !dnsSuffix.startsWith('.')) { - dnsSuffix = '.' + dnsSuffix; - } - - // PREPEND nic0. for direct internal routing - const internalHostname = `nic0.${targetVM}.${zone}.c.${projectId}${dnsSuffix}`; + console.log(`\nšŸš€ Configuring Isolated SSH Alias (Direct Internal Path)...`); + const dnsSuffix = await prompt('Internal DNS Suffix', '.internal.gcpnode.com'); + + // Construct the empirically verified high-performance hostname + const internalHostname = `nic0.${targetVM}.${zone}.c.${projectId}${dnsSuffix.startsWith('.') ? dnsSuffix : '.' + dnsSuffix}`; + const sshAlias = 'gcli-worker'; const sshConfigPath = path.join(REPO_ROOT, '.gemini/offload_ssh_config');