Skip to content

fix(weixin): wrap long copy-unfriendly lines - #19227

Closed
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/weixin-copy-friendly-lines-19161
Closed

fix(weixin): wrap long copy-unfriendly lines#19227
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/weixin-copy-friendly-lines-19161

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Summary

  • Wraps long non-code, non-table Weixin text lines at a copy-friendly display width.
  • Leaves fenced code blocks and Markdown tables untouched so commands/code and table structure are not damaged.
  • Adds focused Weixin formatting regressions for long line wrapping and code-block preservation.

Why

Fixes #19161. WeChat clients can make very long single-line Hermes replies difficult to copy, especially issue-template or log-style prose. Breaking long display text at natural whitespace keeps the full content while making it easier to select and copy.

Scope

This only changes outbound Weixin formatting before the existing message chunking path. It does not alter Weixin delivery, message limits, media handling, or other gateway platforms.

Verification

  • scripts/run_tests.sh tests/gateway/test_weixin.py -> 51 passed, 4 warnings
  • git diff --check

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery platform/wecom WeCom / WeChat Work adapter labels May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/wecom WeCom / WeChat Work adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: eixin output formatting can produce very long single lines that are hard to copy

2 participants