Repository navigation
Conversation
A draft now reads only the files and documents added as context, and documents of the same record can be added alongside files. Correct the pages that said the agent reads every attached file, and describe the documents picker, its limit, the prefilled selection, and how a context document flags drafted blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juanmleng
marked this pull request as ready for review
November 11, 2026 10:35
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.
Pull Request Description
What and why?
Draft Document and Draft Section can now take other documents of the same record as context, next to attached files. Also, a draft now reads only the files and documents you add as context. Before, it could read any file attached to the record. The guide and the FAQ said the agent reads every attached file, so they now describe the new behaviour.
The "Add files as context" section becomes "Add files and documents as context" and keeps its anchor, so existing links still work. It covers the Add Documents to Context option and its limit of 10 documents, the dialog opening with the last draft's selection, how the agent reads a document's sections and cites them under Sources, and which documents can't be added. The evidence-tracking section says that any edit to a context document marks the blocks that used it as out of date, and that Regenerate Stale Sections reuses each section's last selection.
How to test
Expected: both pages render. The only warnings are the existing ones about unresolved library API reference links. Preview links to the changed sections will be added once the PR is ready for review and
validatepasses.What needs special review?
Dependencies, breaking changes, and deployment notes
Documents ValidMind/backend#4010 and ValidMind/frontend#3172. Merge after both have shipped.
Release notes
You can now add other documents of the same record as context when drafting with AI. The agent reads the sections it needs and cites them as sources. A draft now reads only the files and documents you add as context. Learn more ...
Checklist
🤖 Generated with Claude Code