Skip to content

fix: wrap multiline extension status text - #535

Open
y4ho0 wants to merge 1 commit into
agegr:mainfrom
y4ho0:agent/fix-extension-status-wrap
Open

fix: wrap multiline extension status text#535
y4ho0 wants to merge 1 commit into
agegr:mainfrom
y4ho0:agent/fix-extension-status-wrap

Conversation

@y4ho0

@y4ho0 y4ho0 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve line breaks in extension status text while still normalizing horizontal whitespace
  • let long status lines wrap instead of truncating them behind an ellipsis
  • cap tall status output at the same 144px / 18dvh limit used by extension widgets, with internal scrolling for additional lines
  • add regressions for text normalization and the wrapping/scrolling CSS contract

User impact

Extensions that publish multiline status output, such as /wechat-status, are now readable in Pi Web. Short single-line statuses keep the existing compact 35px footer, while large status reports no longer cover the chat area.

Validation

  • npm test — 588 passed
  • node_modules/.bin/tsc --noEmit
  • npm run lint
  • local browser check: single-line footer remained 35px; multiline text preserved line breaks and wrapped; output above 144px scrolled inside the footer

Closes #524

@y4ho0
y4ho0 marked this pull request as ready for review August 17, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

稍长的提示信息无法自动换行显示, 被遮挡

1 participant