Repository navigation
fix(desktop): refresh contract hashes and prevent validation drift - #1996
Merged
Merged
Conversation
hidb4ai
requested review from
AlexStocks,
PsiACE and
frostming
as code owners
October 14, 2026 08:26
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.
Which issue or RFC does this PR close?
Closes #1995.
Rationale for this change
After an OpenAPI update, Desktop's frontend and native operation manifests still contain the previous contract hash.
pnpm lintfails atgenerate:check, skips packaging, and the unconditional artifact upload then adds a missing-files error. Both attempts of the affected Windows run reproduce the same failure.What changes are included in this PR?
make contract-testand the regular Python test suite, using normalized LF content.Are there any user-facing changes?
No public API, persisted format, or migration changes. This fixes generated contract identities and CI failure reporting.
How was this change tested?
python scripts/generate_api.py --checkandpython scripts/generate_js_operations.py --checkpassed.python -m pytest -q tests/test_api_contract.py tests/test_js_operations.py tests/test_desktop_contract.py: 55 passed, using the existing virtual environment.lint,typecheck,test, andbuildpassed with Node 24.14.1 and pnpm 11.13.1; 28 frontend tests passed.prek run -apassed using the existing virtual environment (UV_NO_SYNC=true).git diff --checkpassed.Local validation ran on Linux. Windows installer construction and installed-package acceptance require the PR's Windows CI run.
AI usage statement
Implemented and validated with OpenAI Codex (GPT-6).