Skip to content

docs(debug-tend-run): list main session logs instead of taking the first .jsonl - #1655

Merged
max-sixty merged 1 commit into
mainfrom
fix/debug-tend-run-main-transcript
Nov 7, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/debug-tend-run-main-transcript

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

/install-tend:debug-tend-run picked the session log to parse with find "$DEST" -name '*.jsonl' | head -1, which can land on the wrong file. A Claude artifact also contains every Task subagent's transcript under <session-id>/subagents/ — the layout session_files in token_usage.py already excludes for token accounting — and find lists files in directory order, so a run that used subagents could hand the user a subagent's transcript as "the session". A matrix run (a triage batch) downloads one artifact directory per job, so the first file could also belong to a different job from the one being debugged.

The recipe now lists the main-session files with -not -path '*/subagents/*' and has the reader pick the one for the job in question. It also corrects the "flat JSONL files" description of the Claude artifact.

This is a docs-only change to a user-invoked skill, so there is no regression test; pre-commit (including the install-tend reference sync) and the skill tests pass.

…rst .jsonl

The artifact also holds each Task subagent's transcript under
<session-id>/subagents/, and a matrix run downloads one artifact per job,
so 'find | head -1' could open a subagent's or another job's log.
@max-sixty
max-sixty merged commit 613c326 into main Nov 7, 2026
12 checks passed
@max-sixty
max-sixty deleted the fix/debug-tend-run-main-transcript branch November 7, 2026 06:40
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.

2 participants