Skip to content

web: pin / header / export axis honesty (chrome polish PR 3) - #106

Merged
Code4me2 merged 2 commits into
mainfrom
cursor/pin-header-export-honesty-fa2d
Sep 1, 2026
Merged

Code4me2 merged 2 commits into
mainfrom
cursor/pin-header-export-honesty-fa2d

Conversation

@Code4me2

@Code4me2 Code4me2 commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Chrome polish PR 3 after #105 (dead-session, aecd035). Web-only. Pin honesty + #100 + header Download.

Closes

#78, #96, #83, #57, #88, #90, #58, #54, #49, #100, #77, #85.

Tracked as the third slice of #103.

Locked decisions (do not reopen)

  • Held pin does not freeze the inspector. The pin is the canvas/export artifact axis; rail selection is the inspector/script axis. Fix the sentence, not the behavior.
  • Follow current with no current build is disabled with a reason, not a discard. Mirror holdUnavailable voice, naming the selected part.
  • Header Export is produce-and-give in the same dialog. Two visible steps: Export runs the keyed mutation; Download fetches bytes (downloadExport) with the byte count before the button.
  • Export mints one idempotency key for two parts, so a held pin permanently wedges the second part's export as key_payload_mismatch #100 gates Download. signature() / Submission include the part so hold-jig + select-kerf_card + export STEP cannot key_payload_mismatch the second part for the life of the page, and must not offer “download the first run” of the other part’s geometry.
  • Do not auto-advance a pin whose mode is pinned. After create_part, follow the new part’s current build only while following current.
  • data-chrome-export / data-chrome-bom / [data-testid="artifact-pin"] stay.

What changed (verified against main, not the issue hunches)

#78 — header copy names the split. pinnedBanner no longer claims “every panel below reports against this artifact.” When the held ref belongs to a different part than part, the chip names which part the held artifact came from (data-pin-from).

#57 / #96 — pin chip is readable. formatRef prints build · 1c657297, not artifact:buil…. The clipped build.current Fact stays attributed (data-source / data-value) and is aria-hidden so it does not announce the bare word true / false.

#83 — header chips are a labelled group. role="group" + aria-label on the pin / Export / BOM cluster.

#88 — selected part row keeps its name. The TreeRow name track has an 8ch floor; dirty badge + build chip yield (flex: 0 1 auto). Rail overflow contract unchanged (279/279, #32 stays closed).

#90 — Follow current is disabled when the selected part has no current build. Reason names the selected part. Click does not discard the held artifact, selection, or measurement.

#58 / #54 / #49 — sticky pin after create_part. After a turn that grows a name the tree did not have, the workspace selects that part and follows its current build unless pin_mode is pinned. INTERFACE.md §4.5 carries the amendment. Rail still refreshes from keys.parts() (refetch, never a merge of the tool result).

#100 — export key includes the part. Submission.part is in signature(). Two parts, same format/pin fields → two keys. A remount of the same part still replays.

#77 / #85 — header Export produce-and-give, after #100. Same dialog: Export, then Download with byte count first. icon="download" is the second step. Inspector keeps history. Refusals mount as role="alert" / aria-live="assertive".

Out of this PR (stays for PR 4 — quiet rail)

Tests

pnpm typecheck, pnpm lint, and pnpm test in web/ all pass on this revision (37 files, 603 tests). Unit coverage added for formatRef / chip, Follow current disabled reason, idempotency key distinct per part (the #100 probe), header download path, pinnedBanner copy, and create_part adopt-unless-held. Existing e2e selectors are unweakened.

Open in Web Open in Cursor 

cursoragent and others added 2 commits September 1, 2026 05:08
Name the canvas/export vs inspector/script split, make the pin chip
and selected rail name readable, disable Follow current when the
selected part has no build, follow a create_part unless the pin is
held, and mint export keys per part so header Download can ship.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
…ffix

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
@Code4me2
Code4me2 marked this pull request as ready for review September 1, 2026 05:10
@Code4me2
Code4me2 merged commit 737c885 into main Sep 1, 2026
18 checks passed
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.

2 participants