MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / new

Method new

server/src/server/session.rs:24–33  ·  view source on GitHub ↗
(id: String, project_path: PathBuf)

Source from the content-addressed store, hash-verified

22
23impl Session {
24 pub fn new(id: String, project_path: PathBuf) -> Self {
25 let now = Utc::now();
26 Self {
27 id,
28 project_path,
29 created_at: now,
30 last_active: now,
31 history: Vec::new(),
32 }
33 }
34
35 pub fn record(&mut self, method: &str, path: &str, response_preview: &str) {
36 self.last_active = Utc::now();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected