Skip to content

feat(widget): two-step install with a lazy signing secret - #538

Merged
mortondev merged 3 commits into
mainfrom
feat/widget-install-two-step
Sep 10, 2026
Merged

feat(widget): two-step install with a lazy signing secret#538
mortondev merged 3 commits into
mainfrom
feat/widget-install-two-step

Conversation

@mortondev

Copy link
Copy Markdown
Member

Summary

  • Split widget install into launcher first, optional identify second, with a copy/reveal/regenerate signing secret on the install page.
  • Mint settings.widget_secret lazily on the admin fetch (not workspace create). Public identify stays read-only.
  • Stop telling Cloud and self-host users to set QUACKBACK_WIDGET_SECRET on Quackback. Same path for both.

Test plan

  • Open Admin → Settings → Widget → Install on a workspace with no secret; a wgt_ secret appears.
  • Copy the launcher snippet (identify off). Launcher works without a host-app secret.
  • Reveal, copy, and regenerate the secret. Confirm dialog warns identify breaks; launcher does not.
  • Turn on “Include identify…” and confirm the snippet/agent prompt mention identify and the secret, for a local agent only.
  • Two admins opening Install at once still share one secret.

Made with Cursor

Cloud and self-host users were stuck looking for QUACKBACK_WIDGET_SECRET. Mint the secret on first admin fetch, put the launcher first, and keep regenerate on the install page.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Critic pass: launcher prompt forbids QUACKBACK_WIDGET_SECRET, Show on your website lives on the install page, regenerate writes the new secret into cache, and async confirm stays open until the rotate finishes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mortondev

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Keep async ConfirmDialog submits single-shot, toast when the site toggle fails, and stop sending detected installs to another settings page.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mortondev
mortondev merged commit 1f795b0 into main Sep 10, 2026
15 checks 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.

1 participant