You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
todowrite state persists across sessions after deleting Local Storage/leveldb #36401
Since updating OpenCode to the latest version (v1.17.18), the todowrite tool displays stale task items from previous conversations. After restarting OpenCode, the same old todo list reappears with incorrect completion counts (e.g., "3 de 6 completados") even when there are no active tasks. This did NOT happen before the update.
Steps to Reproduce
Use todowrite in a conversation (creates some tasks)
Close OpenCode
Delete the following folders:
%APPDATA%\ai.opencode.desktop\Local Storage
%APPDATA%\ai.opencode.desktop\Session Storage
%APPDATA%\ai.opencode.desktop\blob_storage
%APPDATA%\ai.opencode.desktop\Cache
Restart OpenCode
Start a new session in the same project workspace
The old stale todowrite items still appear with incorrect counters
Expected Behavior
Deleting local app data (Local Storage, Session Storage, blob_storage, Cache) and restarting should result in a fresh state with no stale todowrite items.
Actual Behavior
The stale todowrite items persist despite clearing all local storage directories.
Environment
OpenCode version: 1.17.18 (latest)
Platform: Windows 10
Model: big-pickle
Additional info: The same session ID (ses_0c5403cf1ffe18TZOJSthEdKAG) is restored even after clearing all app data directories. Todo state appears to be restored from somewhere outside the standard Local Storage / IndexedDB locations.
Additional Context
The file opencode.global.dat contains a sessionView entry that references todoCollapsed:false, suggesting the session restore mechanism may re-hydrate todowrite state from the conversation history or from an external source not cleared by deleting Local Storage. This behaviour started after updating to v1.17.18.
Plugins
None
OpenCode version
latest
Steps to reproduce
Use todowrite in a conversation (creates some tasks)
Close OpenCode
Delete the following folders:
%APPDATA%\ai.opencode.desktop\Local Storage
%APPDATA%\ai.opencode.desktop\Session Storage
%APPDATA%\ai.opencode.desktop\blob_storage
%APPDATA%\ai.opencode.desktop\Cache
Restart OpenCode
Start a new session in the same project workspace
The old stale todowrite items still appear with incorrect counters
Activity
github-actions commentedon Sep 10, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.