GetSessionWorkspace returns the active session workspace or nil if InitSessionWorkspace was never called.
()
| 193 | // GetSessionWorkspace returns the active session workspace or nil if |
| 194 | // InitSessionWorkspace was never called. |
| 195 | func 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. |
no outgoing calls