MCPcopy Index your code
hub / github.com/anomalyco/opencode / listSessions

Function listSessions

packages/tui/src/context/sync.tsx:164–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 function listSessions() {
165 return sdk.client.session
166 .list({ start: Date.now() - 30 * 24 * 60 * 60 * 1000, ...sessionListQuery() })
167 .then((x) => (x.data ?? []).toSorted((a, b) => a.id.localeCompare(b.id)))
168 }
169
170 event.subscribe((event, { directory, workspace }) => {
171 switch (event.type) {

Callers 2

bootstrapFunction · 0.85
refreshFunction · 0.85

Calls 2

sessionListQueryFunction · 0.85
listMethod · 0.65

Tested by

no test coverage detected