Repository navigation
Resolve and reopen comment threads - #16
Merged
Merged
Conversation
Overleaf's resolve/reopen routes are doc-scoped (POST /project/:id/doc/:docId/thread/:threadId/resolve|reopen); the older project-level route 404s, which is why only create + list shipped so far. - SDK: resolveComments / reopenComments. They read the doc's comments first and change nothing if any id is not anchored there, skip threads already in the wanted state, and name the threads already changed if a later request fails. - CLI: resolve / reopen; comments now prints thread ids. - MCP: overleaf_resolve_comments / overleaf_reopen_comments (reversible, idempotent). - Unit tests and a live integration test (resolve, reopen, resolve).
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.
Changes
resolveComments(path, threadIds)andreopenComments(path, threadIds)(SDK) call Overleaf'sPOST /project/:id/doc/:docId/thread/:threadId/resolveand.../reopen, the requests the review panel sends. The routes are doc-scoped. The older project-level/project/:id/thread/:threadId/resolvereturns 404 on overleaf.com, which is whyCLAUDE.mdsaid these routes were missing.overleaf_resolve_commentsandoverleaf_reopen_comments {project, path, threadIds}, markeddestructiveHint: falseandidempotentHint: true(reversible). The resolve description tells the agent to close only threads the user asked to close.resolve <project> <path> <threadId>...andreopen ....commentsnow prints each thread id, which these commands need.CLAUDE.mdupdated, and the "routes return 404" note corrected. Deleting a thread is still not included.Verified live
On a test project: resolve and reopen each return 204, and
GET /project/:id/threadsthen reportsresolved: true/false. The text and version do not change.Tests
listCommentsafter each step.main.texhas pending tracked changes).