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

Function getCurrentSessionTitle

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

Source from the content-addressed store, hash-verified

2818}
2819
2820export function getCurrentSessionTitle(
2821 sessionId: SessionId,
2822): string | undefined {
2823 // Only returns title for current session (the only one we cache)
2824 if (sessionId === getSessionId()) {
2825 return getProject().currentSessionTitle
2826 }
2827 return undefined
2828}
2829
2830export function getCurrentSessionAgentColor(): string | undefined {
2831 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