You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turn pushed edits into suggestions (experimental) (#66, #70) - suggestChanges(projectId, path, edits) makes edits that reached Overleaf as plain text, through git, olcli push or a sync, show up as tracked changes that collaborators can accept or reject, as if they had been typed in Reviewing mode. Each edit is given as the old and new text with some text around it; olcli finds the new text, undoes the edit without tracking and redoes it with tracking. The text ends up as it was, so a git clone that pushed the edit has nothing new to pull. Each edit gets a result: done, not-pushed (the new text is not on Overleaf yet), not-found, already-tracked (running it again sends nothing), unchanged, invalid or not-tracked (the document was read again and no tracked change was found). planSuggestions reports the results without writing, and expectedVersion refuses to write when the document changed since. Review-only access is refused with SuggestionPermissionError before anything is written. Limits: sharejs-text-ot documents only (history-ot documents are refused), and collaborators who have the document open see the old text for about 0.2 seconds. Documented in docs/LIBRARY.md. Thanks to @fredericosantos for the idea and the first implementation
MCP tool suggest_changes (experimental) (#70) - lets an agent turn edits that are already on Overleaf into suggestions, for projects with track changes. Like the other write tools it asks first: the dialog lists each edit with its location and the suggested deletion and insertion, or why it is left alone. If no edit can become a suggestion it asks nothing and writes nothing, and it refuses to write when the document changed after the preview. Clients without elicitation get the preview only. Returns one result per edit
Fixed
Password sign-in on overleaf.com says why it fails - overleaf.com requires a captcha for password sign-in and answers a form post without one with HTTP 400, so olcli auth --email, and every command that signs in with OVERLEAF_EMAIL and OVERLEAF_PASSWORD, failed with only "Password login failed. HTTP 400". olcli now recognizes Overleaf's captcha rejection (errorReason: "cannot_verify_user_not_robot"), or, when the answer gives no reason, a login page with reCAPTCHA switched on for login, and stops with " requires a captcha for password sign-in, which olcli cannot complete. Sign in with olcli auth --browser, or paste a session cookie with olcli auth --cookie." The CLI, the MCP server and the git remote helper print the same message; library code gets a CaptchaRequiredError. A wrong password keeps its old message, and the exit status is unchanged. On a terminal, olcli auth --email then asks "Sign in in the browser instead? [Y/n]" and runs the same flow as olcli auth --browser on yes; scripts, CI and the other commands never get a question
The progress spinner no longer hangs on a terminal without a width - a terminal that reports a width of 0, such as a pseudo-terminal opened without a window size, made the spinner try to clear an endless number of lines on every frame, so a command printed control codes forever instead of finishing. Such a terminal now gets the plain output used for pipes and logs
Changed
Password sign-in is documented as self-hosted only - olcli --help, olcli auth --help, the README, docs/CONFIGURATION.md, docs/MCP.md and SKILL.md say that --email and OVERLEAF_EMAIL/OVERLEAF_PASSWORD work only on self-hosted servers without reCAPTCHA and point to olcli auth --browser for overleaf.com. olcli auth status warns when password credentials would be used on overleaf.com, and its JSON output gains a warnings array
Documentation
Contributing without an issue first - CONTRIBUTING.md now welcomes pull requests at any time; for a larger change a draft pull request works as well as an issue. A pull request that does what it says is merged as it is, and remaining findings are fixed in a follow-up