Skip to content

[Feature] Accept or discard reviewer changes from the CLI #58

Description

@tiapia00

It would be useful if olcli provided commands to programmatically accept or discard changes suggested by reviewers in an Overleaf project.

Currently, olcli can retrieve reviewer comments/changes, but workflows that process review feedback from the command line would benefit from being able to resolve the corresponding changes directly.

A possible interface could look like:

olcli changes list --status open --json <project_id>

olcli changes accept <change_id> <project_id>
olcli changes discard <change_id> <project_id>

Alternatively, if reviewer changes are represented as part of the comments/review API:

olcli comments accept-change <comment_id> <project_id>
olcli comments discard-change <comment_id> <project_id>

Ideally, the commands should:

  • accept or discard a specific reviewer change using its ID;
  • return a non-zero exit code if the operation fails;
  • support --json output for scripting and automation;
  • expose enough information through the existing list command to associate a reviewer comment/change with the corresponding ID.

Motivation

This would make it possible to build automated review workflows around olcli. For example, an agent could:

  1. Retrieve open Overleaf comments and suggested changes.
  2. Inspect the corresponding LaTeX source.
  3. Propose a fix to the user.
  4. Wait for explicit user approval.
  5. Apply the modification locally.
  6. Accept or discard the corresponding reviewer change/comment through olcli.

This would allow olcli to support human-in-the-loop workflows where an automated tool assists with reviewer feedback while the user retains control over which changes are accepted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions