(state *agent.AgentState)
| 270 | state := c.state |
| 271 | c.stateMu.Unlock() |
| 272 | c.emitStatus("running", nil) |
| 273 | c.ui.RunSubmitMessage(runCtx, input, state, c.id) |
| 274 | if c.engine.CoreEngine != nil { |
| 275 | c.stateMu.Lock() |
| 276 | c.state = c.engine.CoreEngine.LastState |
| 277 | c.stateMu.Unlock() |
| 278 | } |
| 279 | _ = c.Save() |
| 280 | c.emitStatus("idle", nil) |
| 281 | c.bridge.emitEvent("session.done", c.Snapshot()) |
| 282 | }() |
| 283 | return nil |
| 284 | } |
| 285 |
no test coverage detected