MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / updateThreadRunningState

Function updateThreadRunningState

desktop/runtime/thread-publisher.ts:252–263  ·  view source on GitHub ↗
(
  sessionPath: string,
  thread: ThreadData,
  reason: RuntimeThreadReason,
)

Source from the content-addressed store, hash-verified

250}
251
252function updateThreadRunningState(
253 sessionPath: string,
254 thread: ThreadData,
255 reason: RuntimeThreadReason,
256) {
257 setThreadRunningState(
258 sessionPath,
259 reason === 'update' ||
260 reason === 'compaction-start' ||
261 (reason === 'start' && thread.messages.length > 0),
262 )
263}
264
265function updateInboxStartState(
266 sessionPath: string,

Callers 1

Calls 1

setThreadRunningStateFunction · 0.90

Tested by

no test coverage detected