docs: make FULL_ACCESS_MODE.md cross-platform (macOS/Windows/Linux)
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
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>
This commit is contained in:
parent
38318c66df
commit
1618baf72c
1 changed files with 208 additions and 35 deletions
|
|
@ -1,9 +1,14 @@
|
||||||
# Full Access mode (this fork's reason to exist)
|
# Full Access mode (this fork's reason to exist)
|
||||||
|
|
||||||
This fork of [continuedev/continue](https://github.com/continuedev/continue)
|
This fork of [continuedev/continue](https://github.com/continuedev/continue)
|
||||||
exists for one feature: a **Full Access** toggle in Continue's Tools
|
(`git.4min.pro/post/continue-custom`) exists for one feature: a **Full
|
||||||
settings page that auto-approves every tool call — including terminal
|
Access** toggle in Continue's Tools settings page that auto-approves every
|
||||||
commands — without asking, similar to Claude Code's auto mode.
|
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
|
## What it actually does
|
||||||
|
|
||||||
|
|
@ -16,6 +21,10 @@ commands — without asking, similar to Claude Code's auto mode.
|
||||||
- `core/core.ts`'s `tools/evaluatePolicy` handler returns that policy
|
- `core/core.ts`'s `tools/evaluatePolicy` handler returns that policy
|
||||||
**before** calling `tool.evaluateToolCallPolicy` when Full Access is on.
|
**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
|
## The trade-off — read this before turning it on
|
||||||
|
|
||||||
Continue's stock `runTerminalCommand` tool has a _dynamic_ per-call risk
|
Continue's stock `runTerminalCommand` tool has a _dynamic_ per-call risk
|
||||||
|
|
@ -30,11 +39,12 @@ bypassed.
|
||||||
|
|
||||||
This was an explicit, informed choice, not an oversight: the trade-off was
|
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
|
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
|
exceptions, on every OS this is installed on. If that ever needs to
|
||||||
`core/core.ts`'s `tools/evaluatePolicy` handler — move the `fullAccessMode`
|
change, the fix is a one-line guard in `core/core.ts`'s
|
||||||
early-return to _after_ the `tool.evaluateToolCallPolicy` call instead of
|
`tools/evaluatePolicy` handler — move the `fullAccessMode` early-return to
|
||||||
before it, so the dynamic checker still gets a chance to escalate a
|
_after_ the `tool.evaluateToolCallPolicy` call instead of before it, so
|
||||||
specific dangerous command back to "ask" even under Full Access.
|
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
|
## Distinct extension ID — on purpose, but the two CANNOT run side by side
|
||||||
|
|
||||||
|
|
@ -52,7 +62,7 @@ lookups had to be updated to match
|
||||||
assuming there aren't more if this is ever renamed again.
|
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
|
**A distinct extension ID does NOT mean the two can be active at the same
|
||||||
time.** Found 2026-09-25, first real install: both extensions still
|
time.** First real install (macOS, 2026-09-25): both extensions still
|
||||||
contribute views under the same internal IDs (`continue.continueGUIView`,
|
contribute views under the same internal IDs (`continue.continueGUIView`,
|
||||||
`continue.continueConsoleView`, from `contributes.views` in
|
`continue.continueConsoleView`, from `contributes.views` in
|
||||||
`package.json` — renaming `name` doesn't rename these). With both
|
`package.json` — renaming `name` doesn't rename these). With both
|
||||||
|
|
@ -60,45 +70,152 @@ enabled, VS Code logs `Cannot register multiple views with same id
|
||||||
continue.continueGUIView` and the second one to activate (whichever loads
|
continue.continueGUIView` and the second one to activate (whichever loads
|
||||||
later) fails outright — its sidebar panel never renders, so the Full
|
later) fails outright — its sidebar panel never renders, so the Full
|
||||||
Access toggle is invisible, with only a generic "Error activating the
|
Access toggle is invisible, with only a generic "Error activating the
|
||||||
Continue extension" toast to go on. Fix: **the Marketplace `Continue.continue`
|
Continue extension" toast to go on. This is a VS Code contribution-registry
|
||||||
must be uninstalled** (not just disabled — disabling didn't reliably
|
rule, not OS-specific — the same conflict will happen identically on
|
||||||
prevent the same conflict in the one test done here) whenever
|
Windows and Linux.
|
||||||
`Continue.continue-full-access` is installed:
|
|
||||||
|
|
||||||
```bash
|
**Fix, on every OS: the Marketplace `Continue.continue` must be
|
||||||
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" \
|
uninstalled** (not just disabled) whenever `Continue.continue-full-access`
|
||||||
--uninstall-extension Continue.continue
|
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.
|
||||||
Reinstalling the stock version later (`code --install-extension
|
|
||||||
Continue.continue`) is one command if ever needed back.
|
|
||||||
|
|
||||||
## Scope (as of 2026-09-25)
|
## Scope (as of 2026-09-25)
|
||||||
|
|
||||||
Built and installed on this Mac only, manually. The Marketplace Continue
|
Built and installed on the original Mac first; this doc generalizes the
|
||||||
extension was uninstalled here specifically because of the view-ID
|
same steps for Windows and Linux so it can be built anywhere Continue
|
||||||
conflict above — this is not optional coexistence, it's required. Not
|
itself runs. The Marketplace Continue extension must be uninstalled on
|
||||||
distributed to other machines running Continue.
|
each machine this is installed on, per the conflict above.
|
||||||
|
|
||||||
## Build / install
|
---
|
||||||
|
|
||||||
|
## 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
|
```bash
|
||||||
|
git clone git@192.168.170.41:post/continue-custom.git
|
||||||
cd continue-custom
|
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):
|
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" \
|
"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" \
|
||||||
--install-extension extensions/vscode/build/continue-full-access-<version>.vsix
|
--install-extension extensions/vscode/build/continue-full-access-<version>.vsix
|
||||||
```
|
```
|
||||||
|
|
||||||
Or via the UI: Extensions view → `...` → "Install from 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
|
||||||
|
|
||||||
Pinned Node version is `20.20.1` (`.nvmrc`/`.node-version`); this was last
|
# If not on PATH, the default install location is:
|
||||||
built with system Node `22.22.3` (`nvm` wasn't available on this machine
|
& "$env:LOCALAPPDATA\Programs\Microsoft VS Code\bin\code.cmd" --uninstall-extension Continue.continue
|
||||||
at build time) — the build succeeded, but if a future build behaves
|
& "$env:LOCALAPPDATA\Programs\Microsoft VS Code\bin\code.cmd" --install-extension extensions\vscode\build\continue-full-access-<version>.vsix
|
||||||
strangely in a way that doesn't reproduce in upstream Continue's own CI,
|
```
|
||||||
check the Node version mismatch first.
|
|
||||||
|
```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
|
## Verifying it's actually working
|
||||||
|
|
||||||
|
|
@ -113,4 +230,60 @@ check the Node version mismatch first.
|
||||||
which includes a unit test for the Full Access auto-approve path
|
which includes a unit test for the Full Access auto-approve path
|
||||||
(`"should force auto-approval in full access mode"`) — a passing test
|
(`"should force auto-approval in full access mode"`) — a passing test
|
||||||
here doesn't replace the manual check above, but is a fast regression
|
here doesn't replace the manual check above, but is a fast regression
|
||||||
check for the Redux/thunk wiring.
|
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).
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue