Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix: remove highwatermark fallback, use todos JSON as sole task source

libokai0923db1ab1d8
diff --git a/CodePulse-macOS/Services/SessionFileParser.swift b/CodePulse-macOS/Services/SessionFileParser.swift
index 9eef5dd8..a0e606bf 100644
--- a/CodePulse-macOS/Services/SessionFileParser.swift
+++ b/CodePulse-macOS/Services/SessionFileParser.swift
@@ -45,20 +45,7 @@ enum SessionFileParser {
}
static func parseTasks(sessionId: String) -> [TaskItem] {
- let todoTasks = parseTodos(sessionId: sessionId)
- if !todoTasks.isEmpty { return todoTasks }
-
- // Fallback: check tasks directory for highwatermark
- let dir = ClaudePaths.tasksPath(sessionId: sessionId)
- let hwPath = dir.appendingPathComponent(".highwatermark")
- guard let hwData = try? String(contentsOf: hwPath, encoding: .utf8),
- let maxId = Int(hwData.trimmingCharacters(in: .whitespacesAndNewlines)) else {
- return []
- }
-
- return (1...maxId).map {
- TaskItem(id: "\($0)", content: "Task \($0)", status: .pending)
- }
+ parseTodos(sessionId: sessionId)
}
static func parseTodos(sessionId: String) -> [TaskItem] {
diff --git a/CodePulse-macOS/Utilities/ClaudePaths.swift b/CodePulse-macOS/Utilities/ClaudePaths.swift
index 3411d4b1..6dc3620a 100644
--- a/CodePulse-macOS/Utilities/ClaudePaths.swift
+++ b/CodePulse-macOS/Utilities/ClaudePaths.swift
@@ -6,7 +6,6 @@ enum ClaudePaths {
}
static var sessionsDir: URL { claudeDir.appendingPathComponent("sessions") }
- static var tasksDir: URL { claudeDir.appendingPathComponent("tasks") }
static var todosDir: URL { claudeDir.appendingPathComponent("todos") }
static var projectsDir: URL { claudeDir.appendingPathComponent("projects") }
@@ -26,10 +25,6 @@ enum ClaudePaths {
.appendingPathComponent("\(sessionId).jsonl")
}
- static func tasksPath(sessionId: String) -> URL {
- tasksDir.appendingPathComponent(sessionId)
- }
-
static func todosPattern(sessionId: String) -> String {
"\(sessionId)-agent-"
}