Skip to content

[Feat] Add Code Mode toggle in Experimental settings#336

Merged
daniel-lxs merged 1 commit into
developfrom
feature/experimental-code-mode-toggle-2voxv0zxieuhm
Jul 14, 2026
Merged

[Feat] Add Code Mode toggle in Experimental settings#336
daniel-lxs merged 1 commit into
developfrom
feature/experimental-code-mode-toggle-2voxv0zxieuhm

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

Opened on behalf of Daniel Riccio. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

Adds a deployment-level Code Mode toggle under Settings → Experimental. When enabled, task workers inject OPENCODE_EXPERIMENTAL_CODE_MODE=1 into 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

Experimental settings showing Code Mode toggle off with deferred MCP description

Add a deployment experimental flag that enables Code Mode in task runs by
injecting OPENCODE_EXPERIMENTAL_CODE_MODE into the OpenCode runtime env.
@roomote-roomote

roomote-roomote Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

1 issue outstanding. See task

  • apps/worker/src/run-task/run-task.ts:713 The toggle is a no-op with Roomote's default OpenCode CLI. The runtime is pinned to OpenCode 1.17.8, which does not implement CodeMode or read OPENCODE_EXPERIMENTAL_CODE_MODE, so enabling this setting still exposes every MCP schema. Upgrade the default runtime to a CodeMode-capable release (and verify the behavior) before exposing this switch.

Reviewed 9462927

@daniel-lxs
daniel-lxs marked this pull request as ready for review July 14, 2026 19:36
@daniel-lxs
daniel-lxs merged commit e6941c5 into develop Jul 14, 2026
17 checks passed
@daniel-lxs
daniel-lxs deleted the feature/experimental-code-mode-toggle-2voxv0zxieuhm branch July 14, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants