(sessionID string)
| 660 | } |
| 661 | |
| 662 | func (e *forkedMemoryExtractor) workspaceRoot(sessionID string) string { |
| 663 | if e == nil || e.workspaceRoots == nil { |
| 664 | return "" |
| 665 | } |
| 666 | defer e.workspaceRoots.Delete(sessionID) |
| 667 | value, ok := e.workspaceRoots.Load(sessionID) |
| 668 | if !ok { |
| 669 | return "" |
| 670 | } |
| 671 | root, ok := value.(string) |
| 672 | if !ok { |
| 673 | return "" |
| 674 | } |
| 675 | return strings.TrimSpace(root) |
| 676 | } |
| 677 | |
| 678 | func (e *forkedMemoryExtractor) nowUTC() time.Time { |
| 679 | if e != nil && e.now != nil { |