Skip to content

fix(chat): continuation passes lose the retrieved knowledge and conversation context #20721

Open

Description

@mrveiss

Problem

Found in review on the merge train (PR #20713): _build_continuation_prompt returns the original message, the execution history and instructions, but not the retrieved-knowledge and conversation sections from the first pass. Later passes lose that context. The legacy loop (manager.py) uses the same builder, so both paths are affected. Attachments are re-resolved each pass and aren't lost.

Acceptance criteria

  • The continuation prompt carries the knowledge and conversation sections within the prompt budget, fixed once in the shared builder. Tested on both paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't workingphase:M1.8Knowledge base: upload, web sources and chat retrieval work end to end

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions