()
| 705 | } |
| 706 | |
| 707 | func (c *turnWorkspaceContext) currentChatSnapshot() database.Chat { |
| 708 | c.chatStateMu.Lock() |
| 709 | chatSnapshot := *c.currentChat |
| 710 | c.chatStateMu.Unlock() |
| 711 | return chatSnapshot |
| 712 | } |
| 713 | |
| 714 | func (c *turnWorkspaceContext) selectWorkspace(chat database.Chat) { |
| 715 | c.setCurrentChat(chat) |
no test coverage detected