Skip to content

Support Purpur 26.1.2 in 26.x version resolution#149

Merged
Travja merged 6 commits into
devfrom
copilot/support-purpur-2612-version-detection
Jul 9, 2026
Merged

Support Purpur 26.1.2 in 26.x version resolution#149
Travja merged 6 commits into
devfrom
copilot/support-purpur-2612-version-detection

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Codex currently rejects Purpur 26.1.2 during static version detection with Unexpected version: 26.1.2, preventing plugin startup despite 26.2 already being supported. This change aligns 26.1.2 handling with existing 26.2 behavior across version detection and NMS package resolution.

  • Version enum mapping (codex-api/core/Version.java)

    • Added 26.1.2 and 26.1.2-R0.1-SNAPSHOT to the V26_R1 switch branch (same as 26.2).
  • NMS package mapping (codex-api/compat/VersionManager.java)

    • Added 26.1.2 to getPackageFromVersion(...) so it resolves to v26_2 (same as 26.2).
  • Focused regression test (codex-api/.../VersionManagerTest.java)

    • Added a targeted test asserting 26.1.2 -> v26_2.
// Version.java
case "26.1.2-R0.1-SNAPSHOT", "26.1.2", "26.2-R0.1-SNAPSHOT", "26.2" -> Version.V26_R1;

// VersionManager.java
case "26.1.2", "26.2" -> "v26_2";

Copilot AI changed the title [WIP] Support Purpur 26.1.2 in version detection Support Purpur 26.1.2 in 26.x version resolution Jul 8, 2026
Copilot AI requested a review from MaksyKun July 8, 2026 20:17
@MaksyKun

MaksyKun commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@copilot Please revert:

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please revert:

Done in commit 0d90340: reverted fbf1ba6, 6473315, and 739ee42 as requested.

@MaksyKun
MaksyKun marked this pull request as ready for review July 9, 2026 19:47
@MaksyKun
MaksyKun requested review from Travja and removed request for MaksyKun July 9, 2026 19:48
@Travja
Travja merged commit dd8d15c into dev Jul 9, 2026
3 checks passed
@Travja
Travja deleted the copilot/support-purpur-2612-version-detection branch July 9, 2026 22:40
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.

Support Purpur 26.1.2 in Version detection (same handling as 26.2)

3 participants