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 — Session Todo-list is forgotten after compaction · Issue #5934 · anomalyco/opencode

Session Todo-list is forgotten after compaction #5934

New issue
Copy link
New issue
Copy link
Closed
Closed
Session Todo-list is forgotten after compaction#5934
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@hosseinalipour
hosseinalipour
opened on Dec 22, 2025
Issue body actions

Description

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.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. hosseinalipour
    added
    bugSomething isn't working
    on Dec 22, 2025
  2. github-actions
    assigned
    rekram1-node
    on Dec 22, 2025
  3. github-actions commented on Dec 22, 2025

    @github-actions
    github-actionsBot
    on Dec 22, 2025 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of or related to existing issues. Please check:

    • undo does not undo todo list, resulting in agents continuing on the same path as the undo #4081: undo does not undo todo list, resulting in agents continuing on the same path as the undo (similar todo list state persistence issue)
    • opentui: todo list missing data #3423: opentui: todo list missing data (related todo list data loss)
    • Context size in sidebar not updated after /compact #5760: Context size in sidebar not updated after /compact (compaction-related state issues)

    Feel free to ignore if none of these address your specific case.

  4. tedin7 commented on Dec 23, 2025

    @tedin7
    tedin7
    on Dec 23, 2025
    More actions

    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!

    Reacted by H
  5. gasatrya commented on Dec 31, 2025

    @gasatrya
    gasatrya
    on Dec 31, 2025
    More actions

    I think in your case just the Todo-list, you can set the Compaction prune to false, see this config https://opencode.ai/docs/config/#compaction

  6. rexdotsh commented on Jan 20, 2026

    @rexdotsh
    rexdotsh
    on Jan 20, 2026
    Contributor
    More actions

    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?

    Reacted by Ilya Epifanov
  7. github-actions commented on Mar 26, 2026

    @github-actions
    github-actionsBot
    on Mar 26, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  8. github-actions
    closed this as completedon Mar 26, 2026
  9. dhruvkej9 commented on Apr 1, 2026

    @dhruvkej9
    dhruvkej9
    on Apr 1, 2026
    More actions

    @rekram1-node this is still a issue, reopen it

  10. trajecreate-editions commented on Apr 24, 2026

    @trajecreate-editions
    trajecreate-editions
    on Apr 24, 2026
    More actions

    @rekram1-node this is still a issue, reopen it

    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 ,

    Reacted by Matt Langreder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.