Skip to content

Commit 47254a0

Browse files
committed
fix: mention legacy env alias in doctor and refine /update in-progress notice
1 parent 74f9c09 commit 47254a0

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

apps/pythinker-code/src/cli/sub/doctor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@ function formatAutomaticUpdate(info: DoctorRuntimeInfo): string[] {
440440
const update = info.update;
441441
if (update?.autoUpdate === undefined) return [];
442442
if (update.autoUpdate === 'env-disabled') {
443-
return [' Auto-update: disabled by PYTHINKER_CODE_NO_AUTO_UPDATE'];
443+
return [
444+
' Auto-update: disabled by PYTHINKER_CODE_NO_AUTO_UPDATE or ' +
445+
'PYTHINKER_CLI_NO_AUTO_UPDATE',
446+
];
444447
}
445448
if (update.autoUpdate === 'off') {
446449
return [' Auto-update: off (tui.toml [upgrade].auto_install)'];

apps/pythinker-code/src/tui/commands/info.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ export async function handleUpdateCommand(
322322
host.showNotice(
323323
`Update to v${result.version} already in progress`,
324324
result.installOnRestart
325-
? 'Once preparation finishes, restart the CLI to install it.'
325+
? result.readyToInstall
326+
? 'Restart the CLI to install it.'
327+
: 'Restart after the current update operation finishes.'
326328
: 'Restart the CLI once it completes.',
327329
);
328330
return;

0 commit comments

Comments
 (0)