Skip to content

todowrite tool not registered in v1.15.10 despite permission configuration #29118

@sacrtap

Description

@sacrtap

Problem

The todowrite tool is listed as "environment-managed" in the system prompt but is NOT available in the tool list when running OpenCode v1.15.10 in TUI mode. This prevents the sidebar Todo panel from displaying tasks.

Environment

  • OpenCode version: 1.15.10
  • OS: Darwin 24.6.0 x64
  • Terminal: zed 1.3.6+stable / xterm-256color
  • Mode: TUI (confirmed)

Configuration

Global (~/.config/opencode/opencode.json)

"permission": {
  "todowrite": "allow",
  "read": "allow",
  "edit": "ask",
  "write": "ask",
  "bash": "allow"
}

Agent-specific (plan agent - default)

"plan": {
  "permission": {
    "bash": "allow",
    "edit": "ask",
    "write": "ask",
    "todowrite": "allow"
  }
}

Steps to Reproduce

  1. Install OpenCode v1.15.10: npm i -g opencode-ai@1.15.10
  2. Configure "todowrite": "allow" in global or agent permissions
  3. Start OpenCode in TUI mode: opencode
  4. Try to use todowrite tool → Error: "Model tried to call unavailable tool 'todowrite'"

Expected Behavior

todowrite should be available as an environment-managed tool, and tasks created via it should appear in the sidebar Todo panel.

Actual Behavior

  • todowrite is NOT in the available tools list
  • Calling todowrite returns: invalid [tool=todowrite, error=Model tried to call unavailable tool 'todowrite']
  • Sidebar Todo panel does not show tasks

Additional Context

  • OhMyOpenCode (oh-my-openagent@latest) is installed and provides task_create/task_list/task_update tools, which work correctly
  • Tasks created via task_create are persisted to ~/.config/opencode/tasks/{project}/ but do NOT appear in the sidebar
  • Confirmed: OhMyOpenCode does NOT interfere with todowrite — searched native binary and source, no todowrite references found
  • SDK has Todo type and EventTodoUpdated event defined, suggesting the todo system exists but the tool is not registered

Plugins

- opencode-vibeguard@0.1.0
- @franlol/opencode-md-table-formatter@0.0.6
- @slkiser/opencode-quota@3.8.7
- @mohak34/opencode-notifier@0.2.5
- opencode-scheduler@1.3.0
- context-mode@1.0.141
- opencode-wakatime@1.3.8
- plugins/rtk.ts
- plugins/openviking-memory.ts
- @tarquinen/opencode-dcp@^3.1.12
- oh-my-openagent@latest

Workaround

Use task_list to view tasks (OhMyOpenCode), but sidebar Todo panel remains non-functional.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions