From 52daaab02fef53d57fb001bd63f529583ac36822 Mon Sep 17 00:00:00 2001 From: B <6723574+louisgv@users.noreply.github.com> Date: Fri, 24 Apr 2026 20:27:18 +0000 Subject: [PATCH] fix(list): use actionStr.slice instead of action.slice to avoid TypeError on symbol p.select() returns string | symbol. actionStr already safely converts it via String(), but line 451 was calling .slice() on the raw action value. Symbols do not have .slice() and would throw a TypeError in the remap- branch of handleGoneServer. Agent: code-health Co-Authored-By: Claude Sonnet 4.5 --- packages/cli/src/commands/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/list.ts b/packages/cli/src/commands/list.ts index 213f545c4..2332568ad 100644 --- a/packages/cli/src/commands/list.ts +++ b/packages/cli/src/commands/list.ts @@ -448,7 +448,7 @@ async function handleGoneServer(record: SpawnRecord, cloud: string): Promise<"de // Remap to selected instance const actionStr = String(action); if (actionStr.startsWith("remap-")) { - const idx = Number.parseInt(action.slice(6), 10); + const idx = Number.parseInt(actionStr.slice(6), 10); const inst = instances[idx]; if (inst) { updateRecordConnection(record, {