MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_retry

Method set_retry

crates/opencode-session/src/status.rs:124–134  ·  view source on GitHub ↗

Convenience: set status to retry with details. Matches TS retry status with message and next timestamp.

(&self, session_id: &str, attempt: u32, message: String, next: u64)

Source from the content-addressed store, hash-verified

122 /// Convenience: set status to retry with details.
123 /// Matches TS retry status with message and next timestamp.
124 pub async fn set_retry(&self, session_id: &str, attempt: u32, message: String, next: u64) {
125 self.set(
126 session_id,
127 SessionStatusInfo::Retry {
128 attempt,
129 message,
130 next,
131 },
132 )
133 .await;
134 }
135
136 /// Check if a session is busy (busy or retrying).
137 pub async fn is_busy(&self, session_id: &str) -> bool {

Callers 1

test_set_retryFunction · 0.80

Calls 1

setMethod · 0.45

Tested by 1

test_set_retryFunction · 0.64