Skip to content

[Bug]: Chat input replaces ASCII apostrophe(') (U+0027) with left single quotation mark(‘) (U+2018) #3682

Closed

Description

@RichardLexJiang

Summary

Typing an ASCII apostrophe ' (U+0027) in the chat input box silently produces a
5typographic left single quotation mark ' (U+2018).

Area

Desktop app

Reproduction or evidence

  1. open bitfun , open a new session
  2. input "don'" at fisrt
  3. input "t" and space , then the "'" turns out ""
Image Image

Environment, if relevant

  • App version: 1.0.8
  • macOS version: 26.6.2 (build 25G83, Apple Silicon arm64)
  • Install type: dmg
  • Input method: U.S. English (hardware keyboard), no IME active

Activity

  1. GCWing commented on Nov 2, 2026

    @GCWing
    Collaborator

    Fixed in #3684, now merged into main in 2d436f13.

    The chat composer's contenteditable element now sets spellcheck="false", autocorrect="off", and autocapitalize="off" to opt out of native text correction, including WebKit smart quote substitution. Explicitly typed or pasted straight and typographic quotes remain unchanged.

    Validation: all applicable PR CI checks passed, along with 74 focused input tests and pnpm run check:web. The DOM tests cover the rendered opt-out attributes, completing don' to don't followed by a space, and preserving authored quotes through input and paste handlers. Native macOS keyboard behavior and live remote scenarios were not exercised.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions