Repository navigation
fix: collapse all line terminators in digest_line - #128
Open
goktugozkanmd wants to merge 1 commit into
Open
goktugozkanmd wants to merge 1 commit into
goktugozkanmd wants to merge 1 commit into
Conversation
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.
Closes #89
Summary
_flatten()(" ".join(text.split())) insrc/transect/scanners/digests.pyand applied it acrossdigest_line()(reasoning, text, bare(tools: ...)names, target replies, and delegations) and_call_part()(tool names, arguments, and outputs) so non-LF line terminators (\r,\x0b,\x0c,U+0085,U+2028,U+2029) and newlines in bare tool names cannot split a single turn into extra lines.0.7.0->0.7.1inpyproject.tomlanduv.lockperCONTRIBUTING.md.tests/test_digests.pycovering all 8 line terminators across every digest field and the bare(tools: ...)branch.Verification
pytest -q tests/test_digests.py: 32 passed (23 before -> 32 after).pytest -qacross scanner, phase, Petri, batching, turn-axis, and sub-agent test suites: 250 passed, 2 skipped.ruff check src testsandruff format --check src tests: clean (98 files formatted).mypy src/transect/scanners/digests.pyandpyright src/transect/scanners/digests.py: 0 errors.