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

Method set_archived

crates/opencode-session/src/session.rs:575–579  ·  view source on GitHub ↗

Set the archived status

(&mut self, time: Option<i64>)

Source from the content-addressed store, hash-verified

573
574 /// Set the archived status
575 pub fn set_archived(&mut self, time: Option<i64>) {
576 self.time.archived = time.or_else(|| Some(Utc::now().timestamp_millis()));
577 self.status = SessionStatus::Archived;
578 self.touch();
579 }
580
581 /// Set the permission ruleset
582 pub fn set_permission(&mut self, permission: PermissionRuleset) {

Callers 2

archive_sessionFunction · 0.80
update_sessionFunction · 0.80

Calls 4

publish_session_eventMethod · 0.80
touchMethod · 0.45
get_mutMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected