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

Method DiscardForegroundTask

agent/task_runtime.go:289–294  ·  view source on GitHub ↗
(taskID string)

Source from the content-addressed store, hash-verified

287 return record
288}
289
290func (rt *AgentTaskRuntime) CompleteForegroundTask(record *AgentTaskRecord, terminationReason string) {
291 rt.setForegroundTaskTerminal(record, "completed", terminationReason)
292}
293
294func (rt *AgentTaskRuntime) FailForegroundTask(record *AgentTaskRecord, terminationReason string) {
295 rt.setForegroundTaskTerminal(record, "failed", terminationReason)
296}
297

Calls 2