Skip to content

[Bug] updateSettings #642

Open
Open

Description

@peiyanlu

Environment

  • OS: Win 11
  • Node Version: v24.18.1
  • Package: @clack/prompts, @clack/core
  • Package Version: 1.9.0

Describe the bug
Calling cancel() without an argument does not display a cancellation message, even after setting messages.cancel with updateSettings().

The internationalization docs show updateSettings({ messages: { cancel: ... } }) followed by cancel(), so I expected the configured message to be used.

Steps to reproduce the behavior:

import { cancel, updateSettings } from '@clack/prompts';

updateSettings({
  messages: {
    cancel: 'Operation cancelled',
  },
});

cancel();

Expected behavior
cancel() displays the configured message Operation cancelled.

Activity

  1. changed the title [-][Bug][/-] [+][Bug] updateSettings[/+] on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions