Repository navigation
Conversation
Prevent workspace npm projects and shared-ancestor configuration from choosing the adapter before ACP tool approval. Resolve preinstalled executables outside the workspace, filter their PATH, and use shared nonexecuting interpreter checks for readiness and startup. Keep process startup in NBI's user directory while passing the notebook workspace explicitly to ACP sessions and the MCP workspace tool. Cover path aliases, interpreter lookup, invalid overrides and startup cleanup with regression tests and document installation and trust requirements. BREAKING CHANGE: Experimental ACP no longer installs its adapter through npx at startup. Install the adapter and runtime in trusted locations. NBI_ACP_AGENT_COMMAND must name an absolute installed executable; unset the variable to restore discovery rather than assigning an empty value.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting experimental ACP mode could let files in an opened workspace determine which adapter code runs before an approval prompt. ACP now starts an administrator-installed adapter and reports missing or invalid configuration before startup. Existing ACP users must install the adapter and its runtime before upgrading; ACP remains disabled by default.
Closes #514.
Technical changes
npxstartup with discovery of preinstalledcodex-acpexecutables through absolute serverPATHentries outside the workspace. Check lexical paths, resolved targets and filesystem identities; reject paths that could introduce additional entries when serialized intoPATH.PATH, and share bounded, nonexecuting checks of declared script interpreters between readiness and startup. Keep launch failures inside startup cleanup.PATH.Required migration
Install the tested
@zed-industries/codex-acp@0.16.0and Node.js in trusted locations outside the workspace, then expose the adapter on the server'sPATH. NBI does not verify or update installed versions.Replace package-runner overrides with the absolute path to the installed adapter itself. Unset
NBI_ACP_AGENT_COMMANDto restore discovery; an empty value is invalid. Default filtering also removes workspace tool directories such as.venv/bin, so agent commands may need trusted tools installed elsewhere. The admin guide includes a concrete POSIX installation example and guidance for home-directory workspaces.Validation
On macOS with Python 3.12, after applying the fix to upstream
cfb130130af90b51abd9ae22c4c19783acef7b84:pytest tests/ -q: 2,407 passed; four event-loop teardown warnings.jlpm tsc --noEmit: passed.jlpm lint:check: passed.jlpm jest: 54 suites and 631 tests passed.git diff --check: passed.Limitations