Skip to content

Chore/remove bundled git#551

Merged
dfwgj merged 5 commits intomainfrom
chore/remove-bundled-git
Feb 27, 2026
Merged

Chore/remove bundled git#551
dfwgj merged 5 commits intomainfrom
chore/remove-bundled-git

Conversation

@dfwgj
Copy link
Collaborator

@dfwgj dfwgj commented Feb 27, 2026

Summary

  • Remove bundled MinGit; require users to install Git for Windows manually - Add Windows-only Git installation warning in settings page with link to git-scm.com
  • Replace inline AgentX config form with multi-profile management (list + dialog)
  • Auto-migrate legacy single config to a profile named "Default" on first load

Changes

AgentX Multi-Profile Management

  • New AgentXProfile interface: { id, name, apiKey, baseUrl, model }
  • AgentXConfig extended with profiles[] and activeProfileId
  • Switching active profile auto-syncs top-level apiKey/baseUrl/model
  • New AgentXProfilesConfig component: add / edit / delete / activate profiles via dialog
  • i18n: settings.agentx.profiles.*

Remove Bundled Git (Windows)

  • Revert bundled MinGit commit
  • Windows-only warning banner in settings with git-scm.com download link
  • i18n: settings.agentx.windowsGitWarning.*

Test Plan

  • Add / edit / delete / activate AgentX profiles
  • Legacy config auto-migrates to "Default" profile on first launch
  • Test connection button works in profile dialog
  • Windows Git warning visible on Windows, hidden on macOS / Linux

dfwgj and others added 5 commits February 26, 2026 22:41
- Add download-mingit.ps1 script to fetch MinGit at CI build time
- Inject bundled git-bash/mingw64/bin into PATH at app startup
- Fall back to system Git for Windows if bundled git not present
- Add CI step in release-desktop.yml to run the download script
- Gitignore resources/win/git-bash/ (binary, downloaded at build time)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…Windows

- Remove bash.exe PATH injection from ensureWindowsToolsInPath()
- Remove extraResources git-bash entry from electron-builder.yml
- Add README note: Windows users must install Git for Windows for AgentX

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
… management

- Add AgentXProfile interface and extend AgentXConfig with profiles[]/activeProfileId
- Auto-migrate existing single config to a named profile on first load
- Sync active profile fields to top-level apiKey/baseUrl/model on updateConfig
- Replace inline settings form with AgentXProfilesConfig component (list + dialog)
- Add i18n keys for profile management (en/zh-CN)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@dfwgj dfwgj merged commit ae02351 into main Feb 27, 2026
@dfwgj dfwgj deleted the chore/remove-bundled-git branch February 27, 2026 01:12
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