continue-custom/FULL_ACCESS_MODE.md
krustophski e0577e8a6b
Some checks are pending
Main Branch Build / republish-pr-artifacts (Linux) (push) Waiting to run
Main Branch Build / republish-pr-artifacts (macOS) (push) Waiting to run
PR Checks / track-rerun (push) Waiting to run
PR Checks / prettier-check (push) Waiting to run
PR Checks / core-checks (push) Waiting to run
PR Checks / gui-checks (push) Waiting to run
PR Checks / binary-checks (push) Waiting to run
PR Checks / vscode-checks (push) Waiting to run
PR Checks / get-packages-matrix (push) Waiting to run
PR Checks / packages-checks (push) Blocked by required conditions
PR Checks / vscode-get-test-file-matrix (push) Waiting to run
PR Checks / vscode-package-extension-linux (push) Waiting to run
PR Checks / unknown () (push) Blocked by required conditions
PR Checks / jetbrains-tests (push) Waiting to run
PR Checks / require-all-checks-to-pass (push) Blocked by required conditions
Submit Gradle Dependency Graph For Dependabot / dependency-submission (push) Waiting to run
chore: package as distinct extension ID, document Full Access mode
Renamed extensions/vscode/package.json's name to
"continue-full-access" (was "continue") so this build installs as
Continue.continue-full-access, a separate VS Code extension entry from
the Marketplace Continue.continue -- prevents a Marketplace auto-update
from silently overwriting this custom build. Fixed the two places that
hardcoded the old "Continue.continue" self-reference
(util/vscode.ts's getExtensionUri, RecentlyVisitedRangesService's
output-channel filter).

Added FULL_ACCESS_MODE.md documenting what the existing Full Access
mode (b275cafed) actually does, its safety trade-off (bypasses the
terminal-security dynamic checker entirely -- an explicit, informed
choice, not an oversight), and build/install steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 03:17:36 +03:00

4.7 KiB

Full Access mode (this fork's reason to exist)

This fork of continuedev/continue exists for one feature: a Full Access toggle in Continue's Tools settings page that auto-approves every tool call — including terminal commands — without asking, similar to Claude Code's auto mode.

What it actually does

  • gui/src/pages/config/sections/ToolsSection.tsx — an "Enable/Disable Full Access" button, backed by fullAccessMode in the ui Redux slice (gui/src/redux/slices/uiSlice.ts), persisted to localStorage.
  • gui/src/redux/thunks/evaluateToolPolicies.ts — when on, forces every tool's resolved policy to allowedWithoutPermission unless it's explicitly disabled (hard-excluded tools stay excluded).
  • core/core.ts's tools/evaluatePolicy handler returns that policy before calling tool.evaluateToolCallPolicy when Full Access is on.

The trade-off — read this before turning it on

Continue's stock runTerminalCommand tool has a dynamic per-call risk check (@continuedev/terminal-security, wired via evaluateToolCallPolicy) that inspects the actual command text and can still block or ask even when the base policy is "Automatic" — it's the one thing standing between "Automatic" and "anything goes." Full Access mode in this fork skips that check entirely. With Full Access on, Continue will run any terminal command an agent turn produces, with no per-command risk classification at all — not "more permissive," fully bypassed.

This was an explicit, informed choice, not an oversight: the trade-off was raised and the decision was made to keep it this way, full bypass, no exceptions. If that ever needs to change, the fix is a one-line guard in core/core.ts's tools/evaluatePolicy handler — move the fullAccessMode early-return to after the tool.evaluateToolCallPolicy call instead of before it, so the dynamic checker still gets a chance to escalate a specific dangerous command back to "ask" even under Full Access.

Distinct extension ID — on purpose

extensions/vscode/package.json's name is continue-full-access, not continue — so this installs as Continue.continue-full-access, a separate entry from the Marketplace Continue.continue. This matters: installing a VSIX under the same ID as the Marketplace extension means VS Code's normal auto-update check would eventually pull the stock version back down over this custom build, silently reverting Full Access mode without any obvious signal that it happened. Two self-referencing lookups had to be updated to match (extensions/vscode/src/util/vscode.ts's getExtensionUri() and RecentlyVisitedRangesService.ts's output-channel filter) — grep for "Continue.continue" (exact string, not continue-full-access) before assuming there aren't more if this is ever renamed again.

Scope (as of 2026-09-25)

Built and installed on this Mac only, manually, alongside the Marketplace Continue extension (both can coexist — code --list-extensions shows both continue.continue and continue.continue-full-access). Not distributed to other machines running Continue.

Build / install

cd continue-custom
./scripts/install-dependencies.sh   # installs everywhere, builds gui, packages the VSIX
# -> extensions/vscode/build/continue-full-access-<version>.vsix

# Install (VS Code must be closed or will prompt to reload):
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" \
  --install-extension extensions/vscode/build/continue-full-access-<version>.vsix

Or via the UI: Extensions view → ... → "Install from VSIX...".

Pinned Node version is 20.20.1 (.nvmrc/.node-version); this was last built with system Node 22.22.3 (nvm wasn't available on this machine at build time) — the build succeeded, but if a future build behaves strangely in a way that doesn't reproduce in upstream Continue's own CI, check the Node version mismatch first.

Verifying it's actually working

  1. Reload VS Code, open Continue's settings → Tools section.
  2. Confirm the "Enable Full Access" button is present and toggles (label and warning-colored alert text change).
  3. With Full Access on: start an agent turn that includes a terminal command and a file edit — both should execute with no approval prompt.
  4. With Full Access off: confirm normal Ask-First behavior returns — this must not change default behavior when disabled.
  5. npm run test in gui/ runs streamResponse_toolCalls.test.ts, which includes a unit test for the Full Access auto-approve path ("should force auto-approval in full access mode") — a passing test here doesn't replace the manual check above, but is a fast regression check for the Redux/thunk wiring.