Repository navigation
fix: v1.7.4 — strip date stamps and fix double sender announcement - #8
Merged
Merged
Conversation
…ore speaking
Also fixes sender name announced twice ("Alice: Alice: hello everyone"):
- stripSenderFromStart now uses \W* instead of narrow [:·|>-]? so any
separator character after the name is absorbed.
- Both extractors and normalizeMsg now run an explicit first-name-only strip
after the full-name strip, covering VTF's "FirstName: message" body format.
- DATE_RE strips Month-Day date stamps injected by the chat UI before
the sender strip runs, unblocking it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problems fixed
1. Sender announced twice —
"Alice: Alice: hello everyone"VTF formats the message body element as
"FirstName: message"even when the sender element contains the full name"Alice Smith". After stripping"Alice Smith"from the body,"Alice: hello everyone"was left behind.normalizeMsgwas supposed to catch this with a first-name strip, but the separator character class[:·|>-]?may not have matched the specific colon variant VTF uses.Fix:
stripSenderFromStartnow uses\W*(any non-word characters, zero or more) after the sender name instead of the narrow\s*[:·|>-]?\s*. This absorbs any separator regardless of encoding.extractMessageFromRoot,extractMessageGeneric, andnormalizeMsgnow run an explicit first-name strip after the full-name strip, so"Alice: hello"is caught even whenfullSender = "Alice Smith".2. Date stamp read aloud —
"Alice May 18 Alice hello"The chat UI injects a date string (e.g.
May 18) into each message element'sinnerText. It appeared after timestamp stripping and blocked the sender strip from running. AddedDATE_REto remove it first.Spoken output
Alice May 18 Alice Smith Alice hello everyoneAlice: hello everyoneAlice: Alice: hello everyoneAlice: hello everyoneTest plan
"<name>: <message>", no date, no duplicate name🤖 Generated with Claude Code