Files
orca/src/shared/codex-agent-path.ts
T
Neil c74ff91b85 Show task names for Codex subagents (#32243)
* fix: name Codex subagents from rollout metadata

* Hide generic default role in child agent rows

* Reject non-regular Codex identity transcripts without blocking
2026-10-23 02:16:32 -07:00

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
}