Import apps/android/src/lib/session-kind.ts

This commit is contained in:
QQ 2026-11-14 14:10:45 +08:00
parent 5ce32906ef
commit 54bf1c7e13
1 changed files with 6 additions and 0 deletions

View File

@ -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
}