Skip to content

Flag a worker behind the script on the page itself (6.9.0) - #17

Merged
jitdor merged 2 commits into
mainfrom
claude/iphone-safari-sync-paste-2n494v
Sep 26, 2026
Merged

jitdor merged 2 commits into
mainfrom
claude/iphone-safari-sync-paste-2n494v

Conversation

@jitdor

@jitdor jitdor commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Problem

The "worker is behind" warning lived only inside the Cloud sync panel, so a worker still reporting 6.6.0 went unnoticed.

Changes

  • A red ⚠ Redeploy worker pill appears in the on-page dock (next to Reveal all) whenever the worker is behind the script. Tapping it shows both versions and points to the worker's Cloudflare build.
  • The panel's version line now just reads Worker version: X.
  • Longer toasts stay on screen long enough to read (scaled by message length, minimum 2.8 s).
  • README and CHANGELOG updated; version 6.9.0 in the script and worker constant.

Tests

  • The older-worker test now checks the on-page pill and its message instead of panel text.
  • New test: no redeploy pill when the worker is level with or ahead of the script.
  • All 72 tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KtBArBFtPSqnpnrUyAopd8


Generated by Claude Code

The redeploy warning lived only inside the Cloud sync panel, so a worker
left on 6.6.0 went unnoticed. A "Redeploy worker" pill now appears in
the on-page dock; tapping it shows both versions and the deploy command.
Longer toasts stay up long enough to read. Document that nothing in the
repository deploys the worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KtBArBFtPSqnpnrUyAopd8
The worker deploys from main through Cloudflare's Git integration, not
by hand, so the warning and docs no longer tell you to run wrangler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KtBArBFtPSqnpnrUyAopd8
@jitdor
jitdor merged commit dccb00b into main Sep 26, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa4d58da91

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

function describeWorkerBehind() {
return `Your sync worker is ${remoteWorkerVersion}, behind this script (${SCRIPT_VERSION}). The worker redeploys from main through Cloudflare, so check its latest build in the Cloudflare dashboard.`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore manual deployment guidance for self-hosted workers

For users who deployed their own worker by following worker/README.md (which instructs them to run npx wrangler deploy), there is no automatic build from main; the inspected GitHub workflows only publish the userscript and run tests. Consequently, this warning sends those users to a nonexistent Cloudflare Git build and omits the command required to update their worker, leaving the version mismatch unresolved. Either retain the Wrangler redeploy instructions or distinguish Git-integrated deployments from manual ones.

Useful? React with 👍 / 👎.

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