Skip to content

shortcut: retry and fall back when the download fails, keep the old copy - #51

Merged
therepos merged 1 commit into
mainfrom
claude/elegant-maxwell-v1czpf
Nov 23, 2026
Merged

therepos merged 1 commit into
mainfrom
claude/elegant-maxwell-v1czpf

Conversation

@therepos

Copy link
Copy Markdown
Owner

Turning Settings > Shortcut off then on is how the local copy is updated, but a single failed download (connection closed, 404) left the shortcut off with no copy.

  • shortcut block: new Save-ShortcutCopy downloads to a temp file, retries three times (second try straight from raw.githubusercontent.com), and only replaces the copy with a complete script.
  • Turning the shortcut off keeps the removed copy in memory; if every download fails on the next "on", the previous copy is restored with a yellow note.
  • Running from the local copy (e.g. appupdate with its scheduled task) now also downloads the latest version on "on".
  • AGENTS.md updated; block synced into all five menu scripts.

To test on Windows: from the zipper shortcut, Settings > Shortcut off, then on (expect Shortcut added); repeat with the network disconnected (expect the yellow "kept the previous copy" note and the shortcut still working).


Generated by Claude Code

Turning the shortcut on now downloads to a temp file with retries and a
raw.githubusercontent.com fallback, and restores the previous copy if
every attempt fails.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DU3cH2Fs1FdP46uJBSom5X
@therepos
therepos merged commit d1b17ea into main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants