Skip to content

Qwen Code /branch copies are learned twice #159

Open

Description

@aayank13

/branch in Qwen Code copies the conversation's records into a new session file, each with forkedFrom set. The parser doesn't look at forkedFrom, so the branch replays the parent's prompts, edits and passing checks and is extracted again as a second session: one piece of work counts twice as evidence. If the copied records keep the parent's sessionId, the branch also takes the parent's session id and their progress collides.

Applies to the agent support in #149.

Files:

  • crates/trodden-capture/src/qwen.rs

Fix idea: skip records with forkedFrom set and take the session id from the branch's own records.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions