You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: support version URLs for watched tool updates - #7449
Watched tools whose CLI never announces its own updates can now be tracked by the update watcher through an optional version_url key.
Some tools, such as Claude Code, never report a newer version from their own CLI, so the update watcher has no way to notice an update.
With this change, a watched-tool entry may name a version_url that returns the latest published version, which the watcher probes with curl inside its existing probe time bound.
The key is optional and validated, so entries without it behave exactly as before.
When curl is unavailable or the probe fails, the watcher reports the existing check-failed outcome rather than a false result.
Tests cover a valid probe, an invalid key, and the missing-curl path, and the shipped example gains one entry.
What Changed
Add optional, validated HTTPS version_url probes using curl within existing time limits, comparing published versions against the newest installed copy.
Report missing curl, failed requests, and unreadable versions as check failures while preserving PATH mismatch reporting.
Document the option, add a Claude Code example, and add tests for version comparisons, invalid configuration, and probe failures.
Risk Assessment
✅ Low: The optional probe is bounded, preserves existing behavior, and correctly distinguishes published updates from installed PATH skew.
Testing
The targeted watcher suite passed after correcting fixture placement. Eight live scenarios passed using real HTTPS, curl, watcher delivery, and the installed Claude CLI. CLI transcripts and request logs were saved; all disposable fixtures were removed.
Live validation: ✅ go - 8 of 8 scenarios driven live against the product
Scenario
Result
Live
Evidence
Arm version_url and receive a watcher wake for a silent tool; repeated findings are suppressed
✅ pass
live
Live watcher CLI transcripts and persisted reports
Current or newer active versions stay silent; 2.10.0 correctly exceeds 2.9.0
✅ pass
live
Live watcher CLI transcripts and persisted reports
Already-installed releases report only PATH skew; releases newer than every copy also report availability
✅ pass
live
Live watcher CLI transcripts and persisted reports
HTTP errors, unreadable bodies, and slow HTTPS produce bounded check failures while remaining tools are checked
✅ pass
live
Live watcher CLI transcripts and persisted reports; Disposable HTTPS publisher request log
Missing curl produces an explicit check failure without contacting the publisher
✅ pass
live
Live watcher CLI transcripts and persisted reports
Invalid version_url values and missing commands are rejected during checking and arming
✅ pass
live
Live watcher CLI transcripts and persisted reports
Entries without version_url retain silent, announcement, and PATH-skew behavior without curl
✅ pass
live
Live watcher CLI transcripts and persisted reports
Shipped Claude configuration reports published 2.1.302 against the real installed CLI version 2.1.301
✅ pass
live
Real installed Claude and public release endpoint
Evidence: Live watcher CLI transcripts and persisted reports
The real installed Claude executable is used through an isolated PATH and HOME; no login or primary is launched.
$ ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-real-claude-ktmzao03/bin/claude --version
exit=0
2.1.301 (Claude Code)
$ ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/.tool-version-real-claude-ktmzao03/bin/curl -fsS --max-time 5 -- https://downloads.claude.ai/claude-code-releases/latest
exit=0
2.1.302
$ ~/.no-mistakes/worktrees/3d78cffe00b3/01M54MMDEVYV2QGWZ6VJ25Y57G/bin/fm-tool-update-check.sh check
exit=0
tool updates: claude update available: 2.1.302 published at https://downloads.claude.ai/claude-code-releases/latest, PATH resolves 2.1.301
Persisted state/.tool-updates:
fm-tool-updates-v1
epoch=1792232105
reported=claude update available: 2.1.302 published at https://downloads.claude.ai/claude-code-releases/latest, PATH resolves 2.1.301
RESULT: pass; actual installed CLI and public publisher agree with watcher output.
Disposable HOME, PATH links, and watcher state removed.
⚠️bin/fm-tool-update-check.sh:533 - If PATH resolves 2.1.271, another PATH entry contains 2.1.273, and version_url returns 2.1.273, this emits both 'update available' and 'update not in effect'. The release is already installed; this repeats the misclassification fixed by e9a6675. Compare published against best_version, as the announcement path does. Align the explanations at bin/fm-tool-update-check.sh:51, bin/fm-tool-update-check.sh:521, and docs/configuration.md:1572; extend tests/fm-tool-update-check.test.sh:457 with this two-copy case.
🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
Live validation: ✅ go - 8 of 8 scenarios driven live against the product
Scenario
Result
Live
Evidence
Arm version_url and receive a watcher wake for a silent tool; repeated findings are suppressed
✅ pass
live
Live watcher CLI transcripts and persisted reports
Current or newer active versions stay silent; 2.10.0 correctly exceeds 2.9.0
✅ pass
live
Live watcher CLI transcripts and persisted reports
Already-installed releases report only PATH skew; releases newer than every copy also report availability
✅ pass
live
Live watcher CLI transcripts and persisted reports
HTTP errors, unreadable bodies, and slow HTTPS produce bounded check failures while remaining tools are checked
✅ pass
live
Live watcher CLI transcripts and persisted reports; Disposable HTTPS publisher request log
Missing curl produces an explicit check failure without contacting the publisher
✅ pass
live
Live watcher CLI transcripts and persisted reports
Invalid version_url values and missing commands are rejected during checking and arming
✅ pass
live
Live watcher CLI transcripts and persisted reports
Entries without version_url retain silent, announcement, and PATH-skew behavior without curl
✅ pass
live
Live watcher CLI transcripts and persisted reports
Shipped Claude configuration reports published 2.1.302 against the real installed CLI version 2.1.301
Intent
Watched tools whose CLI never announces its own updates can now be tracked by the update watcher through an optional
version_urlkey.Some tools, such as Claude Code, never report a newer version from their own CLI, so the update watcher has no way to notice an update.
With this change, a watched-tool entry may name a
version_urlthat returns the latest published version, which the watcher probes with curl inside its existing probe time bound.The key is optional and validated, so entries without it behave exactly as before.
When curl is unavailable or the probe fails, the watcher reports the existing check-failed outcome rather than a false result.
Tests cover a valid probe, an invalid key, and the missing-curl path, and the shipped example gains one entry.
What Changed
version_urlprobes using curl within existing time limits, comparing published versions against the newest installed copy.Risk Assessment
✅ Low: The optional probe is bounded, preserves existing behavior, and correctly distinguishes published updates from installed PATH skew.
Testing
The targeted watcher suite passed after correcting fixture placement. Eight live scenarios passed using real HTTPS, curl, watcher delivery, and the installed Claude CLI. CLI transcripts and request logs were saved; all disposable fixtures were removed.
Evidence: Live watcher CLI transcripts and persisted reports
Source: Live watcher CLI transcripts and persisted reports
Evidence: Real installed Claude and public release endpoint
Source: Real installed Claude and public release endpoint
Evidence: Disposable HTTPS publisher request log
Source: Disposable HTTPS publisher request log
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
bin/fm-tool-update-check.sh:533- If PATH resolves 2.1.271, another PATH entry contains 2.1.273, and version_url returns 2.1.273, this emits both 'update available' and 'update not in effect'. The release is already installed; this repeats the misclassification fixed by e9a6675. Compare published against best_version, as the announcement path does. Align the explanations at bin/fm-tool-update-check.sh:51, bin/fm-tool-update-check.sh:521, and docs/configuration.md:1572; extend tests/fm-tool-update-check.test.sh:457 with this two-copy case.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
env -u FM_ROOT_OVERRIDE -u FM_STATE_OVERRIDE -u FM_DATA_OVERRIDE -u FM_CONFIG_OVERRIDE -u FM_PROJECTS_OVERRIDE TMPDIR="$PWD/.tool-version-targeted-tmp" bash tests/fm-tool-update-check.test.sh— initial setup failure: the non-repository fixture inherited the enclosing worktree.env -u TMPDIR -u FM_ROOT_OVERRIDE -u FM_STATE_OVERRIDE -u FM_DATA_OVERRIDE -u FM_CONFIG_OVERRIDE -u FM_PROJECTS_OVERRIDE bash tests/fm-tool-update-check.test.sh— passed with corrected temporary-directory placement.python3 ~/.no-mistakes/evidence/01M54MMDEVYV2QGWZ6VJ25Y57G/drive-watched-version-live.py— exerci