MCPcopy Create free account
hub / github.com/diillson/chatcli / GetSessionWorkspace

Function GetSessionWorkspace

cli/agent/session_workspace.go:195–199  ·  view source on GitHub ↗

GetSessionWorkspace returns the active session workspace or nil if InitSessionWorkspace was never called.

()

Source from the content-addressed store, hash-verified

193// GetSessionWorkspace returns the active session workspace or nil if
194// InitSessionWorkspace was never called.
195func GetSessionWorkspace() *SessionWorkspace {
196 sessionWorkspaceMu.RLock()
197 defer sessionWorkspaceMu.RUnlock()
198 return sessionWorkspace
199}
200
201// Cleanup removes the session workspace unless CHATCLI_AGENT_KEEP_TMPDIR=true.
202// Safe to call multiple times.

Calls

no outgoing calls