Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit b905a9f

Browse files
committed
Fix compilation errors in Claude process detector
- Fix findTTYPath call to pass only command and device (not full processInfo with ppid) - Add explicit return type annotation to compactMap closure to resolve generic inference - Maintain backwards compatibility with existing function signatures
1 parent 2ccf44c commit b905a9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Features/Monitoring/Domain/Services/ClaudeProcessDetector.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class ClaudeProcessDetector: Loggable, @unchecked Sendable {
9494

9595
let folderName = URL(fileURLWithPath: workingDirectory).lastPathComponent
9696
let status = determineClaudeStatus(from: processArgs)
97-
let ttyPath = findTTYPath(for: pid, processInfo: processInfo)
97+
let ttyPath = findTTYPath(for: pid, processInfo: (command: processInfo.command, device: processInfo.device))
9898

9999
let instance = ClaudeInstance(
100100
pid: pid,
@@ -111,7 +111,7 @@ final class ClaudeProcessDetector: Loggable, @unchecked Sendable {
111111
}
112112

113113
// Second pass: filter out child Claude processes
114-
let rootClaudes = allClaudes.compactMap { item in
114+
let rootClaudes = allClaudes.compactMap { item -> ClaudeInstance? in
115115
let isChildOfClaude = claudePIDs.contains(item.ppid)
116116

117117
if isChildOfClaude {

0 commit comments

Comments
 (0)