Skip to content

Commit 006ac2b

Browse files
committed
fix: auto-stage native upgrades when non-interactive
1 parent 3f57eb0 commit 006ac2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/pythinker-code/src/cli/sub/upgrade.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function handleUpgrade(
8989

9090
const source = await deps.detectInstallSource().catch(() => 'unsupported' as const);
9191
const installCommand = installCommandFor(source, target.version, deps.platform);
92-
if (!canAutoInstall(source, deps.platform) || (!deps.yes && !deps.isInteractive)) {
92+
if (!canAutoInstall(source, deps.platform)) {
9393
trackUpgradeEvent(deps.track, 'upgrade_command_manual_command', {
9494
current_version: currentVersion,
9595
target_version: target.version,
@@ -104,7 +104,7 @@ export async function handleUpgrade(
104104
return 0;
105105
}
106106

107-
if (!deps.yes) {
107+
if (!deps.yes && deps.isInteractive) {
108108
trackUpgradeEvent(deps.track, 'upgrade_command_prompted', {
109109
current_version: currentVersion,
110110
target_version: target.version,

0 commit comments

Comments
 (0)