fix: show skill install prompt on all success paths

promptSkillInstall() was only called after fresh download. Now also
shows when binary already exists or comes from AGENT_DESKTOP_BINARY_PATH.
This commit is contained in:
Lahfir 2026-03-03 06:49:56 -08:00
parent ceb02470c1
commit 39b2bc6348

View file

@ -138,6 +138,7 @@ function main() {
chmodSync(binaryPath, 0o755);
log(`Using binary from AGENT_DESKTOP_BINARY_PATH: ${customPath}`);
fixGlobalInstallBin();
promptSkillInstall();
return;
} catch (err) {
log(`Failed to copy from AGENT_DESKTOP_BINARY_PATH: ${err.message}`);
@ -149,6 +150,7 @@ function main() {
chmodSync(binaryPath, 0o755);
log(`Native binary ready: ${binaryName}`);
fixGlobalInstallBin();
promptSkillInstall();
return;
}