Skip to content

Comments

Auto-update OpenAdapt on launch#988

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

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

Conversation

@hechibing
Copy link

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
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.

1 participant