mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 09:07:40 +00:00
* fix: name Codex subagents from rollout metadata * Hide generic default role in child agent rows * Reject non-regular Codex identity transcripts without blocking
9 lines
401 B
TypeScript
9 lines
401 B
TypeScript
export function codexSubagentPathSegments(agentPath: string | null): string[] {
|
|
return agentPath === null ? [] : agentPath.split('/').filter((part) => part.length > 0)
|
|
}
|
|
|
|
export function codexSubagentPathLabel(agentPath: string | null): string | null {
|
|
const trailing = codexSubagentPathSegments(agentPath).at(-1)?.trim()
|
|
return trailing !== undefined && trailing.length > 0 ? trailing : null
|
|
}
|