Repository navigation
fix: move citations to sentence boundaries - #400
Merged
Merged
Conversation
Contributor
Preview Deployment
This preview will be updated automatically when you push new commits. |
This was referenced Sep 18, 2026
neuromechanist
added a commit
that referenced
this pull request
Sep 19, 2026
…usekeeping (#411) * fix: cap get_full_docstring citable text like the FAQ citation path Uncapped, a single call at the default limit=5 could put ~50K chars of citable text on the wire (25x the FAQ cap). Adds _MAX_CITABLE_DOCSTRING_CHARS and corrects the citable-payloads test docstring, which had wrongly assumed this tool's snippets were already truncated by search.py. * test: cover the docker-build.yml concurrency-group fix for the :latest race * docs: retitle Unreleased to 0.8.10 and add PR #399 to the changelog PR #400's own body says it is a follow-up to #399, and #399 also tightens conceptual code-document search relevance, which had no changelog entry anywhere. * test: convert TestFetchPageContentImpl from httpx.Client mocking to respx Matches the respx-boundary pattern already used by TestFetchPageReportsFailureStructurally in the same file and this project's no-mocks-of-business-logic policy. Found and fixed a respx route-shadowing gotcha along the way: a bare host URL with no path matches any path on that host, so a more specific route registered after it is silently shadowed. * fix: address review suggestions on PR #411 Name DOCSTRING_SNIPPET_MAX_LENGTH explicitly instead of the ambiguous 'above' (the adjacent constant is the unrelated FAQ cap). Anchor the remaining bare-host respx routes in TestFetchPageContentImpl with a trailing slash for defense against the route-shadowing gotcha this same PR found, even though each currently registers only one route.
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.
Follow-up to #399.
What changed
Citation deltas can arrive between text chunks, which previously left markers inside words or sentences (for example
ru[1]nica.m). Normalize known markers to the end of the sentence in backend final/persisted content and in the widget renderer, including older saved responses. The final SSEdoneevent now carries the normalized content.Tested
git diff --checkpassedLive evidence
Observed on merged develop after #399 deployed:
ru[1]nica.m,postAmicaUt[1]ility, andset[1] of menus. This PR covers that exact stream shape.