Skip to content

fix(documents): keep the summary from every summary action - #1554

Merged
MBombeck merged 4 commits into
mainfrom
fix/document-summary-kept
Nov 26, 2026
Merged

MBombeck merged 4 commits into
mainfrom
fix/document-summary-kept

Conversation

@MBombeck

Copy link
Copy Markdown
Owner

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 without persist, so the same model call produced a paragraph that vanished when the sheet closed. Both actions now go through documentReadRequest: a summary is stored and replaces a stored one; the extracted text stays session-only.

The summary route's header said mode=summary persists on its own. It persists with persist=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

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
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.

1 participant