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

Function getCurrentSessionTitle

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

Source from the content-addressed store, hash-verified

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