Files
orca/src/shared/structured-agent-session-tab-id.ts
T
Neil 89f9ce08de refactor(shared): organize session contracts and projections (#36979)
* refactor(shared): organize session contracts and projections

* chore: tighten dropped-path flaky pattern allowance

* docs: preserve current agent instructions with valid formatting
2026-11-01 03:14:46 -08:00

11 lines
476 B
TypeScript

import { structuredAgentSessionTabId } from './agent-session/view/structured-agent-session-projection'
const STRUCTURED_AGENT_SESSION_TAB_PREFIX = structuredAgentSessionTabId('')
/** The chat session a structured tab id names; null for any other tab. */
export function structuredAgentSessionIdFromTabId(tabId: string): string | null {
return tabId.startsWith(STRUCTURED_AGENT_SESSION_TAB_PREFIX)
? tabId.slice(STRUCTURED_AGENT_SESSION_TAB_PREFIX.length)
: null
}