fix(attach): report resolved agent name in empty-transcript warning · Entire
fix(attach): report resolved agent name in empty-transcript warning
3ddb8fb→main·
computermode·2w ago·1 file·+1 added/-1 removed
The empty-transcript warning printed the raw --agent flag value, but the transcript is parsed from the agent resolved in resolveAgentAndTranscript, which can come from existing session state or auto-detection. When the agent was auto-detected or read from state, the warning pointed the user at the wrong --agent value. Report ag.Name() (the resolved agent's flag-form name) instead.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Sessions
00116e978416View transcript
Changes
1
cmd/entire/cli
Mattach.go+1/-1
286 unmodified lines
287
288
289
290
290
291
292
293
286 unmodified lines
}
meta := extractTranscriptMetadata(transcriptData)
warnEmptyTranscriptMetadata(errW, agentName, meta, opts)
warnEmptyTranscriptMetadata(errW, ag.Name(), meta, opts)
// Determine checkpoint ID: reuse from HEAD if one exists, otherwise generate new.
checkpointID, isExistingCheckpoint := resolveCheckpointID(headCommit)
Mcmd/entire/cli/attach.go+1/-1