Comment on diff lines in the Changes view

This commit is contained in:
Ian Gulliver
2026-10-18 07:30:00 -07:00
parent 10c6c84f74
commit e7beca74f2
7 changed files with 304 additions and 41 deletions
+1 -6
View File
@@ -442,12 +442,7 @@ private struct FindingActions: View {
busy = true
Task {
do {
let sessions = try await store.api.client.listSessions(path: .init(taskId: taskId)).ok.body.json
if let live = sessions.last(where: { $0.state != .completed }) {
_ = try await store.api.client.sendMessage(path: .init(sessionId: live.id), body: .json(.init(text: text))).accepted
} else {
_ = try await store.api.client.createSession(path: .init(taskId: taskId), body: .json(.init(prompt: text))).created
}
try await store.messageTask(taskId, text)
} catch {
busy = false
overlays.showAlert(errorText(error))