MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getCurrentSessionTitle

Function getCurrentSessionTitle

source code/utils/sessionStorage.ts:2741–2749  ·  view source on GitHub ↗
(
  sessionId: SessionId,
)

Source from the content-addressed store, hash-verified

2739}
2740
2741export function getCurrentSessionTitle(
2742 sessionId: SessionId,
2743): string | undefined {
2744 // Only returns title for current session (the only one we cache)
2745 if (sessionId === getSessionId()) {
2746 return getProject().currentSessionTitle
2747 }
2748 return undefined
2749}
2750
2751export function getCurrentSessionAgentColor(): string | undefined {
2752 return getProject().currentSessionAgentColor

Callers 8

autoNameSessionFromPlanFunction · 0.85
buildPrimarySectionFunction · 0.85
printResumeHintFunction · 0.85
initReplBridgeFunction · 0.85
generateAndPatchFunction · 0.85
onUserMessageFunction · 0.85
REPLFunction · 0.85

Calls 2

getSessionIdFunction · 0.85
getProjectFunction · 0.85

Tested by

no test coverage detected