| 11084 | const oldFileName = oldFileNameFull.replace('.jsonl', ''); | 11084 | const oldFileName = oldFileNameFull.replace('.jsonl', ''); |
| 11085 | | 11085 | |
| 11086 | const popupText = await renderTemplateAsync('chatRename'); | 11086 | const popupText = await renderTemplateAsync('chatRename'); |
| 11087 | const newName = await callPopup(popupText, 'input', oldFileName); | 11087 | const newName = await callGenericPopup(popupText, POPUP_TYPE.INPUT, oldFileName); |
| 11088 | | 11088 | |
| 11089 | if (!newName || newName == oldFileName) { | 11089 | if (!newName || typeof newName !== 'string' || newName == oldFileName) { |
| 11090 | console.log('no new name found, aborting'); | 11090 | console.log('no new name found, aborting'); |
| 11091 | return; | 11091 | return; |
| 11092 | } | 11092 | } |