Skip to content

Commit 430fc0f

Browse files
committed
docs: explain bundled-channel default-account boundary in allowFrom migration
1 parent 52540ca commit 430fc0f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/infra/state-migrations.channel-pairing.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ function parseAllowFromFilename(
113113
} else if (matchingAccountIds.length > 1) {
114114
hasAccountCollision = true;
115115
} else if (accountKey === DEFAULT_ACCOUNT_ID && CHANNEL_IDS.includes(channel)) {
116+
// "default" is canonical, so bundled `<channel>-default` files resolve without config.
117+
// Keep this on CHANNEL_IDS: knownChannelIds also includes configured and pairing-file ids.
118+
// After safeAccountKey finds no match, those other channels must remain unresolved.
116119
targets.push({ channel: channel as PairingChannel, accountId: DEFAULT_ACCOUNT_ID });
117120
}
118121
}

0 commit comments

Comments
 (0)