fix(linux): preserve existing data with XDG and ARM64 support - #364
Open
hetaoBackend wants to merge 1 commit into
Open
hetaoBackend wants to merge 1 commit into
hetaoBackend wants to merge 1 commit into
Conversation
Adapt the Linux compatibility proposal from ASHURA1800/minimax-code f3f0538. Keep existing data directories in place, validate XDG paths, initialize the Linux CLI consistently, and register regression and release coverage. Refs #362 Co-authored-by: ASHURA1800 <228700200+ASHURA1800@users.noreply.github.com>
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
New Linux installations use an absolute
XDG_DATA_HOME/minimax(falling back to~/.local/share/minimax), while existing.minimaxdirectories, profiles and symlink targets remain in place. This avoids making existing configuration and sessions appear missing or relocating a live data store. Older.mavisinstallations retain the existing migration to.minimax, and the Linux CLI now resolves that directory before exporting runtime overrides. Explicit data-directory overrides remain authoritative.Also adds Linux zsh PATH integration, terminal notification override coverage, and Ubuntu ARM64 coverage in ordinary CI, Node compatibility and CLI archive installation. Registers the new tests and source files, updates workflow assertions, and documents the directory behavior in English and Chinese.
Refs #362. Adapted from ASHURA1800's public proposal, f3f0538, with contributor attribution retained in the commit. The maintainer adaptation intentionally keeps existing data in place rather than automatically migrating it to XDG.
Validation
VITEST_MAX_WORKERS=4 pnpm verifypassed all 15 applicable gates on macOS ARM64 / Node 26.4.0 at commit611ec8e5439128cd0a06f943ab2de27dfe6ba4da, with a clean tracked working tree. Windows and package-installation gates were intentionally skipped by this local profile.perf:full, because this changes data-directory selection and initialization. The remote full-performance result is required before merge; no result is claimed here yet.Publication and contribution checks
release/public-source.jsonand are declared intest/vitest-suites.json.Maintainer handoff
Publication scope: two new test files; no license changes.
Shared-source port: pending. Independent review and successful current checks are required before merge.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.