Skip to content

Agent Runtime: Rollout file writes duplicate base.instruction entries #142

Description

@wangtsiao

Describe the bug

The rollout (JSONL session file) is writing duplicate base.instruction entries. Each turn or event cycle writes the base instruction to the rollout file again, even though it only needs to appear once (or at most, once per session).

Current behavior

Looking at the rollout files, base.instruction appears multiple times — it seems to be written on every turn initialization rather than once at session creation.

Impact

  • Bloated rollout files
  • Redundant data that makes replay slower
  • Inefficient storage usage

Expected behavior

The base.instruction should be written only once when the session is created, not duplicated on each turn.

Where to look

  • crates/core/src/conversation/records.rs — rollout record writing
  • Session initialization flow
  • Turn initialization flow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions