[Feat] Add Code Mode toggle in Experimental settings#336
Merged
daniel-lxs merged 1 commit intoJul 14, 2026
Conversation
Add a deployment experimental flag that enables Code Mode in task runs by injecting OPENCODE_EXPERIMENTAL_CODE_MODE into the OpenCode runtime env.
Contributor
Author
|
1 issue outstanding. See task
Reviewed 9462927 |
daniel-lxs
marked this pull request as ready for review
July 14, 2026 19:36
daniel-lxs
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
July 14, 2026 19:36
daniel-lxs
deleted the
feature/experimental-code-mode-toggle-2voxv0zxieuhm
branch
July 14, 2026 19:37
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.
What changed
Adds a deployment-level Code Mode toggle under Settings → Experimental. When enabled, task workers inject
OPENCODE_EXPERIMENTAL_CODE_MODE=1into the OpenCode runtime env so MCP tools can be deferred behind OpenCode CodeMode (search/execute) instead of always listing every MCP schema.Why this change was made
Admin teams wanted a Roomote app control to enable OpenCode’s experimental CodeMode path (for reducing rarely-used MCP tool context) without hand-editing environment YAML or shell env vars on every host.
Impact
Admins see a new Experimental Code Mode switch (off by default). Enabling it applies to subsequent task runs on the deployment by setting the OpenCode CodeMode runtime flag.
Screenshots