Skip to content

feat(security): RQ-2426 — Developer Script Mode toggle + docs#83

Open
dinex-dev wants to merge 3 commits into
masterfrom
feat/RQ-2426-dev-script-mode-ui
Open

feat(security): RQ-2426 — Developer Script Mode toggle + docs#83
dinex-dev wants to merge 3 commits into
masterfrom
feat/RQ-2426-dev-script-mode-ui

Conversation

@dinex-dev

Copy link
Copy Markdown
Member

RQ-2426 — Developer Script Mode toggle + docs (web)

Ticket: RQ-2426 (part of RQ-3555) · PR 3 of 3 (proxy → desktop → web)

What

  • UI: a "Developer script mode" toggle in Desktop Settings — off by default, with a
    confirm dialog on enable. Reads/writes the devScriptMode desktop preference over IPC.
  • Gating: new FEATURES.DEVELOPER_SCRIPT_MODE, pinned in compatibility.js.
  • Docs: new interceptor/desktop-app/developer-script-mode page + nav entry, plus
    cross-links from Modify Request Body / Modify Response Body / Shared State.

⚠️ Action before merge — set the desktop version

compatibility.js currently pins the toggle to a fail-closed placeholder "99.99.99"
(TODO comment). This keeps the toggle hidden on every desktop version, so it's safe to
deploy web independently. Replace it with the RQ-2426 desktop release version (PR 2) so the
toggle appears only on builds that have the devScriptMode handlers + sandboxing proxy.

Backward compatibility

  • Desktop-only: the whole DesktopSettings screen renders only in desktop mode; extension/web
    users are unaffected.
  • With the placeholder (or the real gate), old desktop versions never see the toggle — no
    ghost/non-functional control.

Depends on

requestly-proxy#118 (PR 1) and the desktop PR (PR 2). The web deploy is inert until a
compatible desktop version ships.

🤖 Generated with Claude Code

Web UI + docs for the desktop "Developer Script Mode" (safe QuickJS sandbox by
default vs opt-in full-access for programmatic code rules).

- DesktopSettings: DevScriptMode toggle (off by default, confirm dialog on enable),
  reads/writes the devScriptMode pref over IPC.
- Gated by a new FEATURES.DEVELOPER_SCRIPT_MODE, pinned in compatibility.js to a
  fail-closed placeholder (99.99.99) — replace with the RQ-2426 desktop release so
  the toggle only shows on compatible builds.
- Docs: new interceptor/desktop-app/developer-script-mode page + nav entry, and
  cross-links from Modify Request/Response Body and Shared State pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dinex-dev
dinex-dev marked this pull request as ready for review July 17, 2026 08:46
dinex-dev and others added 2 commits July 17, 2026 14:53
…Mode caption

Matches the rule editor's wording instead of the internal 'code rules' term.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Shows an amber 'Dev script mode' indicator in the desktop header whenever full-access
script execution is enabled, so it can't be silently forgotten. Desktop-only, gated by
FEATURES.DEVELOPER_SCRIPT_MODE; polls the pref so it reflects live toggles.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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