Skip to content

fix: v1.7.5 — read message body only, strip any remaining name prefix - #9

Merged
sbcmsbgithub merged 1 commit into
masterfrom
fix/message-only
May 18, 2026
Merged

sbcmsbgithub merged 1 commit into
masterfrom
fix/message-only

Conversation

@sbcmsbgithub

Copy link
Copy Markdown
Owner

Changes

Default to message-only

readSender now defaults to false. Only the message body is spoken. The toggle remains in settings for anyone who wants it back.

Catch-all name prefix strip

Added a final regex in normalizeMsg as a guaranteed last resort:

msg.body = msg.body.replace(/^[A-Za-z][A-Za-z'-]{0,29}(?:\s+[A-Za-z][A-Za-z'-]{0,29})?:\s+/, '').trim();

This removes any "Name: " or "First Last: " pattern at the start of the body that survived all the targeted sender-specific stripping passes — however VTF formats it.

Result

A message from Alice saying "hello everyone" is now spoken as: hello everyone

🤖 Generated with Claude Code

- readSender defaults to false: only the message body is spoken.
- Added catch-all regex in normalizeMsg: /^[A-Za-z][A-Za-z'-]{0,29}(?:\s+...)?:\s+/
  strips any "Name: " prefix the chat UI injects into the body element,
  regardless of whether the targeted sender strips caught it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sbcmsbgithub
sbcmsbgithub merged commit 6385308 into master May 18, 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