fix: save full Claude session log on no_push for debugging #49
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When the dev-agent fails with
no_push, there is no way to see what the model actually did — which files it read, what tool calls it made, what thinking traces it produced. Debugging requires manually finding the session JSONL in the Claude config dir, which gets cleaned up with the worktree.Current state
We added
agent-run-last.jsonoutput capture (the final result JSON). But this only shows the last turn's result text, not the full conversation — no tool calls, no thinking, no intermediate steps.Fix
On
no_push, before cleaning up the worktree, copy the full session JSONL to a persistent location:In
dev/dev-agent.sh, in the no_push handler:This gives full visibility: every Read, Edit, Bash call, every thinking trace, every text response.
Also consider
Affected files
dev/dev-agent.sh— no_push handler