Repository navigation
fix(documents): keep the summary from every summary action - #1554
Merged
Merged
Conversation
The document sheet offered a summary twice. The summary section stored the paragraph on the document; "Summarise" in the AI action row called the same route without persist=true, so the same model call produced a paragraph that vanished when the sheet closed. Both actions now build their request through documentReadRequest: a summary is stored, and replaces a stored one; the extracted text stays session-only. The route's header said mode=summary persists on its own; it persists with persist=true, and the comment now says so. The "read your document" message names where the result went: search finds the document by its content. Refs #1403
…one-path # Conflicts: # CHANGELOG.md
…one-path # Conflicts: # CHANGELOG.md
This was referenced Nov 26, 2026
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.
The document sheet offered a summary twice. The summary section stored the paragraph on the document (
persist=true); "Summarise" in the AI action row called the same route withoutpersist, so the same model call produced a paragraph that vanished when the sheet closed. Both actions now go throughdocumentReadRequest: a summary is stored and replaces a stored one; the extracted text stays session-only.The summary route's header said
mode=summarypersists on its own. It persists withpersist=true; the comment now says so.The "read your document" toast names where the result went: search finds the document by its content (all ten locales).
Tests:
src/components/documents/__tests__/document-read-request.test.ts.Refs #1403