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

Function isMainThreadSource

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

Source from the content-addressed store, hash-verified

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

Callers 2

microcompactMessagesFunction · 0.85
evaluateTimeBasedTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected