(sessionId: UUID, fullPath?: string)
| 2768 | * in-memory cache for the current session. |
| 2769 | */ |
| 2770 | export 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. |
nothing calls this directly
no test coverage detected