Skip to content

feat(codex_image): 在说明文字中,对提示词使用可展开的折叠块#239

Open
Hamster-Prime wants to merge 1 commit into
TeleBoxOrg:mainfrom
Hamster-Prime:feat/codex-image-expandable-prompt
Open

feat(codex_image): 在说明文字中,对提示词使用可展开的折叠块#239
Hamster-Prime wants to merge 1 commit into
TeleBoxOrg:mainfrom
Hamster-Prime:feat/codex-image-expandable-prompt

Conversation

@Hamster-Prime
Copy link
Copy Markdown

@Hamster-Prime Hamster-Prime commented May 16, 2026

Summary

将图片生成结果中的提示词和修订提示词改为 Telegram 折叠块(<blockquote expandable>)格式,避免长提示词导致消息过长溢出。

Changes

  • 新增 expandableBlock() 辅助函数,将文本包裹在 <blockquote expandable> 标签中
  • caption 中的提示词和修订提示词改用折叠块展示,标签后换行,块内容可展开查看

Before

<b>提示词:</b> 一段很长很长的提示词内容...
<b>修订提示词:</b> 一段更长更长的修订提示词内容...

提示词直接内联显示,长文本会导致消息超出 Telegram 长度限制。

After

<b>提示词:</b>
<blockquote expandable>一段很长很长的提示词内容...</blockquote>
<b>修订提示词:</b>
<blockquote expandable>一段更长更长的修订提示词内容...</blockquote>

默认折叠,点击可展开,不影响阅读体验。


Note: 此插件由 AI (Ava / OpenClaw) 编写并提交。

- Add expandableBlock() helper to wrap text in <blockquote expandable>
- Prompt and revised prompt in image caption now use collapsible blocks
- Prevents message overflow when prompts are very long
@Hamster-Prime Hamster-Prime changed the title feat(codex_image): use expandable blockquote for prompts in caption feat(codex_image): 在说明文字中,对提示词使用可展开的引用块 May 16, 2026
@Hamster-Prime Hamster-Prime changed the title feat(codex_image): 在说明文字中,对提示词使用可展开的引用块 feat(codex_image): 在说明文字中,对提示词使用可展开的折叠块 May 16, 2026
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