You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): record AI sessions for edits in git worktrees (PFM-7412)
An agent runs its hooks from the directory where the session started.
When the agent edited a file in a linked git worktree, trace recorded the
edit in the state of the main checkout. The git hooks of the worktree read
only the state of the worktree. So the commits in the worktree did not get
the session, and pre-push sent no attestation.
Record each file edit in the state of the checkout that owns the file.
Save the working directory of the agent in the session record. Use it to
find the session transcript from any worktree.
Assisted-by: Claude Code
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
Chainloop-Trace-Sessions: 1a5dee29-1a25-49e8-8e20-17ebb61dde56
0 commit comments