Skip to content

feat(cli): default checkpoint path from AGENT_HANDOVER_CHECKPOINT - #13

Open
AnayGarodia wants to merge 1 commit into
hikari716:mainfrom
AnayGarodia:feat/checkpoint-env-default
Open

feat(cli): default checkpoint path from AGENT_HANDOVER_CHECKPOINT#13
AnayGarodia wants to merge 1 commit into
hikari716:mainfrom
AnayGarodia:feat/checkpoint-env-default

Conversation

@AnayGarodia

Copy link
Copy Markdown

Summary

  • when --checkpoint is not given, fall back to $AGENT_HANDOVER_CHECKPOINT, then the current default; precedence is --checkpoint > $AGENT_HANDOVER_CHECKPOINT > default
  • applies to check, status, and run; for run the env var takes the place of the absent --checkpoint flag, so it beats [handover].checkpoint like any other CLI override (the env var is per-agent/worktree while the TOML is shared in the repo — happy to flip that precedence if you'd rather the config file win)
  • the env var is read at invocation time, not import time
  • README documents the env var and the precedence

Verification

  • python -m pip install -e .
  • python -m pytest -q (58 passed)
  • new tests cover: flag overrides env var, env var used when flag absent, built-in default when neither is set, and env var vs [handover].checkpoint on run

Closes #6

Generated with Claude Code

https://claude.ai/code/session_019cFhMyHwVAQ9GieYbi3aUb

When --checkpoint is not given, fall back to the AGENT_HANDOVER_CHECKPOINT
environment variable, then the current default. Precedence:
--checkpoint > $AGENT_HANDOVER_CHECKPOINT > default.

Closes hikari716#6

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019cFhMyHwVAQ9GieYbi3aUb
Copilot AI review requested due to automatic review settings July 29, 2026 19:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default the checkpoint path from $AGENT_HANDOVER_CHECKPOINT

2 participants