fix(regression): preserve subagent session ownership metadata

This commit is contained in:
Tak Hoffman
2026-03-27 20:21:03 -05:00
parent 5eb3ea3028
commit 7fadb4f7ff
5 changed files with 83 additions and 0 deletions

View File

@@ -1194,6 +1194,11 @@ export function buildGatewaySessionRow(params: {
return {
key,
spawnedBy: subagentOwner || entry?.spawnedBy,
spawnedWorkspaceDir: entry?.spawnedWorkspaceDir,
forkedFromParent: entry?.forkedFromParent,
spawnDepth: entry?.spawnDepth,
subagentRole: entry?.subagentRole,
subagentControlScope: entry?.subagentControlScope,
kind: classifySessionKey(key, entry),
label: entry?.label,
displayName,