Environment
- Version: 0.0.70
- OS: macOS Sequoia 15.7.4 (24G517)
- Architecture: ARM-64 (Apple Silicon)
Summary
When attempting a rename operation in Settings → Anthropic Account, the error Error: Uncaught Error: prompt() is not supported. is displayed and the change is not saved.
Steps to Reproduce
- Open 1Code
- Navigate to Settings → Anthropic Account
- Attempt to rename (click the rename button or trigger the rename action)
- → Error message appears:
Error: Uncaught Error: prompt() is not supported.
Expected Behavior
The rename operation completes successfully and the new name is saved.
Actual Behavior
An error is displayed and the rename operation fails entirely.
Root Cause (likely)
window.prompt() is disabled in Electron's renderer process by default. The rename UI is calling the native browser prompt() dialog, which is not supported in this context. It should be replaced with a custom in-app input UI or an IPC-based dialog via the main process.