MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / start

Function start

cli/src/utils/send-message-timer.ts:55–72  ·  view source on GitHub ↗
(messageId: string)

Source from the content-addressed store, hash-verified

53 let timerActive = false
54
55 const start = (messageId: string) => {
56 if (timerActive) {
57 return
58 }
59 timerActive = true
60 timerMessageId = messageId
61 timerStartedAt = now()
62 mainAgentTimer.start()
63 const startEvent: SendMessageTimerEvent = {
64 type: 'start',
65 startedAt: timerStartedAt,
66 messageId,
67 }
68 if (agentId) {
69 startEvent.agentId = agentId
70 }
71 onTimerEvent(startEvent)
72 }
73
74 const stop = (outcome: SendMessageTimerOutcome) => {
75 if (!timerActive || timerStartedAt == null || !timerMessageId) {

Callers 1

LimitedLandingPanelFunction · 0.50

Calls 1

startMethod · 0.45

Tested by

no test coverage detected