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
Generalizes every step (clone, Node version, build, install, verify, troubleshooting) with the actual command for each OS, so this can be built and installed on a new Windows or Linux machine without re-deriving anything -- including the two real issues hit on the first macOS install (view-ID conflict requiring the Marketplace extension to be uninstalled; fresh-install profile-selection state not carrying over even though ~/.continue/config.yaml itself is shared/global). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
289 lines
13 KiB
Markdown
289 lines
13 KiB
Markdown
# Full Access mode (this fork's reason to exist)
|
|
|
|
This fork of [continuedev/continue](https://github.com/continuedev/continue)
|
|
(`git.4min.pro/post/continue-custom`) 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 own auto mode.
|
|
|
|
This doc is written to be followed on **macOS, Windows, or Linux** — every
|
|
step below has a command for each. If you're setting this up on a new
|
|
machine, follow it top to bottom.
|
|
|
|
## 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.
|
|
|
|
This part of the code is platform-independent (plain TypeScript, no OS
|
|
branching) — building on Windows/Linux does not require re-implementing
|
|
anything, only repeating the packaging steps below with that OS's tools.
|
|
|
|
## 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, on every OS this is installed on. 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, but the two CANNOT run side by side
|
|
|
|
`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.
|
|
|
|
**A distinct extension ID does NOT mean the two can be active at the same
|
|
time.** First real install (macOS, 2026-09-25): both extensions still
|
|
contribute views under the same internal IDs (`continue.continueGUIView`,
|
|
`continue.continueConsoleView`, from `contributes.views` in
|
|
`package.json` — renaming `name` doesn't rename these). With both
|
|
enabled, VS Code logs `Cannot register multiple views with same id
|
|
continue.continueGUIView` and the second one to activate (whichever loads
|
|
later) fails outright — its sidebar panel never renders, so the Full
|
|
Access toggle is invisible, with only a generic "Error activating the
|
|
Continue extension" toast to go on. This is a VS Code contribution-registry
|
|
rule, not OS-specific — the same conflict will happen identically on
|
|
Windows and Linux.
|
|
|
|
**Fix, on every OS: the Marketplace `Continue.continue` must be
|
|
uninstalled** (not just disabled) whenever `Continue.continue-full-access`
|
|
is installed — see the per-OS commands below. Reinstalling the stock
|
|
version later (`code --install-extension Continue.continue`) is one
|
|
command if ever needed back, on any OS.
|
|
|
|
## Scope (as of 2026-09-25)
|
|
|
|
Built and installed on the original Mac first; this doc generalizes the
|
|
same steps for Windows and Linux so it can be built anywhere Continue
|
|
itself runs. The Marketplace Continue extension must be uninstalled on
|
|
each machine this is installed on, per the conflict above.
|
|
|
|
---
|
|
|
|
## Prerequisites (all OSes)
|
|
|
|
- **Git**, with SSH access to `git.4min.pro` (this repo is private —
|
|
`git@192.168.170.41:post/continue-custom.git`, same SSH key mesh used
|
|
for the `home-cluster` repo; see that repo's
|
|
`locations/current-codex-mac.md` § SSH Key Mesh for how the key was set
|
|
up on the original Mac, or generate/register a new key for a new
|
|
machine).
|
|
- **Node.js 20.20.1** (pinned in `.nvmrc`/`.node-version`). Using a
|
|
different major version (this repo has been built successfully with
|
|
system Node 22.22.3 on macOS when `nvm` wasn't available) is a
|
|
documented, accepted risk, not a hard blocker — but prefer the pinned
|
|
version when practical, since that's what upstream Continue's own CI
|
|
builds against.
|
|
- **VS Code** installed, with its `code` CLI available in your shell (VS
|
|
Code: Command Palette → "Shell Command: Install 'code' command in
|
|
PATH" — available on macOS and Linux; on Windows the installer adds it
|
|
to PATH automatically if you tick that option during setup).
|
|
|
|
### Clone
|
|
|
|
```bash
|
|
git clone git@192.168.170.41:post/continue-custom.git
|
|
cd continue-custom
|
|
```
|
|
|
|
Windows users without an SSH agent already running: `ssh-agent`/Git for
|
|
Windows' own Git Bash handles this the same as macOS/Linux; use Git Bash
|
|
for every command below rather than PowerShell/cmd, since the build
|
|
scripts (and the repo's own `.sh` variants) assume a POSIX shell. A native
|
|
`.ps1` variant of the install script exists
|
|
(`scripts/install-dependencies.ps1`, already referenced by
|
|
`.vscode/tasks.json`'s Windows task variant) if you need to stay in
|
|
PowerShell instead of Git Bash.
|
|
|
|
### Node version (optional but recommended)
|
|
|
|
```bash
|
|
# macOS/Linux, if nvm is installed:
|
|
nvm install && nvm use
|
|
|
|
# Windows (nvm-windows, https://github.com/coreybutler/nvm-windows):
|
|
nvm install 20.20.1
|
|
nvm use 20.20.1
|
|
```
|
|
|
|
---
|
|
|
|
## Build
|
|
|
|
Same script, three ways to invoke it depending on shell:
|
|
|
|
```bash
|
|
# macOS / Linux / Windows Git Bash:
|
|
chmod +x scripts/install-dependencies.sh
|
|
./scripts/install-dependencies.sh
|
|
```
|
|
|
|
```powershell
|
|
# Windows PowerShell:
|
|
.\scripts\install-dependencies.ps1
|
|
```
|
|
|
|
This installs dependencies for the root workspace, `core`, `gui`, and
|
|
`extensions/vscode`, builds the `gui` bundle, and finishes by running
|
|
`npm run package` inside `extensions/vscode` — which produces:
|
|
|
|
```
|
|
extensions/vscode/build/continue-full-access-<version>.vsix
|
|
```
|
|
|
|
(`npm run package` is `npx @vscode/vsce package --out ./build
|
|
--no-dependencies` — purely local packaging, nothing is published to any
|
|
registry, on any OS.) It also builds `binary/` (a separate CLI/JetBrains
|
|
packaging target, unrelated to the VS Code extension) and installs
|
|
`docs/` deps — safe to ignore errors from those two steps specifically if
|
|
the `.vsix` above already exists; they don't affect the VS Code extension.
|
|
|
|
Build once per machine's OS+architecture — a `.vsix` built on macOS
|
|
installs fine on Windows/Linux too (VS Code extensions are OS-agnostic in
|
|
general), **except** for any node-pty/native-module rebuild step tied to
|
|
Electron's ABI, which the `install-dependencies` script/`rebuild` npm
|
|
script already accounts for by running on the target machine. In
|
|
practice: build separately on each OS rather than copying one machine's
|
|
`.vsix` to another, to avoid a native-module mismatch.
|
|
|
|
---
|
|
|
|
## Install (uninstall the Marketplace version first, on every OS)
|
|
|
|
```bash
|
|
# macOS (code CLI already in PATH via Shell Command install):
|
|
code --uninstall-extension Continue.continue
|
|
code --install-extension extensions/vscode/build/continue-full-access-<version>.vsix
|
|
|
|
# If `code` isn't in PATH on macOS, use the binary directly:
|
|
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" \
|
|
--uninstall-extension Continue.continue
|
|
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" \
|
|
--install-extension extensions/vscode/build/continue-full-access-<version>.vsix
|
|
```
|
|
|
|
```powershell
|
|
# Windows PowerShell / cmd (code.cmd is on PATH after a normal installer run
|
|
# with "Add to PATH" checked):
|
|
code --uninstall-extension Continue.continue
|
|
code --install-extension extensions\vscode\build\continue-full-access-<version>.vsix
|
|
|
|
# If not on PATH, the default install location is:
|
|
& "$env:LOCALAPPDATA\Programs\Microsoft VS Code\bin\code.cmd" --uninstall-extension Continue.continue
|
|
& "$env:LOCALAPPDATA\Programs\Microsoft VS Code\bin\code.cmd" --install-extension extensions\vscode\build\continue-full-access-<version>.vsix
|
|
```
|
|
|
|
```bash
|
|
# Linux (code on PATH after apt/dnf/snap install):
|
|
code --uninstall-extension Continue.continue
|
|
code --install-extension extensions/vscode/build/continue-full-access-<version>.vsix
|
|
```
|
|
|
|
Or via the UI on any OS: Extensions view → `...` menu → "Install from
|
|
VSIX..." — then separately find "Continue" (the Marketplace one, plain
|
|
name, no "(Full Access)" suffix) in the Extensions list and uninstall it.
|
|
|
|
Reload VS Code after (Command Palette → "Developer: Reload Window") on
|
|
every OS.
|
|
|
|
---
|
|
|
|
## 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, and is OS-independent (Vitest, no
|
|
native code).
|
|
|
|
---
|
|
|
|
## Troubleshooting
|
|
|
|
### "Error activating the Continue extension" / no Full Access button visible
|
|
|
|
This is the view-ID conflict described above — the Marketplace `Continue`
|
|
extension is still installed and enabled alongside this one. Check with:
|
|
|
|
```bash
|
|
code --list-extensions --show-versions | grep -i continue
|
|
```
|
|
|
|
If both `continue.continue` and `continue.continue-full-access` are
|
|
listed, uninstall the first one (commands above) and reload.
|
|
|
|
To confirm this is really the cause before/after fixing it, check VS
|
|
Code's extension host / renderer logs for the exact error
|
|
(`Cannot register multiple views with same id`):
|
|
|
|
| OS | Logs location |
|
|
| ------- | -------------------------------------------------------------- |
|
|
| macOS | `~/Library/Application Support/Code/logs/<timestamp>/window*/` |
|
|
| Windows | `%APPDATA%\Code\logs\<timestamp>\window*\` |
|
|
| Linux | `~/.config/Code/logs/<timestamp>/window*/` |
|
|
|
|
`renderer.log` in the latest timestamped folder is where the
|
|
`[Continue.continue-full-access]: Cannot register multiple views...`
|
|
line actually shows up (not `exthost.log`, which only logs activation
|
|
attempts, not this particular failure).
|
|
|
|
### Models don't show up after a fresh install
|
|
|
|
`~/.continue/config.yaml` (or the OS equivalent —
|
|
`%USERPROFILE%\.continue\config.yaml` on Windows, same `~/.continue/` path
|
|
on Linux) is **shared/global**, independent of which VS Code extension ID
|
|
loads it — uninstalling/reinstalling either Continue variant does not
|
|
touch or lose this file. If models aren't showing after installing this
|
|
build fresh on a new machine:
|
|
|
|
1. First confirm the config file itself has your models defined
|
|
(`cat ~/.continue/config.yaml` / `type %USERPROFILE%\.continue\config.yaml`).
|
|
2. If it does, check the assistant/profile picker at the top of Continue's
|
|
chat panel (next to the model dropdown) — a brand-new extension
|
|
identity has no saved "last selected profile" state (VS Code keeps that
|
|
per-extension-ID, separately from `~/.continue/`), so it can default to
|
|
a different (e.g. Hub-based) profile instead of your local
|
|
`Main Config`. Select the local one explicitly.
|
|
3. This resolved itself on the original Mac install after a reload once
|
|
the view-ID conflict above was also fixed — if models still don't
|
|
appear after selecting the right profile, check the Extension Host log
|
|
for `Errors loading config` entries (a non-fatal MCP server connection
|
|
failure, e.g. to an unrelated local MCP server, will still show as an
|
|
error line but does not block the model list itself).
|