Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"

- name: Build
run: go build ./...
Expand Down
3 changes: 3 additions & 0 deletions cmd/cc-session/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,9 @@ func TestLogUsageAsync_GivenCallerSession_ThenWritesToLog(t *testing.T) {
if err != nil {
t.Fatalf("os.Getwd: %v", err)
}
if resolved, err := filepath.EvalSymlinks(cwd); err == nil {
cwd = resolved
}
projectDir := filepath.Join(root, ".claude", "projects", strings.ReplaceAll(cwd, "/", "-"))
if err := os.MkdirAll(projectDir, 0o755); err != nil {
t.Fatalf("MkdirAll: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion internal/summarizer/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func cleanPath(path string, cwd string) string {
}
if cwd != "" {
if rel, err := filepath.Rel(cwd, path); err == nil && !strings.HasPrefix(rel, "..") {
return rel
return filepath.ToSlash(rel)
}
}
parts := strings.Split(filepath.ToSlash(path), "/")
Expand Down
3 changes: 3 additions & 0 deletions internal/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func DetectCallerSession(cwd string) string {
// DetectCallerSessionWithBase is the testable variant of DetectCallerSession
// that accepts an explicit projectsDir.
func DetectCallerSessionWithBase(cwd string, projectsDir string) string {
if resolved, err := filepath.EvalSymlinks(cwd); err == nil {
cwd = resolved
}
// Claude Code maps an absolute path to a project dir by replacing every
// "/" with "-", e.g. /Users/maple/Desktop -> -Users-maple-Desktop.
projectDir := filepath.Join(projectsDir, strings.ReplaceAll(cwd, "/", "-"))
Expand Down
Loading