Skip to content

Copilot CLI loses todos and edits the wrong plan after forked #4324

Description

@xj-ms

Describe the bug

If Copilot is asked to update the plan and the todo list, it will update the old plan in the forked session and reports the todo list being empty.

This is likely a problem not only for the plan mode, but whenever it needs to edit a file in the session folder.

Affected version

1.0.78

Steps to reproduce the behavior

  1. Ask the agent to create a plan with todos
  2. Fork the session
  3. Ask it to update the plan and todos

Expected behavior

The agent should edit the plan file and the todo list under the new session folder. The todo list should be copied over for the new session

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:context-memoryContext window, memory, compaction, checkpoints, and instruction loadingarea:sessionsSession management, resume, history, session picker, and session state

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions