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
Session Todo-list is forgotten after compaction #5934
Session todo lists are lost after compaction. The todo lists should persist across compaction operations but are currently being cleared. (auto compaction only. I don't know if it can be reproduced with /compact command)
Expected behavior:
Todo lists persist across compaction
Actual behavior:
Todo lists are cleared after compaction
opencode version: 1.0.185
model this happened with: Claude Opus 4.5 127k context
Can provide logs if any, I still have the session this problem happened.
Hi! I noticed that after compaction, the model sometimes loses track of todos, probably depends on whether the summary happens to mention them clearly.
I have a small fix (~5 lines) that adds a reminder to the compaction prompt when todos exist, so the summary reliably includes them.
Happy to open a PR if useful, or just share the approach!
Hi! I noticed that after compaction, the model sometimes loses track of todos, probably depends on whether the summary happens to mention them clearly. I have a small fix (~5 lines) that adds a reminder to the compaction prompt when todos exist, so the summary reliably includes them.
Happy to open a PR if useful, or just share the approach!
Hi @tedin7, mind sharing your approach or opening a PR?
Activity
github-actions commentedon Dec 22, 2025
This issue might be a duplicate of or related to existing issues. Please check:
Feel free to ignore if none of these address your specific case.
tedin7 commentedon Dec 23, 2025
Hi! I noticed that after compaction, the model sometimes loses track of todos, probably depends on whether the summary happens to mention them clearly.
I have a small fix (~5 lines) that adds a reminder to the compaction prompt when todos exist, so the summary reliably includes them.
Happy to open a PR if useful, or just share the approach!
gasatrya commentedon Dec 31, 2025
I think in your case just the Todo-list, you can set the Compaction
prunetofalse, see this config https://opencode.ai/docs/config/#compactionrexdotsh commentedon Jan 20, 2026
Hi @tedin7, mind sharing your approach or opening a PR?
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
dhruvkej9 commentedon Apr 1, 2026
@rekram1-node this is still a issue, reopen it
trajecreate-editions commentedon Apr 24, 2026
Yes this is still an issue, As soon as the context is compacted .... the todo is forgotten and remains.... in the the ui above the chat box ,