Skip to content

Signal: add markdown formatting and chunked delivery - #843

Closed
Szpadel wants to merge 1 commit into
openclaw:mainfrom
Szpadel:signal-formatting
Closed

Szpadel wants to merge 1 commit into
openclaw:mainfrom
Szpadel:signal-formatting

Conversation

@Szpadel

@Szpadel Szpadel commented Jan 13, 2026

Copy link
Copy Markdown
Contributor
  • add markdown-to-Signal formatter with style ranges and chunking
  • send Signal text + captions with style metadata
  • update outbound delivery to use Signal formatting and add tests for chunking

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f9d19b4f2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +219 to +223
const markdownChunks =
textLimit === undefined ? [text] : chunkMarkdownText(text, textLimit);
for (const markdownChunk of markdownChunks) {
throwIfAborted(abortSignal);
const formatted = markdownToSignalText(markdownChunk);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve inline markdown when chunking Signal text

Chunking markdown before formatting can split inline constructs (e.g., **bold text** or [label](url)) across chunk boundaries when textLimit is small. chunkMarkdownText only guards fenced code blocks, so a chunk can contain an opening marker without its closing pair; markdownToSignalText then treats the partial markup as literal text, producing stray **/[]() instead of styled output. This is user-visible whenever a long, formatted message is split. A safer approach is to format the full markdown once and then apply chunkSignalText to the formatted text (or use a chunker that respects inline spans).

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor

closed via #920

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.

2 participants