MCPcopy
hub / github.com/claude-code-best/claude-code / clearGoalEntry

Function clearGoalEntry

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

Source from the content-addressed store, hash-verified

2768 * in-memory cache for the current session.
2769 */
2770export function clearGoalEntry(sessionId: UUID, fullPath?: string): void {
2771 const resolvedPath = fullPath ?? getTranscriptPathForSession(sessionId)
2772 appendEntryToFile(resolvedPath, {
2773 type: 'goal-cleared',
2774 sessionId,
2775 timestamp: new Date().toISOString(),
2776 })
2777 if (sessionId === getSessionId()) {
2778 getProject().currentSessionGoal = undefined
2779 }
2780}
2781
2782/**
2783 * Link a session to a GitHub pull request.

Callers

nothing calls this directly

Calls 4

appendEntryToFileFunction · 0.85
getSessionIdFunction · 0.85
getProjectFunction · 0.85

Tested by

no test coverage detected