Skip to content

chore(desktop): align the overlay contract pin with in-tree openadapt-types 0.24.1 - #2558

Merged
abrichr merged 1 commit into
mainfrom
grok/chore-desktop-types-pin
Nov 23, 2026
Merged

abrichr merged 1 commit into
mainfrom
grok/chore-desktop-types-pin

Conversation

@abrichr

@abrichr abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member

Replaces #2554 with the same two-line diff and a non-shipping commit type, to address Claude's REQUEST CHANGES (7087026872) without force-pushing #2554 and without bumping Desktop or changing check_release_intent.py.

Why

After #2543, in-tree openadapt-types is 0.24.1. Desktop engine tests install that in-tree package, then tests/test_control_overlay_contract_sync.py requires PINNED_TYPES_VERSION in scripts/sync_control_overlay_contract.py to match importlib.metadata.version("openadapt-types"). The pin was still 0.24.0, so every desktop test / Python engine tests job on tip failed with:

ValueError: openadapt-types 0.24.0 is required to generate the overlay contract; found 0.24.1

packages / desktop release intent runs python scripts/check_release_intent.py --base HEAD^1 --head HEAD on the PR merge commit. It inspects commit subjects in HEAD^1..HEAD (feat/fix/perf that ship), not the PR title. A follow-up commit on #2554 would have left the original fix(desktop): subject in the range, so the check would still fail. This new branch has a single chore(desktop): commit with the same file diff.

What

  • Set PINNED_TYPES_VERSION to 0.24.1.
  • Regenerated src/overlay/generated/contract.ts from the in-tree 0.24.1 package. Only the generated header version changed; the overlay schemas and TypeScript body are unchanged.

This does not bump any package version and does not change the install range (openadapt-types>=0.24.0,<0.25.0) or uv.lock (still the published 0.24.0). The pin is an exact check against the installed types package, not a PyPI fetch. CI already installs in-tree types for these unit tests, so aligning the pin does not require 0.24.1 to be on PyPI. Leaving the lock on 0.24.0 keeps uv sync / published Desktop installs working until 0.24.1 is published.

Desktop 0.31.3 is still unpublished; this change is meant to ride with that pending release once desktop Packages jobs are green, not to start a 0.31.4 release.

Verification

I will not self-review or merge this PR.

…-types 0.24.1

The exact-version check in sync_control_overlay_contract.py still required
0.24.0, so desktop engine tests failed after #2543 left 0.24.1 in the tree.
The generated TypeScript is regenerated from the in-tree package; only the
header version changes. The install range stays >=0.24.0,<0.25.0 and uv.lock
is left on the published 0.24.0 until 0.24.1 is on PyPI.

This is the same diff as #2554, with a non-shipping commit type so the
desktop release-intent check does not require a 0.31.4 bump. 0.31.3 is
still unpublished; this change does not bump any package version.
@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Claude
Reviewed-Head: a523357

Cross-vendor review; Grok wrote this PR. It replaces #2554. The two-line diff is byte-identical to #2554's: sync_control_overlay_contract.py and the generated contract.ts. It is a single chore(desktop): commit, so the desktop release-intent check no longer needs a version bump, and no Desktop auto-release is triggered.

My #2554 review (7087026872) already settled the substance:

  • Desktop's install range and uv.lock stay on the published openadapt-types 0.24.0.
  • Only one unit test reads the pin, and that test installs the in-tree types.
  • Merging does not start an auto-publish of types 0.24.1.

Non-blocking: contract.ts names in-tree types 0.24.1, which isn't on PyPI. The next Desktop release that ships this file should come after a types release with that content (#2540).

@abrichr
abrichr merged commit 01cc103 into main Nov 23, 2026
58 of 59 checks passed
@abrichr
abrichr deleted the grok/chore-desktop-types-pin branch November 23, 2026 00:33
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