From 2861d406d815e4a14257f6269af85c6a176e4be7 Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Fri, 9 Oct 2026 18:37:22 +0530 Subject: [PATCH 1/6] fix(windows): prepare v1.4.1 credential and installer fixes Split full-sized OAuth credentials into bounded native vault entries while preserving legacy accounts and atomic replacement. Read binary checksum downloads as saved UTF-8 manifests and verify installation, updates and Start menu registration. Local frontend, Rust, extension, installer regression and release packaging checks pass. Native package validation is required before stable publication. --- .github/workflows/windows.yml | 16 +- README.md | 4 +- extension/CHANGELOG.md | 5 + extension/package-lock.json | 4 +- extension/package.json | 2 +- next/lib/site.ts | 2 +- next/package-lock.json | 4 +- next/package.json | 2 +- release/notes/v1.4.1.md | 30 ++ scripts/install-app.ps1 | 15 +- scripts/update-app.ps1 | 15 +- tauri/package-lock.json | 4 +- tauri/package.json | 2 +- .../scripts/windows-installer-regressions.ps1 | 99 +++++ tauri/scripts/windows-installer-smoke.ps1 | 21 +- tauri/src-tauri/Cargo.lock | 2 +- tauri/src-tauri/Cargo.toml | 2 +- tauri/src-tauri/src/profiles.rs | 27 +- tauri/src-tauri/src/profiles_windows_tests.rs | 50 +++ tauri/src-tauri/src/windows_credentials.rs | 359 ++++++++++++++++++ tauri/src-tauri/tauri.conf.json | 2 +- 21 files changed, 633 insertions(+), 34 deletions(-) create mode 100644 release/notes/v1.4.1.md create mode 100644 tauri/scripts/windows-installer-regressions.ps1 create mode 100644 tauri/src-tauri/src/windows_credentials.rs diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fa326e2a..a22b62da 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -4,9 +4,9 @@ on: workflow_dispatch: push: branches: [main] - paths: ['tauri/**', 'extension/**', '.github/workflows/windows.yml'] + paths: ['scripts/**', 'tauri/**', 'extension/**', '.github/workflows/windows.yml'] pull_request: - paths: ['tauri/**', 'extension/**', '.github/workflows/windows.yml'] + paths: ['scripts/**', 'tauri/**', 'extension/**', '.github/workflows/windows.yml'] concurrency: group: windows-native-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true @@ -14,6 +14,18 @@ concurrency: permissions: contents: read jobs: + installer-scripts: + runs-on: windows-2025 + timeout-minutes: 5 + strategy: + matrix: + shell: [powershell, pwsh] + steps: + - uses: actions/checkout@v4 + - name: Verify binary checksum manifests and reject invalid downloads + shell: ${{ matrix.shell }} + run: ./tauri/scripts/windows-installer-regressions.ps1 + windows: runs-on: windows-2025 timeout-minutes: 50 diff --git a/README.md b/README.md index b5345b4f..bc11b94e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Manage Codex accounts across VS Code, the Codex app, and CLI while keeping your Or run in PowerShell: ```powershell -Invoke-WebRequest https://github.com/wrestle-R/multi-codex/releases/latest/download/install-app.ps1 -OutFile "$env:TEMP/install-multi-codex.ps1" +Invoke-WebRequest https://github.com/wrestle-R/multi-codex/releases/latest/download/install-app.ps1 -UseBasicParsing -OutFile "$env:TEMP/install-multi-codex.ps1" powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP/install-multi-codex.ps1" ``` @@ -42,7 +42,7 @@ Download and run the [Windows installer (.exe)](https://github.com/wrestle-R/mul Or run in PowerShell: ```powershell -Invoke-WebRequest https://github.com/wrestle-R/multi-codex/releases/latest/download/update-app.ps1 -OutFile "$env:TEMP/update-multi-codex.ps1" +Invoke-WebRequest https://github.com/wrestle-R/multi-codex/releases/latest/download/update-app.ps1 -UseBasicParsing -OutFile "$env:TEMP/update-multi-codex.ps1" powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP/update-multi-codex.ps1" ``` diff --git a/extension/CHANGELOG.md b/extension/CHANGELOG.md index eacb01c4..ba41e0d2 100644 --- a/extension/CHANGELOG.md +++ b/extension/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.1 — 2026-10-09 + +- Fix saving full-sized Windows OAuth credentials in Credential Manager while preserving existing saved accounts. +- Keep credential replacement atomic when a Windows vault write fails. + ## 0.2.0 — 2026-10-09 - Wait for Codex initialization during account selection and report lost connections with a recovery action. diff --git a/extension/package-lock.json b/extension/package-lock.json index 4c8145be..a4c664f9 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@ { "name": "multi-codex", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "multi-codex", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "devDependencies": { "@types/node": "^22.19.0", diff --git a/extension/package.json b/extension/package.json index 1348d060..8682a0cc 100644 --- a/extension/package.json +++ b/extension/package.json @@ -2,7 +2,7 @@ "name": "multi-codex", "displayName": "Multi Codex", "description": "Manage Codex accounts and switch the current Codex panel without reloading VS Code.", - "version": "0.2.0", + "version": "0.2.1", "publisher": "russeldanielpaul", "private": true, "license": "MIT", diff --git a/next/lib/site.ts b/next/lib/site.ts index c5cc3fe8..3b2a162d 100644 --- a/next/lib/site.ts +++ b/next/lib/site.ts @@ -6,6 +6,6 @@ export const version = releaseHistory[0].tag.slice(1) export const windowsInstallerDownload = `${repository}/releases/download/v${version}/Multi.Codex_${version}_x64-setup.exe` export const installCommand = (platform: "linux" | "mac" | "windows", update = false) => { const action = update ? "update" : "install" - if (platform === "windows") return `Invoke-WebRequest ${latestRelease}/download/${action}-app.ps1 -OutFile "$env:TEMP/${action}-multi-codex.ps1"\npowershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP/${action}-multi-codex.ps1"` + if (platform === "windows") return `Invoke-WebRequest ${latestRelease}/download/${action}-app.ps1 -UseBasicParsing -OutFile "$env:TEMP/${action}-multi-codex.ps1"\npowershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP/${action}-multi-codex.ps1"` return `curl -fsSL ${latestRelease}/download/${action}-app.sh -o /tmp/${action}-multi-codex.sh\n${platform === "mac" ? "MULTI_CODEX_ALLOW_UNSIGNED_MAC=1 " : ""}bash /tmp/${action}-multi-codex.sh` } diff --git a/next/package-lock.json b/next/package-lock.json index 5552ee2f..8cf18f45 100644 --- a/next/package-lock.json +++ b/next/package-lock.json @@ -1,12 +1,12 @@ { "name": "multi-codex-docs", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "multi-codex-docs", - "version": "1.4.0", + "version": "1.4.1", "dependencies": { "botid": "1.5.11", "next": "16.3.8", diff --git a/next/package.json b/next/package.json index 5aba3608..b0fc41c2 100644 --- a/next/package.json +++ b/next/package.json @@ -1,6 +1,6 @@ { "name": "multi-codex-docs", - "version": "1.4.0", + "version": "1.4.1", "private": true, "scripts": { "dev": "next dev", diff --git a/release/notes/v1.4.1.md b/release/notes/v1.4.1.md new file mode 100644 index 00000000..70612a89 --- /dev/null +++ b/release/notes/v1.4.1.md @@ -0,0 +1,30 @@ +# Multi Codex v1.4.1 + +Fix Windows account saving and PowerShell installation. The matching extension is **v0.2.1 pre-release**, with the same native credential fix. + +## Windows download + +**[Download Windows x64 installer (.exe)](https://github.com/wrestle-R/multi-codex/releases/download/v1.4.1/Multi.Codex_1.4.1_x64-setup.exe)** + +Close Multi Codex, download the installer, and double-click it to install or update. Open Multi Codex from the Start menu afterward. Saved accounts, settings and conversations are preserved. + +## Changes + +- Fix “The system credential store could not save this credential” for full-sized Windows OAuth logins. Credentials remain in Windows Credential Manager, with large values stored across bounded entries. Existing saved accounts remain readable, and failed writes preserve the previous credential. +- Fix false “Windows installer checksum verification failed” errors caused by PowerShell receiving GitHub's checksum manifest as binary content. Installation and update still require one matching checksum and reject mismatched downloads before execution. +- Use basic parsing in the documented Windows download commands, avoiding Windows PowerShell's HTML script-execution prompt. +- Keep the direct Windows installer download available on GitHub and the website. + +## Validation + +Candidate validation is pending. Publication requires native builds, installer and account-isolation checks, extracted VSIX tests on all four platforms, packaged launcher window checks and macOS menu automation. The completed report will record exact package hashes in [v1.4.1-validation.json](https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.4.1-validation.json). `SHA256SUMS` covers every downloadable package and install/update script. + +## Compatibility and limitations + +Native Windows x64 is supported. Windows credential tests use full-sized synthetic OAuth data in the real native vault; real browser sign-in, token rotation and cloud quotas require user credentials and are not exercised by CI. WSL/Remote SSH and Windows virtual-desktop placement remain deferred. + +The Mac desktop app requires Apple Silicon and macOS 26; the extension also has an Intel package. Developer ID signing/notarization and the broader Linux distribution/GNOME/KDE functional matrix remain pending. Follow the website's Mac first-open instructions. + +Standalone launch remains limited to verified exact builds: Linux/macOS `26.930.51102` and Windows app build `26.930.61225`. + +Download the matching VSIX for Linux x64, macOS Apple Silicon, macOS Intel or Windows x64, then use **Extensions: Install from VSIX…**. Finish active work and reopen an already-open VS Code window after updating. Marketplace availability depends on the owner's manual upload and validation. diff --git a/scripts/install-app.ps1 b/scripts/install-app.ps1 index e9c62efe..c79cfb1e 100644 --- a/scripts/install-app.ps1 +++ b/scripts/install-app.ps1 @@ -12,11 +12,18 @@ $temporary = Join-Path ([IO.Path]::GetTempPath()) ('multi-codex-install-' + [gui New-Item -ItemType Directory -Path $temporary | Out-Null try { $package = Join-Path $temporary $installer[0].name - Invoke-WebRequest $installer[0].browser_download_url -OutFile $package - $manifest = (Invoke-WebRequest $sums[0].browser_download_url).Content + Invoke-WebRequest $installer[0].browser_download_url -UseBasicParsing -OutFile $package + # GitHub serves release assets as application/octet-stream. Content can be + # a byte array in Windows PowerShell; read the saved manifest as text instead. + $manifestPath = Join-Path $temporary 'SHA256SUMS' + Invoke-WebRequest $sums[0].browser_download_url -UseBasicParsing -OutFile $manifestPath + $manifest = [IO.File]::ReadAllText($manifestPath) $pattern = '(?m)^([a-fA-F0-9]{64})\s+\*?' + [regex]::Escape($installer[0].name) + '\r?$' - $matches = [regex]::Matches($manifest, $pattern) - if ($matches.Count -ne 1 -or (Get-FileHash $package -Algorithm SHA256).Hash -ne $matches[0].Groups[1].Value) { throw 'Windows installer checksum verification failed.' } + $checksumMatches = [regex]::Matches($manifest, $pattern) + if ($checksumMatches.Count -ne 1) { throw 'The checksum manifest must contain exactly one Windows installer entry.' } + $expectedChecksum = $checksumMatches[0].Groups[1].Value + $actualChecksum = (Get-FileHash -LiteralPath $package -Algorithm SHA256).Hash + if ($actualChecksum -ne $expectedChecksum) { throw "Windows installer checksum verification failed. Expected $expectedChecksum; downloaded $actualChecksum." } # NSIS requires /D to be the final argument; it handles spaces itself. $process = Start-Process -FilePath $package -ArgumentList "/S /D=$InstallDirectory" -Wait -PassThru if ($process.ExitCode -ne 0) { throw "Windows installer failed with exit code $($process.ExitCode)." } diff --git a/scripts/update-app.ps1 b/scripts/update-app.ps1 index e9c62efe..c79cfb1e 100644 --- a/scripts/update-app.ps1 +++ b/scripts/update-app.ps1 @@ -12,11 +12,18 @@ $temporary = Join-Path ([IO.Path]::GetTempPath()) ('multi-codex-install-' + [gui New-Item -ItemType Directory -Path $temporary | Out-Null try { $package = Join-Path $temporary $installer[0].name - Invoke-WebRequest $installer[0].browser_download_url -OutFile $package - $manifest = (Invoke-WebRequest $sums[0].browser_download_url).Content + Invoke-WebRequest $installer[0].browser_download_url -UseBasicParsing -OutFile $package + # GitHub serves release assets as application/octet-stream. Content can be + # a byte array in Windows PowerShell; read the saved manifest as text instead. + $manifestPath = Join-Path $temporary 'SHA256SUMS' + Invoke-WebRequest $sums[0].browser_download_url -UseBasicParsing -OutFile $manifestPath + $manifest = [IO.File]::ReadAllText($manifestPath) $pattern = '(?m)^([a-fA-F0-9]{64})\s+\*?' + [regex]::Escape($installer[0].name) + '\r?$' - $matches = [regex]::Matches($manifest, $pattern) - if ($matches.Count -ne 1 -or (Get-FileHash $package -Algorithm SHA256).Hash -ne $matches[0].Groups[1].Value) { throw 'Windows installer checksum verification failed.' } + $checksumMatches = [regex]::Matches($manifest, $pattern) + if ($checksumMatches.Count -ne 1) { throw 'The checksum manifest must contain exactly one Windows installer entry.' } + $expectedChecksum = $checksumMatches[0].Groups[1].Value + $actualChecksum = (Get-FileHash -LiteralPath $package -Algorithm SHA256).Hash + if ($actualChecksum -ne $expectedChecksum) { throw "Windows installer checksum verification failed. Expected $expectedChecksum; downloaded $actualChecksum." } # NSIS requires /D to be the final argument; it handles spaces itself. $process = Start-Process -FilePath $package -ArgumentList "/S /D=$InstallDirectory" -Wait -PassThru if ($process.ExitCode -ne 0) { throw "Windows installer failed with exit code $($process.ExitCode)." } diff --git a/tauri/package-lock.json b/tauri/package-lock.json index f0cd2af0..b3e95810 100644 --- a/tauri/package-lock.json +++ b/tauri/package-lock.json @@ -1,12 +1,12 @@ { "name": "multi-codex-desktop", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "multi-codex-desktop", - "version": "1.4.0", + "version": "1.4.1", "dependencies": { "@fontsource/bricolage-grotesque": "^5.2.10", "@fontsource/outfit": "^5.2.8", diff --git a/tauri/package.json b/tauri/package.json index 8adc9ea4..f39363c2 100644 --- a/tauri/package.json +++ b/tauri/package.json @@ -1,7 +1,7 @@ { "name": "multi-codex-desktop", "private": true, - "version": "1.4.0", + "version": "1.4.1", "type": "module", "scripts": { "dev": "vite", diff --git a/tauri/scripts/windows-installer-regressions.ps1 b/tauri/scripts/windows-installer-regressions.ps1 new file mode 100644 index 00000000..27a00364 --- /dev/null +++ b/tauri/scripts/windows-installer-regressions.ps1 @@ -0,0 +1,99 @@ +[CmdletBinding()] +param([string]$ScriptsDirectory = (Join-Path $PSScriptRoot '../../scripts')) +$ErrorActionPreference = 'Stop' +$ScriptsDirectory = (Resolve-Path -LiteralPath $ScriptsDirectory).Path +$fixtureRoot = Join-Path ([IO.Path]::GetTempPath()) ("Multi Codex $([char]0x5DE5) O'Brien " + [guid]::NewGuid()) +New-Item -ItemType Directory -Path $fixtureRoot | Out-Null +$fixturePackageName = 'Multi.Codex_1.4.0_x64-setup.exe' +$fixturePackagePath = Join-Path $fixtureRoot $fixturePackageName +[IO.File]::WriteAllBytes($fixturePackagePath, [Text.Encoding]::UTF8.GetBytes('MZ-checksum-regression-fixture')) +$fixtureHash = (Get-FileHash -LiteralPath $fixturePackagePath -Algorithm SHA256).Hash.ToLowerInvariant() +$fixtureRequests = New-Object System.Collections.ArrayList +$fixtureExecutions = New-Object System.Collections.ArrayList +$fixtureManifestBytes = $null +$fixtureOldEnvironment = @{} +foreach ($name in @('LOCALAPPDATA', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_ARCHITEW6432')) { + $fixtureOldEnvironment[$name] = [Environment]::GetEnvironmentVariable($name) +} +$env:LOCALAPPDATA = $fixtureRoot +$env:PROCESSOR_ARCHITECTURE = 'AMD64' +Remove-Item Env:PROCESSOR_ARCHITEW6432 -ErrorAction SilentlyContinue + +# Mock release transport and process execution only. Run the actual scripts, +# file reads, SHA-256 calculation and checksum parsing with no network or GUI. +function Get-Process { + [CmdletBinding()] + param([string]$Name) + return @() +} +function Invoke-RestMethod { + param([string]$Uri) + if ($Uri -ne 'https://api.github.com/repos/wrestle-R/multi-codex/releases/latest') { throw 'Unexpected release request.' } + return @{ tag_name = 'fixture'; assets = @( + @{ name = $fixturePackageName; browser_download_url = 'https://fixture.invalid/installer' }, + @{ name = 'SHA256SUMS'; browser_download_url = 'https://fixture.invalid/sums' } + ) } +} +function Invoke-WebRequest { + param([string]$Uri, [string]$OutFile, [switch]$UseBasicParsing) + [void]$fixtureRequests.Add(@{ uri = $Uri; basicParsing = [bool]$UseBasicParsing }) + if ($Uri -eq 'https://fixture.invalid/installer') { + Copy-Item -LiteralPath $fixturePackagePath -Destination $OutFile + return + } + if ($Uri -ne 'https://fixture.invalid/sums') { throw 'Unexpected asset request.' } + if ($OutFile) { + [IO.File]::WriteAllBytes($OutFile, $fixtureManifestBytes) + } else { + # Match application/octet-stream responses, which exposed the old bug. + return @{ Content = [byte[]]$fixtureManifestBytes } + } +} +function Start-Process { + param([string]$FilePath, [string]$ArgumentList, [switch]$Wait, [switch]$PassThru) + if (!$Wait -or !$PassThru -or !$ArgumentList.StartsWith('/S /D=')) { throw 'Unexpected installer invocation.' } + [void]$fixtureExecutions.Add($FilePath) + $fixtureDestination = $ArgumentList.Substring('/S /D='.Length) + New-Item -ItemType Directory -Path $fixtureDestination | Out-Null + [IO.File]::WriteAllText((Join-Path $fixtureDestination 'multi-codex-desktop.exe'), 'installed fixture') + return @{ ExitCode = 0 } +} + +$fixtureCases = @( + @{ name = 'binary LF manifest'; text = "$fixtureHash $fixturePackageName`n"; succeeds = $true }, + @{ name = 'binary CRLF manifest'; text = "$fixtureHash *$fixturePackageName`r`n"; succeeds = $true }, + @{ name = 'incorrect package checksum'; text = "$('0' * 64) $fixturePackageName`n"; succeeds = $false }, + @{ name = 'missing package entry'; text = "$fixtureHash other.exe`n"; succeeds = $false }, + @{ name = 'duplicate package entries'; text = "$fixtureHash $fixturePackageName`n$fixtureHash $fixturePackageName`n"; succeeds = $false } +) +$fixtureChecks = 0 +try { + foreach ($script in @('install-app.ps1', 'update-app.ps1')) { + foreach ($case in $fixtureCases) { + $fixtureRequests.Clear() + $fixtureExecutions.Clear() + $fixtureManifestBytes = [Text.Encoding]::UTF8.GetBytes($case.text) + $fixtureInstallDirectory = Join-Path $fixtureRoot ([guid]::NewGuid().ToString()) + $fixtureFailure = $null + try { & (Join-Path $ScriptsDirectory $script) -NoLaunch -InstallDirectory $fixtureInstallDirectory } + catch { $fixtureFailure = $_.Exception.Message } + if ($case.succeeds) { + if ($fixtureFailure) { throw "$script / $($case.name): $fixtureFailure" } + if ($fixtureExecutions.Count -ne 1) { throw 'Verified package must execute exactly once.' } + if (!(Test-Path -LiteralPath (Join-Path $fixtureInstallDirectory 'multi-codex-desktop.exe'))) { throw 'Installed executable was not checked.' } + } else { + if (!$fixtureFailure -or $fixtureFailure -notmatch 'checksum verification failed|checksum manifest must contain exactly one') { throw "$script / $($case.name): expected checksum rejection, got $fixtureFailure" } + if ($fixtureExecutions.Count -ne 0 -or (Test-Path -LiteralPath $fixtureInstallDirectory)) { throw 'Invalid download must be rejected before execution.' } + } + if ($fixtureRequests.Count -ne 2 -or @($fixtureRequests | Where-Object { !$_.basicParsing }).Count -ne 0) { throw 'All asset downloads must use basic parsing.' } + $fixtureChecks++ + Write-Host "PASS: $script / $($case.name)" + } + } + Write-Host "$fixtureChecks installer regression checks passed on PowerShell $($PSVersionTable.PSVersion)." +} finally { + foreach ($name in $fixtureOldEnvironment.Keys) { + [Environment]::SetEnvironmentVariable($name, $fixtureOldEnvironment[$name]) + } + Remove-Item -LiteralPath $fixtureRoot -Recurse -Force +} diff --git a/tauri/scripts/windows-installer-smoke.ps1 b/tauri/scripts/windows-installer-smoke.ps1 index 97cc7d05..0d207507 100644 --- a/tauri/scripts/windows-installer-smoke.ps1 +++ b/tauri/scripts/windows-installer-smoke.ps1 @@ -40,11 +40,13 @@ function Invoke-RestMethod { ) } } function Invoke-WebRequest { - param([string]$Uri,[string]$OutFile) + param([string]$Uri,[string]$OutFile,[switch]$UseBasicParsing) + if (!$UseBasicParsing) { throw 'Installer downloads must use basic parsing.' } if ($Uri -eq 'https://fixture.invalid/installer') { Copy-Item -LiteralPath $candidateInstallerPath -Destination $OutFile; return } if ($Uri -ne 'https://fixture.invalid/sums') { throw 'Unexpected asset request' } $hash = if ($candidateChecksumValid) { (Get-FileHash -LiteralPath $candidateInstallerPath -Algorithm SHA256).Hash } else { '0' * 64 } - return @{ Content = "$hash $packageName`n" } + if (!$OutFile) { throw 'Checksum manifest must be downloaded to a file.' } + [IO.File]::WriteAllBytes($OutFile, [Text.Encoding]::UTF8.GetBytes("$hash $packageName`n")) } Add-Type @' using System; @@ -55,6 +57,17 @@ public static class LauncherWindows { [DllImport("user32.dll")] public static extern IntPtr SendMessage(IntPtr window, uint msg, IntPtr wParam, IntPtr lParam); } '@ +function Check-StartMenu { + $application = Join-Path $install 'multi-codex-desktop.exe' + $shell = New-Object -ComObject WScript.Shell + try { + $programs = [Environment]::GetFolderPath('Programs') + $links = @(Get-ChildItem -LiteralPath $programs -Filter 'Multi Codex.lnk' -Recurse -File | Where-Object { + $shell.CreateShortcut($_.FullName).TargetPath -ieq $application + }) + if ($links.Count -ne 1) { throw 'The installer must create one Start menu shortcut to the installed app.' } + } finally { [void][Runtime.InteropServices.Marshal]::ReleaseComObject($shell) } +} function Check-Window { $application = Join-Path $install 'multi-codex-desktop.exe' $app = Start-Process -FilePath $application -PassThru @@ -86,12 +99,14 @@ try { $candidateChecksumValid = $true & (Join-Path $scriptsRoot 'install-app.ps1') -NoLaunch -InstallDirectory $install Assert-Fixtures + Check-StartMenu Check-Window & (Join-Path $scriptsRoot 'update-app.ps1') -NoLaunch -InstallDirectory $install Assert-Fixtures + Check-StartMenu Check-Window Check-Window - $result = @{ passed=$true; install=$true; update=$true; restart=$true; nativeVisibleWindow=$true; maximized=$true; closeExits=$true; checksumMismatchRejected=$true; profileAndConversationFixturesPreserved=$true; unicodeAndSpacedPaths=$true; installerSHA256=(Get-FileHash $candidateInstallerPath -Algorithm SHA256).Hash.ToLower(); authenticatedAccounts='synthetic fixtures; no real credentials'; environment=[Environment]::OSVersion.VersionString; testedAt=[DateTime]::UtcNow.ToString('o') } + $result = @{ passed=$true; install=$true; update=$true; restart=$true; nativeVisibleWindow=$true; startMenuShortcut=$true; maximized=$true; closeExits=$true; checksumMismatchRejected=$true; profileAndConversationFixturesPreserved=$true; unicodeAndSpacedPaths=$true; installerSHA256=(Get-FileHash $candidateInstallerPath -Algorithm SHA256).Hash.ToLower(); authenticatedAccounts='synthetic fixtures; no real credentials'; environment=[Environment]::OSVersion.VersionString; testedAt=[DateTime]::UtcNow.ToString('o') } $result | ConvertTo-Json | Set-Content (Join-Path $evidence 'installer-result.json') $result | ConvertTo-Json } finally { diff --git a/tauri/src-tauri/Cargo.lock b/tauri/src-tauri/Cargo.lock index b41824b5..aa6a1bdf 100644 --- a/tauri/src-tauri/Cargo.lock +++ b/tauri/src-tauri/Cargo.lock @@ -2254,7 +2254,7 @@ dependencies = [ [[package]] name = "multi-codex-desktop" -version = "1.4.0" +version = "1.4.1" dependencies = [ "base64 0.22.1", "chrono", diff --git a/tauri/src-tauri/Cargo.toml b/tauri/src-tauri/Cargo.toml index 280c5302..accdf83e 100644 --- a/tauri/src-tauri/Cargo.toml +++ b/tauri/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multi-codex-desktop" -version = "1.4.0" +version = "1.4.1" description = "Run isolated Codex accounts in separate VS Code windows" default-run = "multi-codex-desktop" authors = ["Russell Daniel Paul"] diff --git a/tauri/src-tauri/src/profiles.rs b/tauri/src-tauri/src/profiles.rs index c94d5f29..539fb3b3 100644 --- a/tauri/src-tauri/src/profiles.rs +++ b/tauri/src-tauri/src/profiles.rs @@ -139,26 +139,41 @@ pub trait SecretStore: Send + Sync + 'static { pub struct KeyringSecretStore; +#[cfg(any(windows, test))] +#[path = "windows_credentials.rs"] +mod windows_credentials; + impl SecretStore for KeyringSecretStore { fn set(&self, id: &str, secret: &str) -> Result<()> { + #[cfg(windows)] + return windows_credentials::save(id, secret); + #[cfg(not(windows))] keyring::Entry::new(KEYRING_SERVICE, id) .and_then(|entry| entry.set_password(secret)) .map_err(|_| "The system credential store could not save this credential".to_string()) } fn get(&self, id: &str) -> Result { + #[cfg(windows)] + return windows_credentials::load(id); + #[cfg(not(windows))] keyring::Entry::new(KEYRING_SERVICE, id) .and_then(|entry| entry.get_password()) .map_err(|_| "The system credential store could not read this credential".to_string()) } fn delete(&self, id: &str) -> Result<()> { - let entry = keyring::Entry::new(KEYRING_SERVICE, id) - .map_err(|_| "The system credential store is unavailable".to_string())?; - match entry.delete_credential() { - Ok(()) | Err(keyring::Error::NoEntry) => Ok(()), - Err(_) => { - Err("The system credential store could not delete this credential".to_string()) + #[cfg(windows)] + return windows_credentials::remove(id); + #[cfg(not(windows))] + { + let entry = keyring::Entry::new(KEYRING_SERVICE, id) + .map_err(|_| "The system credential store is unavailable".to_string())?; + match entry.delete_credential() { + Ok(()) | Err(keyring::Error::NoEntry) => Ok(()), + Err(_) => { + Err("The system credential store could not delete this credential".to_string()) + } } } } diff --git a/tauri/src-tauri/src/profiles_windows_tests.rs b/tauri/src-tauri/src/profiles_windows_tests.rs index 18c0d32e..460035bd 100644 --- a/tauri/src-tauri/src/profiles_windows_tests.rs +++ b/tauri/src-tauri/src/profiles_windows_tests.rs @@ -29,6 +29,56 @@ impl AuthRecognizer for AcceptAuth { } } +#[test] +fn windows_native_keyring_handles_full_sized_logins_and_legacy_credentials() { + struct Cleanup(String); + impl Drop for Cleanup { + fn drop(&mut self) { + let _ = KeyringSecretStore.delete(&self.0); + } + } + + let id = format!("native-credential-test-{}", Uuid::new_v4()); + let _cleanup = Cleanup(id.clone()); + let secret = serde_json::json!({ + "auth_mode": "chatgpt", + "tokens": { + "access_token": "inert-access-token-".repeat(300), + "id_token": "inert-id-token-".repeat(350), + "refresh_token": "inert-refresh-token-".repeat(200), + }, + }) + .to_string(); + + // Read the exact single-entry format used by releases before this fix. + let legacy = keyring::Entry::new(KEYRING_SERVICE, &id).unwrap(); + legacy.set_password("legacy synthetic credential").unwrap(); + assert_eq!( + KeyringSecretStore.get(&id).unwrap(), + "legacy synthetic credential" + ); + assert!(matches!( + legacy.set_password(&secret), + Err(keyring::Error::TooLong(_, _)) + )); + + KeyringSecretStore.set(&id, &secret).unwrap(); + // A fresh store handle reconstructs the full credential from native entries. + assert_eq!(KeyringSecretStore.get(&id).unwrap(), secret); + KeyringSecretStore + .set(&id, "replacement synthetic credential") + .unwrap(); + assert_eq!( + KeyringSecretStore.get(&id).unwrap(), + "replacement synthetic credential" + ); + KeyringSecretStore.delete(&id).unwrap(); + assert!(matches!( + legacy.get_password(), + Err(keyring::Error::NoEntry) + )); +} + fn fixture() -> (tempfile::TempDir, ProfileService) { let temp = tempfile::tempdir().unwrap(); let root = temp diff --git a/tauri/src-tauri/src/windows_credentials.rs b/tauri/src-tauri/src/windows_credentials.rs new file mode 100644 index 00000000..77c839ba --- /dev/null +++ b/tauri/src-tauri/src/windows_credentials.rs @@ -0,0 +1,359 @@ +//! Windows generic credentials hold at most 2,560 bytes. The keyring backend +//! encodes passwords as UTF-16, so full OAuth JSON needs multiple entries. +//! Publish a new generation only after all its chunks have been saved. +use super::{Result, MAX_AUTH_BYTES}; +use serde::{Deserialize, Serialize}; +use uuid::Uuid; + +const MAX_UTF16_UNITS: usize = 1280; +const REFERENCE_PREFIX: &str = "multi-codex-chunks-v1:"; +const SAVE_ERROR: &str = "Windows Credential Manager could not save this account"; +const READ_ERROR: &str = "Windows Credential Manager could not read this account"; +const DELETE_ERROR: &str = "Windows Credential Manager could not delete this account"; + +trait Backend { + fn read(&self, key: &str) -> keyring::Result; + fn write(&self, key: &str, value: &str) -> keyring::Result<()>; + fn delete(&self, key: &str) -> keyring::Result<()>; +} + +#[cfg(windows)] +struct NativeBackend; + +#[cfg(windows)] +impl Backend for NativeBackend { + fn read(&self, key: &str) -> keyring::Result { + keyring::Entry::new(super::KEYRING_SERVICE, key)?.get_password() + } + fn write(&self, key: &str, value: &str) -> keyring::Result<()> { + keyring::Entry::new(super::KEYRING_SERVICE, key)?.set_password(value) + } + fn delete(&self, key: &str) -> keyring::Result<()> { + keyring::Entry::new(super::KEYRING_SERVICE, key)?.delete_credential() + } +} + +#[derive(Serialize, Deserialize)] +#[serde(deny_unknown_fields)] +struct Reference { + generation: Uuid, + chunks: usize, +} + +impl Reference { + fn key(&self, id: &str, index: usize) -> String { + format!("{id}:chunk:{}:{index}", self.generation) + } +} + +fn parse_reference(value: &str) -> Result> { + let Some(json) = value.strip_prefix(REFERENCE_PREFIX) else { + return Ok(None); + }; + let reference: Reference = serde_json::from_str(json) + .map_err(|_| "The saved Windows credential reference is invalid".to_string())?; + if reference.chunks == 0 || reference.chunks > MAX_AUTH_BYTES.div_ceil(MAX_UTF16_UNITS - 1) { + return Err("The saved Windows credential reference is invalid".into()); + } + Ok(Some(reference)) +} + +fn split_secret(secret: &str) -> Vec<&str> { + let mut chunks = Vec::new(); + let mut start = 0; + let mut units = 0; + for (index, character) in secret.char_indices() { + if units + character.len_utf16() > MAX_UTF16_UNITS { + chunks.push(&secret[start..index]); + start = index; + units = 0; + } + units += character.len_utf16(); + } + chunks.push(&secret[start..]); + chunks +} + +fn delete_chunks(backend: &impl Backend, id: &str, reference: &Reference) -> Result<()> { + let mut failed = false; + for index in 0..reference.chunks { + match backend.delete(&reference.key(id, index)) { + Ok(()) | Err(keyring::Error::NoEntry) => {} + Err(_) => failed = true, + } + } + if failed { + Err(DELETE_ERROR.into()) + } else { + Ok(()) + } +} + +fn save_with(backend: &impl Backend, id: &str, secret: &str) -> Result<()> { + if secret.len() > MAX_AUTH_BYTES { + return Err("The account credential is too large".into()); + } + let previous = match backend.read(id) { + Ok(value) if value == secret => return Ok(()), + Ok(value) => parse_reference(&value)?, + Err(keyring::Error::NoEntry) => None, + Err(_) => return Err(READ_ERROR.into()), + }; + if previous.is_some() && load_with(backend, id).is_ok_and(|stored| stored == secret) { + // Launches and usage checks synchronize the same credential repeatedly. + // Reuse its existing generation instead of rewriting the whole vault. + return Ok(()); + } + let chunks = split_secret(secret); + if chunks.len() == 1 { + backend + .write(id, secret) + .map_err(|_| SAVE_ERROR.to_string())?; + } else { + let next = Reference { + generation: Uuid::new_v4(), + chunks: chunks.len(), + }; + let root = format!( + "{REFERENCE_PREFIX}{}", + serde_json::to_string(&next).map_err(|_| SAVE_ERROR.to_string())? + ); + for (index, chunk) in chunks.iter().enumerate() { + if backend.write(&next.key(id, index), chunk).is_err() { + let _ = delete_chunks(backend, id, &next); + return Err(SAVE_ERROR.into()); + } + } + if backend.write(id, &root).is_err() { + let _ = delete_chunks(backend, id, &next); + return Err(SAVE_ERROR.into()); + } + } + if let Some(previous) = previous { + // The new value is committed. A failed old-generation cleanup must not + // report the save as failed and trigger a caller's credential rollback. + let _ = delete_chunks(backend, id, &previous); + } + Ok(()) +} + +fn load_with(backend: &impl Backend, id: &str) -> Result { + let value = backend.read(id).map_err(|_| READ_ERROR.to_string())?; + let Some(reference) = parse_reference(&value)? else { + return Ok(value); + }; + let mut secret = String::new(); + for index in 0..reference.chunks { + let chunk = backend + .read(&reference.key(id, index)) + .map_err(|_| READ_ERROR.to_string())?; + if chunk.encode_utf16().count() > MAX_UTF16_UNITS + || secret.len() + chunk.len() > MAX_AUTH_BYTES + { + return Err("The saved Windows credential is invalid".into()); + } + secret.push_str(&chunk); + } + Ok(secret) +} + +fn remove_with(backend: &impl Backend, id: &str) -> Result<()> { + let value = match backend.read(id) { + Ok(value) => value, + Err(keyring::Error::NoEntry) => return Ok(()), + Err(_) => return Err(READ_ERROR.into()), + }; + if let Some(reference) = parse_reference(&value)? { + // Retain the reference on a partial failure so deletion can be retried. + delete_chunks(backend, id, &reference)?; + } + match backend.delete(id) { + Ok(()) | Err(keyring::Error::NoEntry) => Ok(()), + Err(_) => Err(DELETE_ERROR.into()), + } +} + +#[cfg(windows)] +static CREDENTIAL_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(()); + +#[cfg(windows)] +pub(super) fn save(id: &str, secret: &str) -> Result<()> { + let _guard = CREDENTIAL_LOCK.lock().map_err(|_| SAVE_ERROR.to_string())?; + save_with(&NativeBackend, id, secret) +} + +#[cfg(windows)] +pub(super) fn load(id: &str) -> Result { + let _guard = CREDENTIAL_LOCK.lock().map_err(|_| READ_ERROR.to_string())?; + load_with(&NativeBackend, id) +} + +#[cfg(windows)] +pub(super) fn remove(id: &str) -> Result<()> { + let _guard = CREDENTIAL_LOCK + .lock() + .map_err(|_| DELETE_ERROR.to_string())?; + remove_with(&NativeBackend, id) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::cell::{Cell, RefCell}; + use std::collections::HashMap; + + #[derive(Default)] + struct LimitedBackend { + values: RefCell>, + fail_write_at: Cell>, + writes: Cell, + } + + impl Backend for LimitedBackend { + fn read(&self, key: &str) -> keyring::Result { + self.values + .borrow() + .get(key) + .cloned() + .ok_or(keyring::Error::NoEntry) + } + fn write(&self, key: &str, value: &str) -> keyring::Result<()> { + let write = self.writes.get(); + self.writes.set(write + 1); + if self.fail_write_at.get() == Some(write) { + return Err(keyring::Error::NoDefaultStore); + } + if value.encode_utf16().count() > MAX_UTF16_UNITS { + return Err(keyring::Error::TooLong( + "password encoded as UTF-16".into(), + 2560, + )); + } + self.values.borrow_mut().insert(key.into(), value.into()); + Ok(()) + } + fn delete(&self, key: &str) -> keyring::Result<()> { + self.values + .borrow_mut() + .remove(key) + .map(|_| ()) + .ok_or(keyring::Error::NoEntry) + } + } + + fn oauth_json() -> String { + serde_json::json!({ + "auth_mode": "chatgpt", + "tokens": { + "id_token": "inert-id-token-".repeat(350), + "access_token": "inert-access-token-".repeat(300), + "refresh_token": "inert-refresh-token-".repeat(200), + }, + }) + .to_string() + } + + #[test] + fn oauth_sized_credentials_round_trip_and_delete_without_affecting_peers() { + let backend = LimitedBackend::default(); + let secret = oauth_json(); + assert!( + backend.write("account", &secret).is_err(), + "Old single-entry storage must reproduce the Windows size failure" + ); + save_with(&backend, "peer", "peer credential").unwrap(); + save_with(&backend, "account", &secret).unwrap(); + assert_eq!(load_with(&backend, "account").unwrap(), secret); + remove_with(&backend, "account").unwrap(); + remove_with(&backend, "account").unwrap(); + assert_eq!(backend.values.borrow().len(), 1); + assert_eq!(load_with(&backend, "peer").unwrap(), "peer credential"); + } + + #[test] + fn preserves_legacy_values_and_reclaims_previous_generations_on_updates() { + let backend = LimitedBackend::default(); + backend.write("account", "legacy credential").unwrap(); + assert_eq!(load_with(&backend, "account").unwrap(), "legacy credential"); + save_with(&backend, "account", &oauth_json()).unwrap(); + let before = backend.values.borrow().clone(); + let writes = backend.writes.get(); + save_with(&backend, "account", &oauth_json()).unwrap(); + assert_eq!(*backend.values.borrow(), before); + assert_eq!(backend.writes.get(), writes); + let previous_keys: Vec<_> = backend + .values + .borrow() + .keys() + .filter(|key| *key != "account") + .cloned() + .collect(); + save_with(&backend, "account", &"replacement-".repeat(500)).unwrap(); + assert_eq!( + load_with(&backend, "account").unwrap(), + "replacement-".repeat(500) + ); + assert!(previous_keys + .iter() + .all(|key| !backend.values.borrow().contains_key(key))); + save_with(&backend, "account", "short replacement").unwrap(); + assert_eq!(backend.values.borrow().len(), 1); + } + + #[test] + fn counts_utf16_units_and_never_splits_unicode_characters() { + let backend = LimitedBackend::default(); + for secret in [ + "a".repeat(1280), + "a".repeat(1281), + "a".repeat(1279) + &"🔑工具".repeat(700), + ] { + save_with(&backend, "account", &secret).unwrap(); + assert_eq!(load_with(&backend, "account").unwrap(), secret); + assert!(backend + .values + .borrow() + .values() + .all(|value| value.encode_utf16().count() <= MAX_UTF16_UNITS)); + } + } + + #[test] + fn failed_chunk_or_root_writes_preserve_existing_credentials_and_remove_new_chunks() { + for existing in ["legacy credential".to_string(), oauth_json()] { + for failed_write in [0, 1, 3] { + let backend = LimitedBackend::default(); + save_with(&backend, "account", &existing).unwrap(); + let before = backend.values.borrow().clone(); + backend.writes.set(0); + backend.fail_write_at.set(Some(failed_write)); + // Three chunks, followed by the root reference at write 3. + assert!(save_with(&backend, "account", &"x".repeat(3000)).is_err()); + assert_eq!(*backend.values.borrow(), before); + assert_eq!(load_with(&backend, "account").unwrap(), existing); + } + } + } + + #[test] + fn rejects_malformed_references_and_missing_chunks_without_returning_partial_secrets() { + let backend = LimitedBackend::default(); + backend + .write( + "account", + &format!( + "{REFERENCE_PREFIX}{{\"generation\":\"{}\",\"chunks\":1000000}}", + Uuid::new_v4() + ), + ) + .unwrap(); + assert!(load_with(&backend, "account").is_err()); + backend.values.borrow_mut().clear(); + save_with(&backend, "account", &oauth_json()).unwrap(); + let reference = parse_reference(&backend.read("account").unwrap()) + .unwrap() + .unwrap(); + backend.delete(&reference.key("account", 1)).unwrap(); + assert!(load_with(&backend, "account").is_err()); + } +} diff --git a/tauri/src-tauri/tauri.conf.json b/tauri/src-tauri/tauri.conf.json index 3cd4c00e..10f84ef0 100644 --- a/tauri/src-tauri/tauri.conf.json +++ b/tauri/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Multi Codex", - "version": "1.4.0", + "version": "1.4.1", "identifier": "com.multicodex.desktop", "build": { "beforeDevCommand": "npm run dev", From d940eef12f0d750c9f856c2ed5d8dd5a38be7c81 Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Fri, 9 Oct 2026 18:38:11 +0530 Subject: [PATCH 2/6] fix(ci): select installer regression shells with literal steps GitHub rejects the dynamic shell expression in a reusable workflow. Keep both native PowerShell versions using explicit shells and matrix conditions. --- .github/workflows/windows.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a22b62da..e45a2f7f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,8 +22,13 @@ jobs: shell: [powershell, pwsh] steps: - uses: actions/checkout@v4 - - name: Verify binary checksum manifests and reject invalid downloads - shell: ${{ matrix.shell }} + - name: Verify checksum manifests in Windows PowerShell 5.1 + if: matrix.shell == 'powershell' + shell: powershell + run: ./tauri/scripts/windows-installer-regressions.ps1 + - name: Verify checksum manifests in PowerShell 7 + if: matrix.shell == 'pwsh' + shell: pwsh run: ./tauri/scripts/windows-installer-regressions.ps1 windows: From 16e4dc6196dd327298d25288cc0b29413ec809c3 Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Fri, 9 Oct 2026 18:48:53 +0530 Subject: [PATCH 3/6] test(macos): wait for CLI fixture process identity after exec The native Terminal fixture writes its startup marker before replacing its shell. Wait for the same PID's process inspection to settle, keeping all isolation and mutation guard assertions intact. --- tauri/src-tauri/src/profiles.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tauri/src-tauri/src/profiles.rs b/tauri/src-tauri/src/profiles.rs index 539fb3b3..95be4348 100644 --- a/tauri/src-tauri/src/profiles.rs +++ b/tauri/src-tauri/src/profiles.rs @@ -3577,6 +3577,12 @@ mod tests { } let captured = fs::read_to_string(capture).expect("Terminal did not run the isolated CLI"); let pid = captured.lines().next().unwrap().parse::().unwrap(); + // The fixture writes its marker before exec. macOS can briefly fail + // process inspection while that PID changes from the shell to sleep. + let deadline = Instant::now() + Duration::from_secs(15); + while !process_uses_profile(pid, &paths.codex_home) && Instant::now() < deadline { + std::thread::sleep(Duration::from_millis(100)); + } let detected = process_uses_profile(pid, &paths.codex_home); let running = service .list_profiles() From 179a433aa67770fb19fcea09f903f474717610dd Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Fri, 9 Oct 2026 18:50:45 +0530 Subject: [PATCH 4/6] test(windows): inspect shortcuts in the redirected fixture home NSIS runs with the fixture's redirected APPDATA, while PowerShell's known-folder cache can retain the original home. Inspect both locations and record shortcut targets while still requiring one shortcut to the exact installed app. --- tauri/scripts/windows-installer-smoke.ps1 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tauri/scripts/windows-installer-smoke.ps1 b/tauri/scripts/windows-installer-smoke.ps1 index 0d207507..15d03228 100644 --- a/tauri/scripts/windows-installer-smoke.ps1 +++ b/tauri/scripts/windows-installer-smoke.ps1 @@ -61,10 +61,18 @@ function Check-StartMenu { $application = Join-Path $install 'multi-codex-desktop.exe' $shell = New-Object -ComObject WScript.Shell try { - $programs = [Environment]::GetFolderPath('Programs') - $links = @(Get-ChildItem -LiteralPath $programs -Filter 'Multi Codex.lnk' -Recurse -File | Where-Object { - $shell.CreateShortcut($_.FullName).TargetPath -ieq $application + # This fixture redirects APPDATA after PowerShell has initialized its + # known-folder cache. The newly spawned NSIS process expands that path. + $programs = @([Environment]::GetFolderPath('Programs'), (Join-Path $env:APPDATA 'Microsoft/Windows/Start Menu/Programs')) | Select-Object -Unique + $observed = @(foreach ($directory in $programs) { + if (Test-Path -LiteralPath $directory) { + foreach ($link in Get-ChildItem -LiteralPath $directory -Filter 'Multi Codex.lnk' -Recurse -File) { + @{ path=$link.FullName; target=$shell.CreateShortcut($link.FullName).TargetPath } + } + } }) + $observed | ConvertTo-Json | Set-Content (Join-Path $evidence 'start-menu-shortcuts.json') + $links = @($observed | Where-Object { $_.target -ieq $application } | Sort-Object -Property path -Unique) if ($links.Count -ne 1) { throw 'The installer must create one Start menu shortcut to the installed app.' } } finally { [void][Runtime.InteropServices.Marshal]::ReleaseComObject($shell) } } From 57c01170667a0932a02af88ef1aaa1607646e338 Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Fri, 9 Oct 2026 19:07:19 +0530 Subject: [PATCH 5/6] test(windows): verify Unicode shortcut identity and launch it Use native IShellLinkW instead of the legacy automation path reader for Unicode targets, and open the actual Start menu link during install/update checks. Retain built installer candidates for failure diagnostics without bypassing publication gates. --- .github/workflows/windows.yml | 1 + tauri/scripts/windows-installer-smoke.ps1 | 32 ++++++++++++++++++----- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e45a2f7f..ee702b49 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -146,6 +146,7 @@ jobs: name: windows-installer-evidence path: ${{ runner.temp }}/multi-codex-windows-evidence/ - uses: actions/upload-artifact@v4 + if: always() with: name: windows-installer path: tauri/src-tauri/target/release/bundle/nsis/*.exe diff --git a/tauri/scripts/windows-installer-smoke.ps1 b/tauri/scripts/windows-installer-smoke.ps1 index 15d03228..5e0ae4ed 100644 --- a/tauri/scripts/windows-installer-smoke.ps1 +++ b/tauri/scripts/windows-installer-smoke.ps1 @@ -51,10 +51,27 @@ function Invoke-WebRequest { Add-Type @' using System; using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; +using System.Text; +[ComImport, Guid("00021401-0000-0000-C000-000000000046")] +public class UnicodeShellLink { } +[ComImport, Guid("000214F9-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] +public interface UnicodeShellLinkPath { + void GetPath([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder path, int length, IntPtr findData, uint flags); +} public static class LauncherWindows { [DllImport("user32.dll")] public static extern bool IsZoomed(IntPtr window); [DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr window); [DllImport("user32.dll")] public static extern IntPtr SendMessage(IntPtr window, uint msg, IntPtr wParam, IntPtr lParam); + public static string ShortcutTarget(string path) { + object link = new UnicodeShellLink(); + try { + ((IPersistFile)link).Load(path, 0); + var target = new StringBuilder(32768); + ((UnicodeShellLinkPath)link).GetPath(target, target.Capacity, IntPtr.Zero, 4); + return target.ToString(); + } finally { Marshal.FinalReleaseComObject(link); } + } } '@ function Check-StartMenu { @@ -67,18 +84,20 @@ function Check-StartMenu { $observed = @(foreach ($directory in $programs) { if (Test-Path -LiteralPath $directory) { foreach ($link in Get-ChildItem -LiteralPath $directory -Filter 'Multi Codex.lnk' -Recurse -File) { - @{ path=$link.FullName; target=$shell.CreateShortcut($link.FullName).TargetPath } + @{ path=$link.FullName; target=[LauncherWindows]::ShortcutTarget($link.FullName); legacyAutomationTarget=$shell.CreateShortcut($link.FullName).TargetPath } } } }) $observed | ConvertTo-Json | Set-Content (Join-Path $evidence 'start-menu-shortcuts.json') $links = @($observed | Where-Object { $_.target -ieq $application } | Sort-Object -Property path -Unique) if ($links.Count -ne 1) { throw 'The installer must create one Start menu shortcut to the installed app.' } + return $links[0].path } finally { [void][Runtime.InteropServices.Marshal]::ReleaseComObject($shell) } } function Check-Window { + param([string]$LaunchPath = (Join-Path $install 'multi-codex-desktop.exe')) $application = Join-Path $install 'multi-codex-desktop.exe' - $app = Start-Process -FilePath $application -PassThru + $app = Start-Process -FilePath $LaunchPath -PassThru try { $deadline = [DateTime]::UtcNow.AddSeconds(45) do { @@ -88,6 +107,7 @@ function Check-Window { Start-Sleep -Milliseconds 250 } while ([DateTime]::UtcNow -lt $deadline) if ($app.MainWindowHandle -eq 0) { throw 'Packaged app has no native window' } + if ($app.Path -ine $application) { throw 'Shortcut started an unexpected executable' } if (![LauncherWindows]::IsZoomed($app.MainWindowHandle)) { throw 'Launcher did not start maximized' } Start-Sleep -Seconds 3 $app.Refresh() @@ -107,12 +127,12 @@ try { $candidateChecksumValid = $true & (Join-Path $scriptsRoot 'install-app.ps1') -NoLaunch -InstallDirectory $install Assert-Fixtures - Check-StartMenu - Check-Window + $startMenuShortcut = Check-StartMenu + Check-Window -LaunchPath $startMenuShortcut & (Join-Path $scriptsRoot 'update-app.ps1') -NoLaunch -InstallDirectory $install Assert-Fixtures - Check-StartMenu - Check-Window + $startMenuShortcut = Check-StartMenu + Check-Window -LaunchPath $startMenuShortcut Check-Window $result = @{ passed=$true; install=$true; update=$true; restart=$true; nativeVisibleWindow=$true; startMenuShortcut=$true; maximized=$true; closeExits=$true; checksumMismatchRejected=$true; profileAndConversationFixturesPreserved=$true; unicodeAndSpacedPaths=$true; installerSHA256=(Get-FileHash $candidateInstallerPath -Algorithm SHA256).Hash.ToLower(); authenticatedAccounts='synthetic fixtures; no real credentials'; environment=[Environment]::OSVersion.VersionString; testedAt=[DateTime]::UtcNow.ToString('o') } $result | ConvertTo-Json | Set-Content (Join-Path $evidence 'installer-result.json') From 1346200b2d2c4374abd08476d433f5e567f7931c Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Fri, 9 Oct 2026 19:22:17 +0530 Subject: [PATCH 6/6] chore(release): record validated v1.4.1 package hashes All 15 required gates passed for the exact candidate assets, including native Windows credentials and Start menu launches, four extracted VSIX packages, Mac menus and packaged Hyprland window checks. Record source provenance and remaining authentication/signing/desktop-matrix limits. --- release/evidence/v1.4.1-launcher-window.json | 76 ++++ release/evidence/v1.4.1-local-validation.json | 64 ++++ release/evidence/v1.4.1-validation.json | 324 ++++++++++++++++++ .../evidence/v1.4.1-windows-installer.json | 22 ++ release/notes/v1.4.1.md | 2 +- 5 files changed, 487 insertions(+), 1 deletion(-) create mode 100644 release/evidence/v1.4.1-launcher-window.json create mode 100644 release/evidence/v1.4.1-local-validation.json create mode 100644 release/evidence/v1.4.1-validation.json create mode 100644 release/evidence/v1.4.1-windows-installer.json diff --git a/release/evidence/v1.4.1-launcher-window.json b/release/evidence/v1.4.1-launcher-window.json new file mode 100644 index 00000000..105357fc --- /dev/null +++ b/release/evidence/v1.4.1-launcher-window.json @@ -0,0 +1,76 @@ +{ + "schemaVersion": 1, + "version": "1.4.1", + "sourceCommit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "artifact": "Multi.Codex_1.4.1_amd64.AppImage", + "sha256": "af954e950f3f8c4f07f51b490cc300b1777067759f3126938e0f38db2eb682a7", + "status": "passed", + "environment": "Arch Linux x64, live Hyprland 0.56.2", + "testedBy": "Codex in local desktop session", + "testedAt": "2026-10-09T13:16:01.562792+00:00", + "runs": [ + { + "passed": true, + "target": "vscode", + "before": { + "floating": false, + "fullscreen": 1, + "size": [ + 1908, + 1148 + ] + }, + "afterLaunch": { + "floating": false, + "fullscreen": 1, + "size": [ + 1908, + 1148 + ] + }, + "afterClose": { + "floating": false, + "fullscreen": 1, + "size": [ + 1908, + 1148 + ] + }, + "desktopSwitchCycles": 3, + "repairedFloatingRestore": true, + "temporaryData": true + }, + { + "passed": true, + "target": "standalone", + "before": { + "floating": false, + "fullscreen": 1, + "size": [ + 1908, + 1148 + ] + }, + "afterLaunch": { + "floating": false, + "fullscreen": 1, + "size": [ + 1908, + 1148 + ] + }, + "afterClose": { + "floating": false, + "fullscreen": 1, + "size": [ + 1908, + 1148 + ] + }, + "desktopSwitchCycles": 3, + "repairedFloatingRestore": true, + "temporaryData": true + } + ], + "scope": "Exact AppImage with disposable launcher/Code/standalone homes; maximize persistence, three desktop switches per target, floating restore repair. No authentication tested." +} diff --git a/release/evidence/v1.4.1-local-validation.json b/release/evidence/v1.4.1-local-validation.json new file mode 100644 index 00000000..09c3f387 --- /dev/null +++ b/release/evidence/v1.4.1-local-validation.json @@ -0,0 +1,64 @@ +{ + "schemaVersion": 1, + "version": "1.4.1", + "sourceCommit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "testedAt": "2026-10-09T13:10:56.539513+00:00", + "environment": "Arch Linux x64, live Hyprland 0.56.2", + "checks": { + "frontend": { + "passed": 82, + "failed": 0, + "build": "passed" + }, + "rust": { + "passed": 93, + "failed": 0, + "ignored": 3, + "format": "passed" + }, + "extension": { + "passed": 42, + "failed": 0, + "skipped": 2 + }, + "powershellInstallerRegression": { + "passed": 10, + "failed": 0, + "version": "7.4.13" + }, + "releasePackaging": "passed", + "releaseGateTests": { + "passed": 7, + "failed": 0 + }, + "trackedSecretScan": "passed", + "website": { + "build": "passed", + "typecheck": "passed", + "chromiumAndMobile": { + "passed": 42, + "failed": 0 + }, + "webkit": "native CI required; local WebKit legacy runtime dependencies unavailable", + "nativeBrowserCI": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938165679", + "environments": [ + "Ubuntu 22.04", + "macOS 26" + ], + "projects": [ + "Chromium", + "WebKit", + "mobile Chromium" + ], + "settingsScenariosPerOS": 8 + } + }, + "liveHyprland": { + "inventory": "passed", + "vscodePlacement": "passed with MULTI_CODEX_TEST_HYPR_PLACEMENT=1", + "scope": "Disposable Code profiles; native placement test, packaged launcher validation recorded separately" + } + } +} diff --git a/release/evidence/v1.4.1-validation.json b/release/evidence/v1.4.1-validation.json new file mode 100644 index 00000000..bf9be1e0 --- /dev/null +++ b/release/evidence/v1.4.1-validation.json @@ -0,0 +1,324 @@ +{ + "schemaVersion": 1, + "version": "1.4.1", + "extensionVersion": "0.2.1", + "sourceCommit": "57c01170667a0932a02af88ef1aaa1607646e338", + "artifacts": { + "Multi.Codex-1.4.1-1.x86_64.rpm": "d84dcdf15b824654fa02283565064106221f6f9e5c9dae5f78355e2844394f0f", + "Multi.Codex_1.4.1_aarch64.dmg": "32a26e6d19799540621c8be40b3f2c6487f36f64e1e3e8ecab19bbd8306a7948", + "Multi.Codex_1.4.1_amd64.AppImage": "af954e950f3f8c4f07f51b490cc300b1777067759f3126938e0f38db2eb682a7", + "Multi.Codex_1.4.1_amd64.deb": "2554dce72112eac9bca48b62ec83d6bdffb8f634349a1b51bb04aee89e17c7f5", + "Multi.Codex_1.4.1_x64-setup.exe": "3d1a46a366c0a14eed3654c259e3f1ec5132897ec336542e78e206c5667789d1", + "install-app.ps1": "320e0389ffa6db2f82c2d914f64200a36dfb5b55bbb39d182c4b6d3d820a46de", + "install-app.sh": "43ad224c6f7d3a8c75870cf92513d1b23c5c0f1675bc9f19564685c4c7faf43d", + "multi-codex-darwin-arm64-0.2.1.vsix": "233ddc8d24b11ff390e8ca73f7d818b01ecbad13a05cd6140ad3a919942228c4", + "multi-codex-darwin-x64-0.2.1.vsix": "0f5f0896f0e1dfe262990798304f73b376c1c303c899f0a8a5eefca9ef9aae01", + "multi-codex-linux-x64-0.2.1.vsix": "8f930b00d69de475ae88be74e4d515230d6ce14ffa57fb42258d9b8385766560", + "multi-codex-win32-x64-0.2.1.vsix": "2ec2b5dc0e75ca3a40cb6dc08b5d304858f01bf4db1a793706530d3b7569a7d5", + "update-app.ps1": "320e0389ffa6db2f82c2d914f64200a36dfb5b55bbb39d182c4b6d3d820a46de", + "update-app.sh": "43ad224c6f7d3a8c75870cf92513d1b23c5c0f1675bc9f19564685c4c7faf43d" + }, + "releaseChecks": { + "linux-build": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "Ubuntu 22.04 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:12:36Z", + "scope": "Native frontend/Rust/helper build and packaged release assets." + }, + "linux-installer": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "Ubuntu 22.04 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:12:36Z", + "scope": "Exact package install/update with unchanged account/chat/default-login fixtures. Mac also checks installed native startup/restart and unsigned-package opt-in." + }, + "linux-isolation": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938165679", + "environment": "Ubuntu 22.04 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:40:35Z", + "scope": "Current native account/process/credential/mutation guard regressions. Mac includes native Keychain, VS Code, Terminal and pinned standalone startup/restart; real authenticated evidence is carried forward from unchanged platform flows.", + "authenticatedEvidence": "https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.3.5-auth-isolation.json" + }, + "macos-build": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "macOS 26 Apple Silicon", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:14:04Z", + "scope": "Native frontend/Rust/helper build and packaged release assets." + }, + "macos-installer": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "macOS 26 Apple Silicon", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:14:04Z", + "scope": "Exact package install/update with unchanged account/chat/default-login fixtures. Mac also checks installed native startup/restart and unsigned-package opt-in." + }, + "macos-isolation": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938165679", + "environment": "macOS 26 Apple Silicon", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:44:12Z", + "scope": "Current native account/process/credential/mutation guard regressions. Mac includes native Keychain, VS Code, Terminal and pinned standalone startup/restart; real authenticated evidence is carried forward from unchanged platform flows.", + "authenticatedEvidence": "https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.3.5-auth-isolation.json" + }, + "windows-build": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938157031", + "environment": "Windows Server 2025 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:49:52Z", + "scope": "Native Rust/frontend/helper tests and NSIS packaging, including full-sized synthetic OAuth save/read/replace/delete in real Credential Manager." + }, + "windows-installer": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938157031", + "environment": "Windows Server 2025 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:49:52Z", + "scope": "Exact NSIS install/update/restart, visible maximized window, close/exit, Unicode Start menu shortcut identity and actual native shortcut launch after install/update, checksum mismatch rejection and account/chat preservation. Windows PowerShell 5.1 and PowerShell 7 manifest regressions also pass." + }, + "windows-isolation": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938157031", + "environment": "Windows Server 2025 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:49:52Z", + "scope": "Private ACLs, native credentials, profile/mutation guards, Unicode/spaced paths, separate VS Code/PowerShell/standalone homes and cold restart with synthetic credentials. No real OAuth/browser/cloud validation." + }, + "extension-linux-x64": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "Ubuntu 22.04 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:11:29Z", + "scope": "Extracted exact VSIX in real VS Code: native attachment/startup, A\u2192B\u2192A identity, stable processes, chat continuation, busy/approval/queue guards, recovery and all-account usage. Synthetic loopback fixtures; no real OAuth/cloud quotas." + }, + "extension-darwin-arm64": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "macOS 26 Apple Silicon", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:14:45Z", + "scope": "Extracted exact VSIX in real VS Code: native attachment/startup, A\u2192B\u2192A identity, stable processes, chat continuation, busy/approval/queue guards, recovery and all-account usage. Synthetic loopback fixtures; no real OAuth/cloud quotas." + }, + "extension-darwin-x64": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37934715671", + "environment": "macOS 26 Intel", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:15:28Z", + "scope": "Extracted exact VSIX in real VS Code: native attachment/startup, A\u2192B\u2192A identity, stable processes, chat continuation, busy/approval/queue guards, recovery and all-account usage. Synthetic loopback fixtures; no real OAuth/cloud quotas." + }, + "extension-win32-x64": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938157031", + "environment": "Windows Server 2025 x64", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:49:52Z", + "scope": "Extracted exact VSIX in real VS Code: native attachment/startup, A\u2192B\u2192A identity, stable processes, chat continuation, busy/approval/queue guards, recovery and all-account usage. Synthetic loopback fixtures; no real OAuth/cloud quotas." + }, + "launcher-window": { + "status": "passed", + "environment": "Arch Linux x64, live Hyprland 0.56.2", + "testedBy": "Codex in local desktop session", + "testedAt": "2026-10-09T13:16:01.562792+00:00", + "scope": "Exact AppImage with disposable launcher/Code/standalone homes; maximize persistence, three desktop switches per target, floating restore repair. No authentication tested.", + "evidence": "https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.4.1-launcher-window.json" + }, + "macos-menu-bar": { + "status": "passed", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37935313656", + "environment": "macOS 26 Apple Silicon native System Events UI automation", + "testedBy": "GitHub Actions native runner", + "testedAt": "2026-10-09T13:17:11Z", + "scope": "Exact DMG: supported installed launch targets, account rename and installation updates, close/hide, tray Open, Dock reopen and Quit; metadata preserved. Authenticated menu launches not tested." + } + }, + "checks": { + "packaged-macos-26-arm64": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "macos-signing-notarization": { + "status": "pending", + "reason": "Optional; Apple Developer ID signing and notarization are not configured.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null, + "requiredForPublication": false + }, + "packaged-debian-ubuntu": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "packaged-fedora": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "packaged-arch": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "hyprland-placement": { + "status": "passed", + "environment": "Arch Linux x64, live Hyprland 0.56.2", + "testedBy": "Codex in local desktop session", + "testedAt": "2026-10-09T13:16:01.562792+00:00", + "scope": "Exact AppImage with disposable launcher/Code/standalone homes; maximize persistence, three desktop switches per target, floating restore repair. No authentication tested.", + "evidence": "https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.4.1-launcher-window.json" + }, + "gnome-wayland-placement": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "gnome-x11-placement": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "kde-wayland-placement": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + }, + "kde-x11-placement": { + "status": "pending", + "reason": "Broader distribution/desktop functional matrix remains outside the completed required release checks; see releaseChecks for tested subsets.", + "osVersion": null, + "testedBy": null, + "testedAt": null, + "evidence": null + } + }, + "artifactSources": { + "Multi.Codex-1.4.1-1.x86_64.rpm": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "linux", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "Multi.Codex_1.4.1_aarch64.dmg": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "macos", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "Multi.Codex_1.4.1_amd64.AppImage": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "linux", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "Multi.Codex_1.4.1_amd64.deb": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "linux", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "Multi.Codex_1.4.1_x64-setup.exe": { + "run": 37938157031, + "commit": "57c01170667a0932a02af88ef1aaa1607646e338", + "job": "windows", + "exactPackageTested": true + }, + "install-app.ps1": { + "commit": "57c01170667a0932a02af88ef1aaa1607646e338", + "role": "Checksum-verified installer script tested by native runners" + }, + "install-app.sh": { + "commit": "57c01170667a0932a02af88ef1aaa1607646e338", + "role": "Checksum-verified installer script tested by native runners" + }, + "multi-codex-darwin-arm64-0.2.1.vsix": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "extensions", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "multi-codex-darwin-x64-0.2.1.vsix": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "extensions", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "multi-codex-linux-x64-0.2.1.vsix": { + "run": 37934715671, + "commit": "d940eef12f0d750c9f856c2ed5d8dd5a38be7c81", + "job": "extensions", + "exactPackageTested": true, + "sourceEquivalence": "Later source changes only synchronize a cfg(test) macOS CLI fixture and inspect redirected Windows installer-fixture shortcuts; shipped platform code and package versions are unchanged. Linux/Mac/extension jobs passed; the initial aggregate run had a superseded Windows shortcut-fixture failure." + }, + "multi-codex-win32-x64-0.2.1.vsix": { + "run": 37938157031, + "commit": "57c01170667a0932a02af88ef1aaa1607646e338", + "job": "windows", + "exactPackageTested": true + }, + "update-app.ps1": { + "commit": "57c01170667a0932a02af88ef1aaa1607646e338", + "role": "Checksum-verified installer script tested by native runners" + }, + "update-app.sh": { + "commit": "57c01170667a0932a02af88ef1aaa1607646e338", + "role": "Checksum-verified installer script tested by native runners" + } + }, + "additionalValidation": { + "ci": "https://github.com/wrestle-R/multi-codex/actions/runs/37938165679", + "local": "https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.4.1-local-validation.json" + }, + "publication": { + "status": "validated-candidate", + "fullValidationChecksRemainPending": true, + "signingAndNotarizationOptional": true, + "marketplaceVersion": "0.2.1", + "marketplaceStatus": "Awaiting owner manual upload and Marketplace validation" + }, + "limitations": [ + "Real Windows OAuth/browser sign-in, token rotation and cloud quota enforcement were not exercised; native Credential Manager was tested with full-sized synthetic OAuth JSON.", + "Authenticated Linux/Mac standalone evidence is carried forward with current native regressions.", + "Developer ID signing/notarization and the broader distribution/GNOME/KDE functional matrix remain pending.", + "WSL/Remote SSH and Windows virtual-desktop placement remain deferred." + ] +} diff --git a/release/evidence/v1.4.1-windows-installer.json b/release/evidence/v1.4.1-windows-installer.json new file mode 100644 index 00000000..55935506 --- /dev/null +++ b/release/evidence/v1.4.1-windows-installer.json @@ -0,0 +1,22 @@ +{ + "passed": true, + "profileAndConversationFixturesPreserved": true, + "unicodeAndSpacedPaths": true, + "update": true, + "testedAt": "2026-10-09T13:49:44.5370148Z", + "environment": "Microsoft Windows NT 10.0.26100.0", + "authenticatedAccounts": "synthetic fixtures; no real credentials", + "installerSHA256": "3d1a46a366c0a14eed3654c259e3f1ec5132897ec336542e78e206c5667789d1", + "checksumMismatchRejected": true, + "nativeVisibleWindow": true, + "restart": true, + "maximized": true, + "startMenuShortcut": true, + "install": true, + "closeExits": true, + "schemaVersion": 1, + "version": "1.4.1", + "evidence": "https://github.com/wrestle-R/multi-codex/actions/runs/37938157031", + "testedBy": "GitHub Actions native Windows runner", + "startMenuVerification": "Native IShellLinkW identity and actual shortcut launches after install/update. Legacy automation returns a lossy ANSI path for Unicode characters." +} diff --git a/release/notes/v1.4.1.md b/release/notes/v1.4.1.md index 70612a89..b94d2074 100644 --- a/release/notes/v1.4.1.md +++ b/release/notes/v1.4.1.md @@ -17,7 +17,7 @@ Close Multi Codex, download the installer, and double-click it to install or upd ## Validation -Candidate validation is pending. Publication requires native builds, installer and account-isolation checks, extracted VSIX tests on all four platforms, packaged launcher window checks and macOS menu automation. The completed report will record exact package hashes in [v1.4.1-validation.json](https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.4.1-validation.json). `SHA256SUMS` covers every downloadable package and install/update script. +All 15 required release gates passed across the recorded native runs: Linux/macOS/Windows builds, exact-package installer checks, account-isolation regressions, extracted VSIX tests on all four platforms, packaged Linux launcher window checks and macOS menu automation. Windows checks include full-sized synthetic OAuth credentials in the real vault, PowerShell 5.1 and 7 checksum regressions, and actual Start menu shortcut launches after install and update. The report records exact package hashes in [v1.4.1-validation.json](https://github.com/wrestle-R/multi-codex/blob/main/release/evidence/v1.4.1-validation.json). `SHA256SUMS` covers every downloadable package and install/update script. ## Compatibility and limitations