Skip to content

Push finalized checkpoint transcripts to remote on turn end #39

@jcleira

Description

@jcleira

Description

When an agent commits and pushes during a turn, mark the affected sessions so that after transcripts are finalized at turn-end, the checkpoints branch is pushed to the same remote. This closes the gap where a mid-turn push leaves a provisional transcript on the remote while the finalized version (with trailing conversation) stays local only.

Why

Without this, colleagues viewing a checkpoint on the remote see incomplete transcripts — missing the reasoning from later in the same turn. Finalized transcripts pushed at turn-end ensure remote checkpoint data is always complete.

Source

Target Repos

  • cli

Acceptance Criteria

  • When an agent pushes code mid-turn, the session is flagged as 'pushed during turn'
  • At turn-end, after transcripts are finalized, the checkpoints branch is pushed to the remote for flagged sessions
  • The flag is cleared after the push attempt and on new turn start
  • If no push occurred during a turn, no remote checkpoint push happens at turn-end
  • Unit tests cover: flag set on mid-turn push, turn-end push behavior, flag cleared on new turn

Context Hints

  • cmd/
  • internal/

Comment /minion build or add the minion-approved label to begin implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions