fix: satisfy strict typecheck for catalog source guard and imported message cast

This commit is contained in:
Peter Steinberger
2026-07-11 13:51:41 -07:00
parent d1fa494e4b
commit 48416d323f
2 changed files with 2 additions and 2 deletions

View File

@@ -1310,7 +1310,7 @@ async function importClaudeHistory(params: {
const message = {
...(importedClaudeMessage(item, Date.now() + index) as unknown as Record<string, unknown>),
idempotencyKey: `claude-catalog:${params.threadId}:${item.uuid ?? index}`,
} as AgentMessage;
} as unknown as AgentMessage;
await transcript.appendMessage({
message,
idempotencyLookup: "scan",

View File

@@ -362,7 +362,7 @@ function boundedCatalogString(
type CodexInteractiveThreadSourceKind = (typeof CODEX_INTERACTIVE_THREAD_SOURCE_KINDS)[number];
function isInteractiveThreadSource(
source: string | null | undefined,
source: CodexThread["source"] | string | null | undefined,
): source is CodexInteractiveThreadSourceKind {
return CODEX_INTERACTIVE_THREAD_SOURCE_KINDS.some((kind) => kind === source);
}