Skip to content

[Bug] Japanese IME confirmation Enter prematurely saves chat title in sidebar rename dialog #12474

Closed

Description

@kei-yamazaki

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:

macOS 27.0.1

GPU model(s) and accelerator backend:

Not specified. The affected operation is editing a chat title in the UI.

Versions:

  • Unsloth: v0.1.902-beta
  • Package: 2026.9.14
  • llama.cpp: b11160-mix-a6922cc
  • Browser: Brave v1.96.60
  • Japanese IME: macOS built-in Japanese IME

What happened?

Steps to reproduce:

  1. Open Unsloth Studio in Brave.
  2. Open the menu for an existing chat in the sidebar and select Rename.
  3. Enter a new title using the macOS built-in Japanese IME.
  4. While converting the Japanese text, press Enter to confirm the conversion.

This reproduces every time in the environment above.

Expected behavior:

Enter used to confirm an IME conversion should only confirm the conversion. The rename dialog should remain open so the user can continue editing the title.

Saving the title should require a separate Enter press outside IME composition or clicking the save button.

Actual behavior:

Pressing Enter to confirm the Japanese conversion also saves the chat title and closes the rename dialog.

This prematurely ends title editing, making it difficult to enter a title that requires multiple conversions.

Model and operation involved:

Operation: renaming an existing chat from the sidebar.

No inference or training is involved in the reproduction steps.

Diagnostics and logs

Desktop application

Not applicable; this issue was reproduced in the web UI.

Unsloth web UI

No logs or browser Console output are attached at this time.

Model-specific logs, if applicable

Not applicable to the reproduction steps.

Python package or notebook, if applicable

Not applicable.

Additional context

Related PR: #7246
“Studio: guard project chat rename against IME composition keys”

PR #7246 addresses the same class of problem: Enter or Escape used during IME composition should not commit or cancel a chat rename. It was merged on July 23, 2026.

However, that PR modified the project chat rename input in:

studio/frontend/src/features/chat/chat-page.tsx

The rename dialog opened from the sidebar uses a separate input in:

studio/frontend/src/components/app-sidebar.tsx

During source inspection on October 2, 2026, the sidebar rename input on main handled Enter as follows:

onKeyDown={(event) => {
  if (event.key === "Enter") {
    event.preventDefault();
    void commitRename();
  }
}}

This handler does not check whether the key event belongs to an IME composition.

The observed behavior may therefore be a regression or indicate incomplete coverage of the fix in #7246 across the different chat rename flows.

Activity

  1. added
    feature request
    on Oct 1, 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

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions