(sessionId: UUID, tag: string, fullPath?: string)
| 2688 | } |
| 2689 | |
| 2690 | export 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. |
no test coverage detected