MCPcopy Index your code
hub / github.com/codeaashu/claude-code / listByUser

Method listByUser

src/server/web/session-store.ts:170–172  ·  view source on GitHub ↗

Returns summary info for sessions owned by a specific user.

(userId: string)

Source from the content-addressed store, hash-verified

168
169 /** Returns summary info for sessions owned by a specific user. */
170 listByUser(userId: string): SessionInfo[] {
171 return this.list().filter((s) => s.userId === userId);
172 }
173
174 /** How many sessions are owned by the given user. */
175 countByUser(userId: string): number {

Callers 1

getUserSessionsMethod · 0.80

Calls 1

listMethod · 0.95

Tested by

no test coverage detected