Skip to content

[minion] Retry session capture in git hooks when data not yet available#18

Open
jcleira wants to merge 1 commit intomainfrom
minion/retry-hook-session-capture
Open

[minion] Retry session capture in git hooks when data not yet available#18
jcleira wants to merge 1 commit intomainfrom
minion/retry-hook-session-capture

Conversation

@jcleira
Copy link
Member

@jcleira jcleira commented Mar 18, 2026

Objective

When the git hook fires (e.g., post-commit), the AI session log or checkpoint data may not be fully flushed to disk yet. Implement a retry loop in the hook execution path that waits and re-attempts reading session data for a short window (e.g., up to 2-3 seconds with exponential backoff) before giving up or proceeding without it.

Why

Race conditions between the hook firing and session data being written can cause checkpoints to be silently dropped, leading to incomplete attribution. Retrying ensures session data is captured even when the agent writes it slightly after the commit hook fires.


Automated PR by partio-io/minions · Task: retry-hook-session-capture

Created by an unattended coding agent. Please review carefully.

Automated by partio-io/minions (task: retry-hook-session-capture)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant