Skip to content

Crash with Cyrillic (UTF-8 multibyte) text in agent context - byte boundary error #3003

@almacduni

Description

@almacduni

Bug Description

Forge crashes when user pastes or types Cyrillic (UTF-8 multibyte) text directly into the interactive prompt.
Steps to Reproduce:

Steps to Reproduce

Any wikipedia article would work

Launch Forge (forge)
Paste or type any Cyrillic text into the prompt
Forge crashes

Expected Behavior

Forge should handle Cyrillic long input normally.

Actual Behavior

ERROR: byte index 3 is not a char boundary; it is inside 'Р' (bytes 2..4) of КРИТЕРИИ — ЧТО нужно получить...

Forge Version

2.11.0

Operating System & Version

linux

AI Provider

None

Model

No response

Installation Method

npx forgecode@latest

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions