Skip to content

Commit 68d3a91

Browse files
committed
refactor(cli): preserve gateway migration rationale
Keep the ownership invariant beside the inlined gateway-call exception.
1 parent 4b289fa commit 68d3a91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/cli/program/config-guard.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export async function ensureConfigReady(
237237
commandName !== "health" &&
238238
commandName !== "logs" &&
239239
commandName !== "sessions" &&
240+
// Remote RPC clients must not migrate state owned by the running gateway.
240241
!(commandName === "gateway" && subcommandName === "call") &&
241242
!(commandName === "update" && subcommandName === "status");
242243
const requiresLegacyStateInput = shouldRunStateMigrationOnlyWithLegacyInputs(commandPath);

0 commit comments

Comments
 (0)