Import apps/android/src/lib/session-kind.ts
This commit is contained in:
parent
5ce32906ef
commit
54bf1c7e13
|
|
@ -0,0 +1,6 @@
|
|||
import type { RemoteSession } from '../types'
|
||||
|
||||
/** Forks also carry parentSessionId; only the explicit origin selects subagent routing. */
|
||||
export function isSubagentSession(session: RemoteSession): session is RemoteSession & { origin: 'subagent'; parentSessionId: string } {
|
||||
return session.origin === 'subagent' && session.parentSessionId !== undefined
|
||||
}
|
||||
Loading…
Reference in New Issue