MCPcopy Index your code
hub / github.com/codeaashu/claude-code / saveTag

Function saveTag

src/utils/sessionStorage.ts:2690–2699  ·  view source on GitHub ↗
(sessionId: UUID, tag: string, fullPath?: string)

Source from the content-addressed store, hash-verified

2688}
2689
2690export async function saveTag(sessionId: UUID, tag: string, fullPath?: string) {
2691 // Fall back to computed path if fullPath is not provided
2692 const resolvedPath = fullPath ?? getTranscriptPathForSession(sessionId)
2693 appendEntryToFile(resolvedPath, { type: 'tag', tag, sessionId })
2694 // Cache for current session only (for immediate visibility)
2695 if (sessionId === getSessionId()) {
2696 getProject().currentSessionTag = tag
2697 }
2698 logEvent('tengu_session_tagged', {})
2699}
2700
2701/**
2702 * Link a session to a GitHub pull request.

Callers 1

ToggleTagAndCloseFunction · 0.85

Calls 5

appendEntryToFileFunction · 0.85
getSessionIdFunction · 0.85
getProjectFunction · 0.85
logEventFunction · 0.85

Tested by

no test coverage detected