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

Method is_default_title

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

Check if title is a default generated title

(&self)

Source from the content-addressed store, hash-verified

376
377 /// Check if title is a default generated title
378 pub fn is_default_title(&self) -> bool {
379 let prefix = if self.parent_id.is_some() {
380 "Child session - "
381 } else {
382 "New session - "
383 };
384
385 if !self.title.starts_with(prefix) {
386 return false;
387 }
388
389 let timestamp_part = &self.title[prefix.len()..];
390 chrono::DateTime::parse_from_rfc3339(timestamp_part).is_ok()
391 }
392
393 /// Get a forked title
394 pub fn get_forked_title(&self) -> String {

Callers 1

ensure_titleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected