Display Subagent Events

Nucleic-Session: C0D404BC-7C32-4ECC-9F1E-3426BFE53298
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-07 22:43:31 -07:00
co-authored by Nucleic
parent ebed9a8b28
commit 43443f561e
@@ -347,6 +347,12 @@ enum TranscriptProjection {
return change.toolCallID.flatMap { parentOf[$0] }
case .assistantText(let chunk), .thinking(let chunk):
return chunk.parentToolCallID
case .note(let note):
// A lock/nvrsion note tagged with the edit it brackets inherits that edit's subagent
// scope — like a `.toolResult`/`.fileChange` — so a subagent's lock-acquire or
// nvrsion-land note nests in its card instead of leaking to the main transcript. An
// untagged note (a turn-end release, a user git note) has no owner.
return note.toolCallID.flatMap { parentOf[$0] }
default:
return nil
}