fix: add 'visual' mode to formatMode map

- Visual search mode was showing as '—' in session history
- Added 'visual': 'Visual' to the formatMode mapping
This commit is contained in:
2026-10-27 15:09:07 +08:00
parent bb80d52e98
commit 2213703a77

View File

@@ -1529,6 +1529,7 @@ function formatTime(sec: number): string {
function formatMode(mode: string | null): string { function formatMode(mode: string | null): string {
const map: Record<string, string> = { const map: Record<string, string> = {
keyword: 'Keyword', keyword: 'Keyword',
visual: 'Visual',
semantic: 'Semantic', semantic: 'Semantic',
agent: 'Agent', agent: 'Agent',
people: 'People', people: 'People',