Update only the displayName (used by auto-name, manual rename).
(id: string, displayName: string)
| 148 | |
| 149 | /** Update only the displayName (used by auto-name, manual rename). */ |
| 150 | async updateDisplayName(id: string, displayName: string): Promise<void> { |
| 151 | const db = await openDB(); |
| 152 | try { |
| 153 | const store = txStore(db, 'readwrite'); |
| 154 | const existing: WorkspaceEntry | undefined = await reqToPromise(store.get(id)); |
| 155 | if (!existing) return; |
| 156 | existing.displayName = displayName; |
| 157 | existing.updatedAt = new Date().toISOString(); |
| 158 | await reqToPromise(store.put(existing)); |
| 159 | } finally { |
| 160 | db.close(); |
| 161 | } |
| 162 | }, |
| 163 | |
| 164 | /** Check if a workspace exists. */ |
| 165 | async exists(id: string): Promise<boolean> { |
nothing calls this directly
no test coverage detected