Skip to content

Deliver one-sentence TAG groups without waiting for another fragment - #272

Open
Solarboaters wants to merge 1 commit into
schwehr:mainfrom
Solarboaters:fix/single-sentence-tag-groups
Open

Solarboaters wants to merge 1 commit into
schwehr:mainfrom
Solarboaters:fix/single-sentence-tag-groups

Conversation

@Solarboaters

Copy link
Copy Markdown

A TAG group marked g:1-1-<id> never reaches the output queue: the first-sentence path returns before checking whether the group is complete. Initialise an empty group and let the existing append/completion path handle its first sentence too. This also removes completed one-sentence groups from the cache.

Fixes #203, following the approach proposed by @hogend.

Validation against 87dadfaa, Linux/Python 3.12:

  • Before: all 35 recorded single-sentence AIS fixtures fail when given explicit one-sentence grouping, and the non-AIS group completion test fails too.
  • After: full Python suite passes (92 tests, 35 subtests), including existing two/three-sentence groups, missing-first-fragment handling, metadata preservation and repeated group IDs.

No live receiver was used. AI-assisted implementation and testing with OpenAI Codex; submitted for maintainer review.

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.

Broken handling of single-line messages with a tag block

1 participant