Review Feature Access
Nucleic-Session: 85A6233A-F3F6-44B2-AD0B-261D49EE9C35 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -598,11 +598,11 @@ final class RemoteStore: ObservableObject {
|
|||||||
demoUpdateSession(sessionID) { $0.demoCopy(status: .running, disposition: .some(nil)) }
|
demoUpdateSession(sessionID) { $0.demoCopy(status: .running, disposition: .some(nil)) }
|
||||||
let toolID = UUID().uuidString
|
let toolID = UUID().uuidString
|
||||||
let task = Task { [weak self] in
|
let task = Task { [weak self] in
|
||||||
|
guard let self else { return }
|
||||||
func pause(_ ms: Int) async -> Bool {
|
func pause(_ ms: Int) async -> Bool {
|
||||||
try? await Task.sleep(for: .milliseconds(ms))
|
try? await Task.sleep(for: .milliseconds(ms))
|
||||||
return !Task.isCancelled && (self?.demoMode ?? false)
|
return !Task.isCancelled && self.demoMode
|
||||||
}
|
}
|
||||||
guard let self else { return }
|
|
||||||
guard await pause(600) else { return }
|
guard await pause(600) else { return }
|
||||||
self.demoAppend(sessionID, .assistantText(TextChunk(
|
self.demoAppend(sessionID, .assistantText(TextChunk(
|
||||||
messageID: UUID().uuidString, text: "On it — let me take a look.", isPartial: false)))
|
messageID: UUID().uuidString, text: "On it — let me take a look.", isPartial: false)))
|
||||||
|
|||||||
Reference in New Issue
Block a user