agentscope-ai / agentscope-ai/QwenPaw

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

Abierto
#2,120 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
35k
Forks
3.1k
Merge medio
1 d 13 h
PR fusionados (30 d)
228

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.