GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(core): make the todo flag opt-in only by rekram1-node · Pull Request #64691 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 18, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The todo flag defaults to on in local and dev builds like every other flag, so anyone on a dev build gets the todowrite tool without asking for it. It should only show up when someone opts in.

This adds todo to optInOnly, next to full_codemode:

before: local/dev build → todowrite on by default
after:  every build     → off unless experimental.todo: true or OPENCODE_FLAGS=todo

OPENCODE_FLAGS=all and experimental.all_flags skip it too, same as full_codemode.

Tested with bun test test/flag.test.ts test/tool-todo.test.ts test/tool-registry.test.ts test/v1-migration.test.ts and typecheck in packages/core and packages/schema.


Added by the opencode bot (AI-generated).

Related: #59259

Public API: experimental.todo / OPENCODE_FLAGS=todo become opt-in only: no longer on by default in local and dev builds and no longer enabled by all / all_flags (release builds unchanged)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
fix(core): make the todo flag opt-in only
af76ea6
@rekram1-node
rekram1-node enabled auto-merge (squash) November 18, 2026 16:07
opencodejr[bot]
opencodejr Bot reviewed Nov 18, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. todo now goes through the existing optInOnly path that full_codemode already uses. I checked Flag.resolve on base and PR: on base, todo was on by default in local and dev builds and OPENCODE_FLAGS=all turned it on. With this PR it is off by default on every channel, all leaves it off, and OPENCODE_FLAGS=todo still enables it. The flag, tool and registry tests pass.

Public API: the config key and env var names don't change. The default of experimental.todo changes in local and dev builds only (on → off), and the experimental.all_flags / OPENCODE_FLAGS=all wildcards no longer include it. The JSON schema description drops the "Defaults to on in local and dev builds" sentence. Release builds behave the same, and setting experimental.todo: true or OPENCODE_FLAGS=todo explicitly still works. Dev users who relied on the default or on all need to opt in explicitly.

No concerns.

Related: #59259

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
test(core): expect todo to stay off on dev without opt-in
342fe8c
opencodejr[bot]
opencodejr Bot reviewed Nov 18, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commit updates the plugin flag test to the new default, which it needed: the old version expected todowrite to be on for a dev-channel server with no config. internal-flag.test.ts and flag.test.ts pass. The public API impact is the same as in my previous review.

One small point inline: the rewritten test now only checks that the tool is absent, so it no longer covers the dev channel or flags reaching the built-in tools.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/core/test/plugin/internal-flag.test.ts

describe("PluginInternal flags", () => {
it.live("turns a flagged built-in tool on for a dev-channel server with no config", () =>
it.live("keeps the opt-in todo tool off for a dev-channel server with no config", () =>

@opencodejr opencodejr Bot Nov 18, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With only a not.toContain check, this test now passes even if the dev channel or flags stop reaching the built-in tool plugins, which is the path it used to cover. Opting in within the same setup (experimental.todo: true, or OPENCODE_FLAGS=todo) and checking that todowrite shows up would keep that covered alongside the new default.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
rekram1-node merged commit af64830 into dev Nov 18, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the todo-opt-in branch November 18, 2026 16:27
This was referenced Nov 18, 2026
feat(core): enable full_codemode by default in dev builds #64761
Merged
fix(core): keep todo opt-in only #64775
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.