Skip to content

Commit 8604779

Browse files
DJBenclaude
andcommitted
fix: add missing Sendable annotations to log watcher structs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b5ba4f commit 8604779

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

ios/GoVibeHostCorePackage/Sources/GoVibeHostCore/ClaudeLogWatcher.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ final class ClaudeLogWatcher {
7878
self.onLastUserPromptChanged = onLastUserPromptChanged
7979
}
8080

81+
/// Returns all plan artifacts from the currently pinned log file.
82+
func currentArtifacts() -> [TerminalPlanArtifact] {
83+
guard let url = fileURL else { return [] }
84+
return existingPlanArtifacts(in: url)
85+
}
86+
8187
/// Update the working directory (e.g. when the tmux pane's cwd changes).
8288
func updateCwd(_ newCwd: String) {
8389
guard newCwd != cwd else { return }

ios/GoVibeHostCorePackage/Sources/GoVibeHostCore/CodexLogWatcher.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ final class CodexLogWatcher {
5858
reset()
5959
}
6060

61+
/// Returns all plan artifacts from the current session.
62+
func currentArtifacts() -> [TerminalPlanArtifact] {
63+
guard let artifact = currentPlanArtifact else { return [] }
64+
return [artifact]
65+
}
66+
6167
/// Called every second by `TerminalHostSession.pollPaneProgram()` while Codex is active.
6268
func poll() {
6369
refreshFileIfNeeded()

0 commit comments

Comments
 (0)