agentscope-ai / agentscope-ai/QwenPaw

[Bug]: BiDi text rendering issue when mixing Arabic and English input

Offen
#2,120 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
34.9k
Forks
3.1k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
225

Beschreibung

## CoPaw Version

v0.1.0.post1

## Description

When typing a mix of Arabic and English text in the chat input or message area,
the text direction gets reversed or rendered incorrectly due to missing BiDi
(Bidirectional Text) handling.
- [ ] Core / Backend (app, agents, config, providers, utils, local_models)
- [ ✓] Console (frontend web UI)
- [✓ ] Channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.)
- [ ] Skills
- [ ] CLI
- [ ] Documentation (website)
- [ ] Tests
- [ ] CI/CD
- [ ] Scripts / Deploy

## Expected Behavior
- Arabic portions should render Right-to-Left (RTL)
- English/code portions should remain Left-to-Right (LTR)
- The overall text direction should follow Unicode BiDi algorithm

## Actual Behavior
- The entire text block flips direction
- Mixed content appears garbled or reversed

## Environment
- CoPaw version: (your version)
- Browser: (e.g., Chrome, Firefox)
- OS: (e.g., Debian Linux)

## Possible Fix
Consider applying `unicode-bidi: plaintext` or `direction: auto` CSS on
the message input and rendered text elements. Alternatively, use the
HTML `dir="auto"` attribute on text containers.

## Additional Context
This affects all users who communicate in RTL languages (Arabic, Hebrew, Persian)
mixed with English or code snippets.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.