Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ list_sessions
Method
list_sessions
crates/opencode-server/src/pty.rs:182–189 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
180
}
181
182
pub async fn list_sessions(&self) -> Vec<PtySession> {
183
self.sessions
184
.read()
185
.await
186
.values()
187
.map(|(s, _)| s.clone())
188
.collect()
189
}
190
191
pub async fn update_session(
192
&self,
Callers
1
list_pty
Function · 0.45
Calls
2
read
Method · 0.80
clone
Method · 0.45
Tested by
no test coverage detected