MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / list_questions

Function list_questions

crates/opencode-server/src/routes.rs:3617–3622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3615 Lazy::new(|| RwLock::new(HashMap::new()));
3616
3617async fn list_questions() -> Json<Vec<QuestionInfo>> {
3618 let pending = QUESTION_REQUESTS.read().await;
3619 let mut result: Vec<_> = pending.values().cloned().collect();
3620 result.sort_by(|a, b| a.id.cmp(&b.id));
3621 Json(result)
3622}
3623
3624#[derive(Debug, Deserialize)]
3625pub struct ReplyQuestionRequest {

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected