Repository navigation
Conversation
… own text An empty event's template is empty, and the engine writes its template record with a null template (hash -J}UrlyaKD8). TemplateProvider took the null for a missing template, warned twice and wrote the encoded line as read, so a blank line came back as "~-J}UrlyaKD8". A hash with a record now decodes, a null template being the empty template; a hash with no record is still kept as read with a warning. Tests: an empty event between encoded ones; a stream that mixes encoded lines with events written as their own text (lines that do not begin with ~ pass through untouched and are not looked up, even when the text before their first comma is a known hash). README: the -d and -p arguments that match the engine's compact lines, and what happens to a line without the prefix. Co-Authored-By: Claude Opus 5.5 <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.
Two fixes for compact streams, with tests.
-J}UrlyaKD8). The CLI took the null for a missing template, logged two warnings and wrote~-J}UrlyaKD8instead of the empty line. A hash that has a record now decodes, a null template being the empty template; a hash with no record is still written as read with a warning. This affects every compact stream that holds blank lines, with or without the Receiver option below.templateCreateAfter, a compact stream holds encoded lines and events sent as their own text. The engine writes every event whose text starts with~encoded, so a line without the prefix is an event's text. Main already passes such a line through untouched; this adds a test of a mixed stream (including a plain line whose text before the first comma is a known hash) and README text on-d , -p '~'.How it was checked. 29 tests pass (javac and the JUnit launcher, offline). On compact files from the engine branch, 24 source and framing pairs: the CLI's output from a stream with events written as text equals its output from the same input fully compact, and equals the input wherever the fully compact decode does; 0 warnings (before the fix, one pair of warnings per blank line).
🤖 Generated with Claude Code