MCPcopy
hub / github.com/codeaashu/claude-code / getTaskListId

Function getTaskListId

src/utils/tasks.ts:199–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 * 5. Session ID - fallback for standalone sessions
198 */
199export function getTaskListId(): string {
200 if (process.env.CLAUDE_CODE_TASK_LIST_ID) {
201 return process.env.CLAUDE_CODE_TASK_LIST_ID
202 }
203 // In-process teammates use the leader's team name so they share the same
204 // task list that tmux/iTerm2 teammates also resolve to.
205 const teammateCtx = getTeammateContext()
206 if (teammateCtx) {
207 return teammateCtx.teamName
208 }
209 return getTeamName() || leaderTeamName || getSessionId()
210}
211
212/**
213 * Sanitizes a string for safe use in file paths.

Callers 8

callFunction · 0.85
callFunction · 0.85
callFunction · 0.85
callFunction · 0.85
handleStopHooksFunction · 0.85
TasksV2StoreClass · 0.85
#onHideTimerFiredMethod · 0.85

Calls 3

getTeammateContextFunction · 0.85
getTeamNameFunction · 0.85
getSessionIdFunction · 0.85

Tested by

no test coverage detected