Repository navigation
feat(ai): read explicit URLs in Ask AI and preserve insertions - #144
Merged
Merged
Conversation
Signed-off-by: Leo Stehlik <[email protected]>
This was referenced Nov 21, 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.
Description
Ask AI can now read public URLs supplied in the custom instruction, so a request such as “summarize this GitHub page” reaches the model with the retrieved source text. The editor shows retrieval progress and lets the user apply the completed result with Insert below or Replace.
Retrieval is limited to explicitly supplied URLs. Selected document text and retrieved pages do not trigger further fetches. The service extracts readable HTML/text, rewrites GitHub file links to raw content, labels external text as untrusted, and reports unavailable or truncated sources. Time, redirect, download and prompt-context limits keep each request bounded. DNS answers are checked and pinned to the connection; every redirect is validated, private addresses and URL credentials are rejected, and credentials/cookies are not forwarded.
This also fixes a reproduced WebKit insertion rollback: focusing the editor could remount the formatting toolbar while React link/code views were being created, reinitializing collaboration before the new content reached Yjs. Keeping the toolbar plugin mounted preserves the inserted result and its server save.
Includes feature documentation, provenance notes, AI regression CI, and a reusable browser regression script. Preview auto-scroll is a separate follow-up.
Validation
DCO sign-off
Each commit includes a
Signed-off-byline matching the contribution identity. This is original WrenLore work; no proprietary Docmost material or post-fork upstream implementation was used.