Repository navigation
Conversation
Member
Author
5 tasks
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.
Closes #250
Intent
AICTRL_DISABLE_PROJECT_CONFIG=truecurrently leaves two automatic instruction paths active: project.opencode/AGENTS.mdand nested instruction files attached by the read tool. Make the flag suppress both paths.Expected Impact on Users
CI operators who set
AICTRL_DISABLE_PROJECT_CONFIG=truestop receiving automatically discovered checkout instructions from.opencode/AGENTS.mdand nested read-time reminders. This makes the flag match the caller's expectation while retaining trusted global/profile and explicitly configured instructions. It reduces unintended repository influence; it does not isolate repository data, credentials or subprocesses.Expected Outcomes
Implementation
Gate the project fallback in
globalFiles()and return before nested discovery inInstructionPrompt.resolve(). Add regression coverage through the actual read tool and document the boundary.Scope Caveat
This controls automatic instruction discovery. Repository content and tool output remain untrusted data; callers still need scoped credentials, permissions and environment isolation. Keep the README deletion workaround until a fixed release is verified.
Test Plan
Verification
Isolated Bun 1.4.3 frozen-lockfile installation; MCP SDK 1.32.1 matches the declaration.
Focused instruction/config/read suites: 123 passed, one existing skip, zero failures; 256 assertions across five files.
bun run typecheckinpackages/cli: passed.Prettier on changed files and
git diff --check: passed.CI
verify— passed at commit24010dc58a7842e962499189cd33add7de5c2c7f(run).CodeQL
Analyze (actions),Analyze (javascript-typescript)and aggregateCodeQL— passed for the same commit (run).Automated review monitoring and released-artifact verification remain separate gates; no release readiness is claimed.