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

Function getCurrentSessionTitle

src/utils/sessionStorage.ts:2739–2747  ·  view source on GitHub ↗
(
  sessionId: SessionId,
)

Source from the content-addressed store, hash-verified

2737}
2738
2739export function getCurrentSessionTitle(
2740 sessionId: SessionId,
2741): string | undefined {
2742 // Only returns title for current session (the only one we cache)
2743 if (sessionId === getSessionId()) {
2744 return getProject().currentSessionTitle
2745 }
2746 return undefined
2747}
2748
2749export function getCurrentSessionAgentColor(): string | undefined {
2750 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