Skip to content

[Feature] korean #532

Closed
Closed

Description

@aejisdaai

export LANG=ko_KR.UTF-8
export LC_ALL=ko_KR.UTF-8

please check

Activity

  1. added
    enhancement
    on May 28, 2026
  2. will-lamerton commented on Jun 9, 2026

    @will-lamerton
    Member

    Hey @aejisdaai - can you clarify what you need with this issue?

  3. aejisdaai commented on Jun 9, 2026

    @aejisdaai
    Author

    Hello.

    I am experiencing a "Korean input issue."

    • Windows 11

    • PowerShell 7

    • In the same environment, there are no issues with Korean input for pi and opencode.

    • If I copy and paste the text I have written, I can input it normally.

      " 너는 누구니? 너는 누가 만들었니? "

    Thank you.

  4. RealBhupesh commented on Aug 3, 2026

    @RealBhupesh
    Contributor

    Hi @will-lamerton and @aejisdaai - I reviewed the current input path before proposing a code change.

    The alternate-screen TUI currently forwards stdin through a filtering stream in source/cli.tsx, decoding each incoming Buffer with toString('utf8') before mouse-sequence handling. If the Windows PowerShell/Korean IME path can split a multibyte character across input chunks, that boundary could be worth hardening with a stateful UTF-8 decoder and a regression test.

    Before I implement that, could you confirm whether the failure occurs only with --alt-screen / alternateScreen: true, and whether it reproduces with direct typing in the chat input (rather than paste)? A short reproduction using the current main branch would help avoid changing the input proxy for an issue in the terminal/IME layer itself.

    If that matches the observed behavior, I can take a focused follow-up that preserves mouse-sequence filtering, handles split UTF-8 input safely, and adds unit coverage for the chunk-boundary case. I’ll wait for confirmation before opening a speculative PR.

  5. RealBhupesh commented on Aug 3, 2026

    @RealBhupesh
    Contributor

    I’ve opened PR #744 for this issue.

    The alternate-screen input proxy was converting each stdin Buffer independently with Buffer#toString('utf8'). If an IME or terminal split a Korean character across two data chunks, the incomplete sequence could be replaced before the remaining bytes arrived. The PR switches that path to a stateful UTF-8 decoder while preserving the existing mouse and wheel handling, and adds a regression test that splits 너 across chunks.

    Validation is complete: the focused tests, full AVA suite (6,255 passed, 1 skipped), formatting, linting, type-checking, and production build all pass. The fix is scoped to the alternate-screen proxy path; if the reproduction also occurs in the default inline mode, please mention that in the PR so I can extend the investigation.

  6. aejisdaai commented on Aug 5, 2026

    @aejisdaai
    Author
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions