MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / setForegroundTaskTerminal

Method setForegroundTaskTerminal

agent/task_runtime.go:650–663  ·  view source on GitHub ↗
(record *AgentTaskRecord, status, terminationReason string)

Source from the content-addressed store, hash-verified

648}
649
650func (rt *AgentTaskRuntime) setForegroundTaskTerminal(record *AgentTaskRecord, status, terminationReason string) {
651 if record == nil {
652 return
653 }
654 rt.mu.Lock()
655 defer rt.mu.Unlock()
656 current := rt.records[record.TaskID]
657 if current == nil {
658 return
659 }
660 current.Status = status
661 current.TerminationReason = terminationReason
662 current.UpdatedAt = nowSeconds()
663}
664
665func (rt *AgentTaskRuntime) finishReusableIdle(taskID, result string) {
666 rt.mu.Lock()

Callers 2

FailForegroundTaskMethod · 0.95

Calls 1

nowSecondsFunction · 0.70

Tested by

no test coverage detected