Repository navigation
docs(debug-tend-run): list main session logs instead of taking the first .jsonl - #1655
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/install-tend:debug-tend-runpicked the session log to parse withfind "$DEST" -name '*.jsonl' | head -1, which can land on the wrong file. A Claude artifact also contains everyTasksubagent's transcript under<session-id>/subagents/— the layoutsession_filesintoken_usage.pyalready excludes for token accounting — andfindlists 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.