返回 DeepSeek-Reasonix
session_legacy_display.go
根目录 / internal / store / session_legacy_display.go
1 package store
2
3 import (
4 "path/filepath"
5 "strings"
6 )
7
8 // Legacy display maps are directory-scoped compatibility artifacts. Session
9 // deletion edits the matching map entry rather than deleting other sessions.
10 func SessionLegacyDisplays(dir string) string {
11 if strings.TrimSpace(dir) == "" {
12 return ""
13 }
14 return filepath.Join(dir, ".display.json")
15 }
16
17 func SessionLegacyPlannerDisplays(dir string) string {
18 if strings.TrimSpace(dir) == "" {
19 return ""
20 }
21 return filepath.Join(dir, ".planner-display.json")
22 }
23
23 lines GO