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

Function string_to_status

crates/opencode-storage/src/repository.rs:373–380  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

371}
372
373fn string_to_status(s: &str) -> SessionStatus {
374 match s {
375 "completed" => SessionStatus::Completed,
376 "archived" => SessionStatus::Archived,
377 "compacting" => SessionStatus::Compacting,
378 _ => SessionStatus::Active,
379 }
380}
381
382pub struct MessageRepository {
383 pool: SqlitePool,

Callers 1

into_sessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected