(data: SubagentData, sessionID: string)
| 61 | } |
| 62 | |
| 63 | function ensureDetail(data: SubagentData, sessionID: string) { |
| 64 | const current = data.details.get(sessionID) |
| 65 | if (current) { |
| 66 | return current |
| 67 | } |
| 68 | |
| 69 | const next = createDetail(sessionID) |
| 70 | data.details.set(sessionID, next) |
| 71 | return next |
| 72 | } |
| 73 | |
| 74 | export function sameSubagentTab(a: FooterSubagentTab | undefined, b: FooterSubagentTab | undefined) { |
| 75 | if (!a || !b) { |
no test coverage detected