agentscope-ai / agentscope-ai/QwenPaw

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

Aperta
#2,120 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
35k
Fork
3.1k
Merge medio
1g 13h
PR unite (30g)
228

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.