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

Function updateInboxStartState

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

Source from the content-addressed store, hash-verified

263}
264
265function updateInboxStartState(
266 sessionPath: string,
267 thread: ThreadData,
268 reason: RuntimeThreadReason,
269) {
270 if (reason !== 'start') return
271 const latestUserPrompt = getLatestUserPrompt(thread)
272 if (latestUserPrompt || hasInboxItem(sessionPath)) {
273 beginInboxThreadTurn(sessionPath, latestUserPrompt)
274 }
275}
276
277function updateInboxEndState(
278 sessionPath: string,

Callers 1

Calls 3

hasInboxItemFunction · 0.90
beginInboxThreadTurnFunction · 0.90
getLatestUserPromptFunction · 0.70

Tested by

no test coverage detected