()
| 230 | state := c.state |
| 231 | c.stateMu.Unlock() |
| 232 | c.ui.MountStateSnapshot(state) |
| 233 | } |
| 234 | |
| 235 | func (c *SessionController) Snapshot() SessionSnapshot { |
| 236 | c.stateMu.Lock() |
| 237 | defer c.stateMu.Unlock() |
| 238 | return SessionSnapshot{ |
| 239 | SessionID: c.id, |
| 240 | Frame: c.ui.Frame, |
| 241 | Busy: c.busy.Load(), |
| 242 | Model: c.cfg.APIModel, |
| 243 | CWD: c.cfg.CWD, |
| 244 | } |
no test coverage detected