Skip to content

Todo list lost from system prompt after context condensation #11433

@0xMink

Description

@0xMink

Bug Description

The todo list is currently only visible to the model via ephemeral environment_details content in user messages. After context condensation removes earlier messages, the model loses awareness of outstanding todo items. This can lead to premature task completion — the model believes all work is done because it can no longer see the todo list.

Expected Behavior

The todo list should be included in the system prompt so it survives context condensation and remains visible to the model throughout the entire task lifecycle.

Steps to Reproduce

  1. Start a task with todo items
  2. Generate enough conversation to trigger context condensation
  3. Observe that the model loses awareness of incomplete todo items

Impact

Orchestrator mode is particularly affected — when the model loses visibility into incomplete todos after condensation, it may attempt completion while work remains outstanding.

Metadata

Metadata

Assignees

No one assigned

    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