Files
oh-my-opencode/src/hooks/compaction-context-injector/session-id.ts
T

10 lines
328 B
TypeScript
Raw Normal View History

2026-05-12 11:48:18 +09:00
import { resolveSessionEventID } from "../../shared/event-session-id"
export function isCompactionAgent(agent: string | undefined): boolean {
return agent?.trim().toLowerCase() === "compaction"
}
export function resolveSessionID(props?: Record<string, unknown>): string | undefined {
2026-05-12 11:48:18 +09:00
return resolveSessionEventID(props)
}