From c1f431b83e8f7728fec35c1a5016c00c0be1f821 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 20:25:04 +0000 Subject: [PATCH] =?UTF-8?q?v1.6.7:=20packaging=20fix=20=E2=80=94=20manifes?= =?UTF-8?q?t=20now=20matches=20the=20release=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v1.6.6 tag points one commit before the version bump, so its ZIP shipped manifest 1.6.5 (issue #15). The tag is protected and cannot be moved, so release a new version with identical code. Adds the v1.6.7 release-notes section and updates CLAUDE.md status and release steps. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01JVTmK8vUFzKnuXHHGCEDoF --- CLAUDE.md | 17 +++++++++-------- ConstraintLens/ConstraintLens.manifest | 2 +- RELEASE_NOTES.md | 20 +++++++++++++++++++- 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index e197909..988a878 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,18 +2,18 @@ ## Current Status -**Working on:** Maintenance / community issues. v1.6.0–v1.6.6 merged to `main`; issues #8/#9/#10/#12 closed. **v1.6.5 released 2026-09-04.** **v1.6.6** is community PR #13 (relative imports, by @craigulliott), PC-tested by the maintainer before merging 2026-10-01; release not yet published. **v1.6.5 is PC-verified 2026-09-04** — all five checks on the list below passed (see "v1.6.5 PC test result"). v1.6.4 (issue #11 — palette opens docked right) is **PC-verified 2026-09-03**: docks right on a fresh start, a hand-moved palette survives sketch exit/entry, and the ⇕ presets and grip still work from a palette that starts docked. -**Version:** 1.6.6 (manifest + commit must always match). -**Next step:** tag and publish v1.6.6 (see "Outstanding manual steps"). #11 stays **open** until the original reporter confirms on an actual multi-monitor setup — the maintainer's machine has one monitor and cannot reproduce the bug, so local verification proves the palette docks, not that the off-screen case is cured. +**Working on:** Maintenance / community issues. v1.6.0–v1.6.7 merged to `main` (v1.6.7 once its PR merges); issues #8/#9/#10/#12 closed. **v1.6.5 released 2026-09-04.** **v1.6.6** (community PR #13, relative imports, by @craigulliott; PC-tested before merging) was released 2026-10-01 **but its tag sits one commit before the version bump, so its ZIP ships manifest `1.6.5`** (issue #15). The tag is protected by a repository ruleset and cannot be moved, so **v1.6.7 is the packaging fix** — identical code, correct manifest. **v1.6.5 is PC-verified 2026-09-04** — all five checks on the list below passed (see "v1.6.5 PC test result"). v1.6.4 (issue #11 — palette opens docked right) is **PC-verified 2026-09-03**: docks right on a fresh start, a hand-moved palette survives sketch exit/entry, and the ⇕ presets and grip still work from a palette that starts docked. +**Version:** 1.6.7 (manifest + commit must always match). +**Next step:** tag and publish v1.6.7 (see "Outstanding manual steps"), then answer issue #15 (Community Store listing; ask the maintainer whether to opt out). #11 stays **open** until the original reporter confirms on an actual multi-monitor setup — the maintainer's machine has one monitor and cannot reproduce the bug, so local verification proves the palette docks, not that the off-screen case is cured. Also watch the double-click-to-edit-sketch report — it was traced to the 500 ms poll tick colliding with Windows' double-click threshold, gated to sketch-edit mode only, and is no longer reproducible; timing instrumentation found no other per-click stall (slowest event in the add-in is a 47 ms sketch activation, palette pushes are sub-millisecond). **If it recurs, suspect `_start_sketch_poll` first.** **Convention:** Every commit that bumps the version string must also update `ConstraintLens/ConstraintLens.manifest` `"version"` field so Fusion shows the correct version. **Blocked by:** Nothing. ### Outstanding manual steps -**v1.6.5 was released 2026-09-04**, so the v1.6.6 release body is the **v1.6.6 section of RELEASE_NOTES.md alone** — not a roll-up. The changelog is one section per version; take the section, nothing more. Remaining: -1. ~~PC-test v1.6.6~~ — **done 2026-10-01** by the maintainer, on the PR head before merging. -2. Tag v1.6.6 on the version-bump commit (`git tag v1.6.6 && git push origin v1.6.6` — from a PC; tag pushes fail from cloud sessions). -3. Publish the release: title `Constraint Lens v1.6.6`, body = the v1.6.6 section of RELEASE_NOTES.md, asset `ConstraintLens-v1.6.6.zip`. **Build the asset with `python scripts/package_release.py v1.6.6`** — from the tag, never the worktree, so the download cannot drift from what the tag says. That yields 23 entries, one top-level `ConstraintLens/` folder, no `__pycache__` or tests, ~60 KB. +**v1.6.6 was released 2026-10-01**, so the v1.6.7 release body is the **v1.6.7 section of RELEASE_NOTES.md alone** — not a roll-up. The changelog is one section per version; take the section, nothing more. Remaining: +1. ~~PC-test v1.6.7~~ — not needed: manifest version only, no code change. +2. Tag v1.6.7 **on the merged version-bump commit** — check `git show :ConstraintLens/ConstraintLens.manifest` reads `1.6.7` first (`git tag v1.6.7 && git push origin v1.6.7` — from a PC; tag pushes fail from cloud sessions). **Published tags cannot be moved or deleted** (ruleset: "Cannot update this protected ref"), so a wrong tag costs a whole new version, as v1.6.6 did. +3. Publish the release: title `Constraint Lens v1.6.7`, body = the v1.6.7 section of RELEASE_NOTES.md, asset `ConstraintLens-v1.6.7.zip`. **Build the asset with `python scripts/package_release.py v1.6.7`** — from the tag, never the worktree, so the download cannot drift from what the tag says; the script refuses a tag whose manifest version differs. That yields 23 entries, one top-level `ConstraintLens/` folder, no `__pycache__` or tests, ~60 KB. 4. Reddit reply about the install path (`Utilities`, not `Tools`) — if not already done. 5. Reddit announcement of v1.6.5 — if not already done. 6. Close #11 once the original reporter confirms on real multi-monitor hardware. @@ -54,7 +54,8 @@ python3 tests/headless/palette_ui_check.py # 23 checks, needs playwr - **Docking right works and is visible**: `left=1495 w=420 h=690 dock=4`. - **RESOLVED: Fusion does NOT restore a custom palette's docking state across sessions.** The probe's throwaway returned `itemById -> False` after a restart and came back Floating at (0,0); the maintainer independently confirms having to re-dock ConstraintLens on every launch. **The README claimed the opposite** (from v1.2.1 PC testing) and has been corrected. Consequences: the palette returns to (0,0) every session, which is why the reporter hit the bug repeatedly rather than once; and the fix docks on **every** creation, not first-run-only, with no settings file needed — there is no remembered choice to preserve. -### Recent fixes (v1.0.1–v1.6.6) +### Recent fixes (v1.0.1–v1.6.7) +- v1.6.7: **Packaging fix — the v1.6.6 ZIP reported `1.6.5` (issue #15, @DiegoV71).** The `v1.6.6` tag pointed at the PR #13 merge (`64df593`), one commit before the manifest bump (`ed13909`), and the ZIP is built from the tag. Moving the tag was rejected by a repository tag ruleset, so the fix is a new version with identical code. `scripts/package_release.py` (PR #16, @DiegoV71) now refuses to package a tag whose manifest version differs from the tag. **Tag the bump commit itself, never an earlier one.** The Community Store (4FusionLab/CommunityStore) lists this repo and compares manifest versions, which is why the mismatch mattered. - v1.6.6: **PR #13 (@craigulliott) — relative imports, so add-ins can't swap code.** `ConstraintLens.py` put its own folder on `sys.path` and did `from lib import lifecycle`. Fusion runs every add-in in one interpreter, so the module name `lib` is shared: whichever add-in imported it first won, and the other ran its code. It happened for real — his Fusion Keypad add-in used the same pattern, picked up our `lib.lifecycle`, and our `start()` copied palette icons into his folder. Now `from .lib import lifecycle`, as Autodesk's template does; `lib/` already imported relatively. Tests import `ConstraintLens.lib…` (`_bootstrap.py` puts the repo root on the path, not `ConstraintLens/`), and `test_entry.py` fails against the old entry point. PC-tested by the maintainer on the PR head before merging. **Never reintroduce a `sys.path` insert or an absolute `lib` import.** - v1.6.5: **Per-click and per-scan cost cut; the auto-filter now lets go.** Headless-verified only — see the PC test list above. - **The sketch was described twice per payload.** `_scan_constraints` and `_scan_patterns` each walked all of `geometricConstraints` and ran every descriptor's builder, *then* filtered — so every builder ran twice and half the results were discarded, and `OffsetConstraint` (shown in neither section) was built twice and discarded twice. `_scan_constraint_rows()` decides the section from the kind name *before* building. Row order and contents are unchanged; `test_scanner` asserts the accessor read count is exactly 1. diff --git a/ConstraintLens/ConstraintLens.manifest b/ConstraintLens/ConstraintLens.manifest index 223f00f..d40ea17 100644 --- a/ConstraintLens/ConstraintLens.manifest +++ b/ConstraintLens/ConstraintLens.manifest @@ -6,7 +6,7 @@ "description": { "": "Docked panel listing every sketch constraint in the active sketch — click to select, delete, and diagnose." }, - "version": "1.6.6", + "version": "1.6.7", "runOnStartup": false, "supportedOS": "windows|mac", "editEnabled": true diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 17bb9bb..c5014e9 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,7 +2,25 @@ --- -## v1.6.6 (current) +## v1.6.7 (current) + +**Packaging fix — the v1.6.6 download reported itself as 1.6.5.** + +The `v1.6.6` tag was placed one commit before the version bump, so the v1.6.6 +ZIP shipped a manifest still reading `1.6.5`. Fusion therefore displayed the +wrong version, and anything comparing versions (such as the Fusion Community +Store) could not tell the build apart from the previous release. + +The add-in's code is identical to v1.6.6; only the manifest version changes. +Release ZIPs are now built with `scripts/package_release.py`, which refuses to +package a tag whose manifest version does not match the tag. + +Thanks to [@DiegoV71](https://github.com/DiegoV71) for spotting the mismatch +and contributing the packaging check (Botrops1/ConstraintsLens#15, #16). + +--- + +## v1.6.6 **ConstraintLens no longer trips over other add-ins that name their code the same way.**