()
| 2970 | * from the previous session does not leak into the new one. |
| 2971 | */ |
| 2972 | export function clearSessionMetadata(): void { |
| 2973 | const project = getProject() |
| 2974 | project.currentSessionTitle = undefined |
| 2975 | project.currentSessionTag = undefined |
| 2976 | project.currentSessionAgentName = undefined |
| 2977 | project.currentSessionAgentColor = undefined |
| 2978 | project.currentSessionLastPrompt = undefined |
| 2979 | project.currentSessionAgentSetting = undefined |
| 2980 | project.currentSessionMode = undefined |
| 2981 | project.currentSessionWorktree = undefined |
| 2982 | project.currentSessionPrNumber = undefined |
| 2983 | project.currentSessionPrUrl = undefined |
| 2984 | project.currentSessionPrRepository = undefined |
| 2985 | } |
| 2986 | |
| 2987 | /** |
| 2988 | * Re-append cached session metadata (custom title, tag) to the end of the |
no test coverage detected