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
- Install OpenCode v1.15.10:
npm i -g opencode-ai@1.15.10
- Configure
"todowrite": "allow" in global or agent permissions
- Start OpenCode in TUI mode:
opencode
- 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.
Problem
The
todowritetool 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
Configuration
Global (
~/.config/opencode/opencode.json)Agent-specific (
planagent - default)Steps to Reproduce
npm i -g opencode-ai@1.15.10"todowrite": "allow"in global or agent permissionsopencodetodowritetool → Error: "Model tried to call unavailable tool 'todowrite'"Expected Behavior
todowriteshould be available as an environment-managed tool, and tasks created via it should appear in the sidebar Todo panel.Actual Behavior
todowriteis NOT in the available tools listtodowritereturns:invalid [tool=todowrite, error=Model tried to call unavailable tool 'todowrite']Additional Context
oh-my-openagent@latest) is installed and providestask_create/task_list/task_updatetools, which work correctlytask_createare persisted to~/.config/opencode/tasks/{project}/but do NOT appear in the sidebartodowrite— searched native binary and source, notodowritereferences foundTodotype andEventTodoUpdatedevent defined, suggesting the todo system exists but the tool is not registeredPlugins
Workaround
Use
task_listto view tasks (OhMyOpenCode), but sidebar Todo panel remains non-functional.