olcli icon indicating copy to clipboard operation
olcli copied to clipboard

[Feature] timeout for pull-project

Open rarensu opened this issue 5 months ago • 1 comments

the pull-project command executes

        return this.downloadBuffer(this.downloadUrl(projectId));

since downloadBuffer doesn't accept set a timeout parameter, the underlying http function defaults to 10000 ms, which is too short for my large project.

it should accept a timeout parameter so that pull project can set a timeout. and so on, and so forth, until finally it reads from somewhere configurable, like a command line option.

rarensu avatar Jun 16 '26 20:06 rarensu

Fixed in v0.6.0! You can now set a custom timeout via:

  • --timeout <ms> global flag
  • OVERLEAF_TIMEOUT environment variable
  • olcli config set-timeout <ms> (persisted)

Downloads (pull, pdf, zip, output) all respect the configured timeout. Thank you for the issue and the PR - your implementation was the basis for this.

Released in v0.6.0.

aloth avatar Jun 30 '26 14:06 aloth