MCPcopy Index your code
hub / github.com/coder/coder / currentChatSnapshot

Method currentChatSnapshot

coderd/x/chatd/chatd.go:707–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 7

ensureWorkspaceAgentMethod · 0.95
runChatMethod · 0.95
appendRootChatToolsMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected