Skip to content

Auto-update OpenAdapt on launch#988

Closed
hechibing wants to merge 1 commit intoOpenAdaptAI:mainfrom
hechibing:fix/auto-update-on-launch
Closed

Auto-update OpenAdapt on launch#988
hechibing wants to merge 1 commit intoOpenAdaptAI:mainfrom
hechibing:fix/auto-update-on-launch

Conversation

@hechibing
Copy link
Copy Markdown

Refs #755

Bounty: $100

Changes:

  • Add CLI auto-update on launch: checks PyPI for a newer openadapt version, upgrades via pip, then re-execs the CLI
  • Add rate limiting (once per 24h) via ~/.openadapt/autoupdate.json
  • Add OPENADAPT_DISABLE_AUTO_UPDATE=1 escape hatch and skip in CI
  • Make CLI and package version report the installed distribution version (no more hard-coded 1.0.0)

Verification:

  • python -m py_compile openadapt/init.py openadapt/version.py openadapt/autoupdate.py openadapt/cli.py

@hechibing hechibing requested a review from abrichr as a code owner February 15, 2026 09:31
@abrichr
Copy link
Copy Markdown
Member

abrichr commented Mar 4, 2026

Closing — stale since Feb 15. The auto-update approach may need revisiting given the shift to uv-based installation. Please reopen if still relevant.

@abrichr abrichr closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants