Skip to content

feat: add per-CLI auto-update on app launch#245

Open
Whiteknight07 wants to merge 4 commits intocoollabsio:mainfrom
Whiteknight07:feat/cli-auto-update-on-launch
Open

feat: add per-CLI auto-update on app launch#245
Whiteknight07 wants to merge 4 commits intocoollabsio:mainfrom
Whiteknight07:feat/cli-auto-update-on-launch

Conversation

@Whiteknight07
Copy link
Copy Markdown
Contributor

Summary

  • add per-CLI auto-update preferences for Jean-managed Claude, GitHub CLI, Codex, and OpenCode installs
  • run launch-time CLI updates with pinned versions, serialized background installs, and manual-toast fallback on failure
  • refactor the CLI version check hook to reduce duplication while keeping the launch-time update flow explicit

Validation

  • bunx eslint src/hooks/useCliVersionCheck.ts
  • bun run typecheck

Whiteknight07 and others added 4 commits March 20, 2026 02:21
Adds per-CLI toggle (Claude, Codex, OpenCode, GitHub) in Settings to
automatically install the latest stable version when Jean starts,
instead of showing an interactive update toast. Updates fire in parallel
with stacked loading toasts. Only available for Jean-managed binaries.
bun run tauri fails in CI because node_modules/.bin is not on PATH
when the script runs as a separate step after tauri-action.

Amp-Thread-ID: https://ampcode.com/threads/T-019d0928-c36e-702f-b045-0581e5472c56
Co-authored-by: Amp <amp@ampcode.com>
@kessenma
Copy link
Copy Markdown
Contributor

Hey @Whiteknight07
I think you should update the docs/developer/auto-updates.md with this update.
I just made a similar PR here with minimizing the terminal when an upgrade is happening: feat(ui): allow minimizing CLI upgrade modals to run in background. I also added in a guard to the src/components/chat/hooks/useMessageSending.ts that you may want to implement on your PR here too so you cannot use a CLI that is updating.

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