Merged
Conversation
…rets Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix prepared fixes for both issues found in the latest run.
- ✅ Fixed: Windows update fails: PowerShell command run in cmd.exe
- The update command now runs with
shell: 'powershell.exe'on Windows so PowerShell-only syntax executes correctly.
- The update command now runs with
- ✅ Fixed: Explicit update command uses stale cached version
- The explicit
updateflow now always callsfetchLatestVersion()instead of using the 6-hour cache.
- The explicit
Or push these changes by commenting:
@cursor push 644e05d676
Preview (644e05d676)
diff --git a/src/lib/update.ts b/src/lib/update.ts
--- a/src/lib/update.ts
+++ b/src/lib/update.ts
@@ -10,12 +10,10 @@
fetchLatestVersion,
getUpdateCommand,
isNewerVersion,
- readUpdateCache,
} from '@utils/update-check.js';
import { execSync } from 'child_process';
import { version as currentVersion } from '../../package.json';
-import { UPDATE_CHECK_INTERVAL_MS } from '../constants.js';
const context = msg('update');
@@ -27,14 +25,7 @@
printStart(context);
try {
- // Determine latest version: use cache if fresh, otherwise fetch
- let latestVersion: string;
- const cache = readUpdateCache();
- if (cache && Date.now() - cache.lastChecked < UPDATE_CHECK_INTERVAL_MS) {
- latestVersion = cache.latestVersion;
- } else {
- latestVersion = await fetchLatestVersion();
- }
+ const latestVersion = await fetchLatestVersion();
const updateAvailable = isNewerVersion(currentVersion, latestVersion);
const updateCommand = getUpdateCommand();
@@ -56,7 +47,10 @@
if (updateAvailable) {
console.log(`Latest version: ${latestVersion}`);
console.log('Updating...');
- execSync(updateCommand, { stdio: 'inherit' });
+ execSync(updateCommand, {
+ stdio: 'inherit',
+ ...(process.platform === 'win32' ? { shell: 'powershell.exe' } : {}),
+ });
printSuccess(context, { latestVersion });
} else {
printAlreadyDone(context, { currentVersion });This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2e8cf2e to
05cecff
Compare
MantasMiksys
approved these changes
Mar 30, 2026
|
🎉 This PR is included in version 2.14.0-beta.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Note
Medium Risk
Adds a new self-update command that executes platform-specific shell commands (
execSync), which can impact user environments if the command selection or output handling is wrong. Also increases update check/notify frequency and refactors update-version fetching to throw errors in more cases, changing runtime behavior.Overview
Adds a new
tigris updatecommand that fetches the latest published version, reports status (including JSON output), and runs a platform-appropriate upgrade command.Refactors
update-checkutilities by extractinggetUpdateCommand, exposingreadUpdateCache, and turning the registry fetch into an exportedfetchLatestVersionthat updates cache and surfaces network/parse errors (background checks still fail silently).Shortens update check/notification intervals and changes the update banner to instruct users to run
tigris update. Release workflow now runstestandtest:integrationinstead oftest:all.Written by Cursor Bugbot for commit 05cecff. This will update automatically on new commits. Configure here.