WeKnora/internal
ChenRussell 27d4525ba9 fix(app): prevent UTF-8 truncation in summary fallback
When LLM summary generation fails, the fallback logic truncates
the first chunk content to 500 characters. Previously used byte-based
slicing (summary[:500]) which could cut multi-byte UTF-8 characters
in half, causing PostgreSQL to reject invalid byte sequences.

Changed to rune-based truncation to ensure valid UTF-8 after truncation.

Fixes: Documents stuck in "Generating summary" status when containing
Chinese/emoji characters and summary generation fails.
2026-03-26 18:52:08 +08:00
..
agent refactor(prompt): streamline context handling in templates 2026-03-25 22:08:29 +08:00
application fix(app): prevent UTF-8 truncation in summary fallback 2026-03-26 18:52:08 +08:00
common feat: add organization management features 2026-02-09 11:40:25 +08:00
config feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
container feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
database feat: enhance system information display with database version 2026-03-02 21:21:49 +08:00
errors feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
event refactor(agent): remove query display from DatabaseQuery component and update tool result structure 2026-03-25 22:08:29 +08:00
handler feat(suggested-questions): implement suggested questions feature for chat interface 2026-03-25 22:08:29 +08:00
im feat(knowledge): add channel support to knowledge entries and related components 2026-03-25 22:08:29 +08:00
infrastructure feat(image-multimodal): add task enqueuing for question generation based on image knowledge 2026-03-25 22:08:29 +08:00
logger chore: update fallback templates 2026-03-17 22:23:24 +08:00
mcp fix: MCP Client connection state not marked as closed after connection loss in SSE transport type 2026-02-02 10:42:19 +08:00
middleware refactor: update session title generation and language context handling 2026-03-17 22:23:24 +08:00
models feat: upgrade MiniMax models from M2.1 to M2.7 2026-03-26 18:51:25 +08:00
router feat(suggested-questions): implement suggested questions feature for chat interface 2026-03-25 22:08:29 +08:00
runtime init commit 2025-08-05 15:08:07 +08:00
sandbox feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
searchutil refactor(chat_pipeline): enhance merging logic and add partial overlap removal 2026-03-25 22:08:29 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing init commit 2025-08-05 15:08:07 +08:00
types feat(suggested-questions): implement suggested questions feature for chat interface 2026-03-25 22:08:29 +08:00
utils feat(security): enhance SSRF protection in RemoteAPIChat 2026-03-26 11:37:07 +08:00