Skip to content

[Bug] v0.0.70 - Rename in Anthropic Account settings fails with "prompt() is not supported" #171

@Wallet0013

Description

@Wallet0013

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

  1. Open 1Code
  2. Navigate to Settings → Anthropic Account
  3. Attempt to rename (click the rename button or trigger the rename action)
  4. → 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions