MCPcopy
hub / github.com/codeaashu/claude-code / isMainThreadSource

Function isMainThreadSource

src/services/compact/microCompact.ts:249–251  ·  view source on GitHub ↗
(querySource: QuerySource | undefined)

Source from the content-addressed store, hash-verified

247// cached-MC `=== 'repl_main_thread'` check was a latent bug — users with a
248// non-default output style were silently excluded from cached MC.
249function isMainThreadSource(querySource: QuerySource | undefined): boolean {
250 return !querySource || querySource.startsWith('repl_main_thread')
251}
252
253export async function microcompactMessages(
254 messages: Message[],

Callers 2

microcompactMessagesFunction · 0.85
evaluateTimeBasedTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected