Skip to content

fix(cli): a crashed run's release install is recognized by the Node it ran on, whatever its name - #8520

Merged
cixzhang merged 2 commits into
meta:mainfrom
vjeux:uikit/release-install-node-name
Nov 5, 2026
Merged

cixzhang merged 2 commits into
meta:mainfrom
vjeux:uikit/release-install-node-name

Conversation

@vjeux

@vjeux vjeux commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

User impact

A run that finds a crashed run's release-cache lock ends the npm install that run recorded, then takes the lock. npm renames its process to npm install @astryxdesign/cli@… within a fraction of a second, which the takeover recognizes on any Node. Before that, the process shows its original command line, <node> …/npm-cli.js install …, which wasn't recognized when Node's file isn't named node (nodejs on some Linux distributions, a toolchain's node-linux-x64). The release-cache tests check that command line, so foundation/release/cache.test.mjs fails its two lock-takeover cases on such a machine.

Problem and solution fit

  • npmCommand starts npm as this Node (process.execPath) running npm-cli.js, and the lock records that process.
  • isReleaseInstall accepts a Node only by the name pattern ^node[-.\d]*$. So, until npm renames its process, it rejects the very Node the CLI started npm with whenever that Node's file has another name, and endRecordedInstall leaves the install alone.
  • It now also accepts a program with the same file name as the Node npm is started with. The pattern is unchanged, so a program like nodemon running npm-cli.js still isn't a Node.

Expected behavior and authority

endRecordedInstall ends the npm process group a stale lock records when it is surely the lock's install: "this CLI's install … as runNpm starts it" (isReleaseInstall), and runNpm starts it with this Node, whatever its name.

Smallest restoration

isReleaseInstall(argv, version, {node = process.execPath}) accepts argv[0] named like node. Nothing else changes.

Evidence

  • Reproduction before the change: run with a copy of Node named node-linux-x64, cache.test.mjs fails "ends the lock's own install …" and "a run that takes over a dead run's lock ends the install it recorded" (2 of 34).
  • Result after the change: 34 of 34 with that Node and with one named node.
  • Representative unchanged path: the existing cases still reject my-npm-tool, npm in an argument, another version and ci, and accept npm by name and npm.cmd.
  • Regression test: new cases accept node-linux-x64, nodejs and node-win-x64.exe as the Node npm was started with, and reject nodemon. They fail on main.

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

…t ran on, whatever its name

runNpm starts npm as this Node (process.execPath) running npm-cli.js, and the release-cache lock records that process. isReleaseInstall accepted a Node only by the pattern node[-.digits], so on a machine whose Node file is named otherwise (nodejs, node-linux-x64) a run taking over a crashed run's lock never ended the install it recorded. It now also accepts a program with the same file name as the Node npm is started with (the node option, default this one); the pattern is unchanged, so nodemon running npm-cli.js still is not a Node.
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 26, 2026 12:13pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 26, 2026, 12:33 PM UTC

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · ce6d1bb

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
charts/Chart 108.0 kB (not measured) · 458 B CSS (not measured) — — · — · —
charts/ChartTooltip 84.8 kB (not measured) · 386 B CSS (not measured) 352 (not measured) — · — · —
AlertDialog · Storybook 54.4 kB (not measured) · 12.4 kB CSS (not measured) 182 (not measured) — · — · —
215 more components
Component Size LoC Visual · A11y · RTL
AppShell · Storybook 55.5 kB (not measured) · 11.6 kB CSS (not measured) 608 (not measured) — · — · —
AspectRatio · Storybook 3.7 kB (not measured) · 3.5 kB CSS (not measured) 109 (not measured) — · — · —
Avatar 37.3 kB (not measured) · 6.3 kB CSS (not measured) — — · — · —
AvatarGroup 39.6 kB (not measured) · 6.4 kB CSS (not measured) — — · — · —
AvatarGroupOverflow 39.7 kB (not measured) · 6.4 kB CSS (not measured) — — · — · —
AvatarStatusDot 7.1 kB (not measured) · 3.4 kB CSS (not measured) — — · — · —
Badge · Storybook 3.9 kB (not measured) · 3.8 kB CSS (not measured) 217 (not measured) — · — · —
Banner · Storybook 47.7 kB (not measured) · 9.9 kB CSS (not measured) 487 (not measured) — · — · —
BaseTypeahead 53.7 kB (not measured) · 9.9 kB CSS (not measured) — — · — · —
Blockquote 3.5 kB (not measured) · 3.4 kB CSS (not measured) — — · — · —
BottomSheet 26.0 kB (not measured) · 7.7 kB CSS (not measured) — — · — · —
BottomSheetSwitcher 9.2 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
BreadcrumbItem 65.7 kB (not measured) · 11.0 kB CSS (not measured) — — · — · —
Breadcrumbs 22.4 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
Button · Storybook 43.1 kB (not measured) · 9.2 kB CSS (not measured) 584 (not measured) — · — · —
ButtonGroup · Storybook 8.4 kB (not measured) · 3.3 kB CSS (not measured) 128 (not measured) — · — · —
Calendar · Storybook 54.7 kB (not measured) · 10.0 kB CSS (not measured) 1,641 (not measured) — · — · —
Card 6.4 kB (not measured) · 6.3 kB CSS (not measured) — — · — · —
Carousel · Storybook 50.1 kB (not measured) · 10.2 kB CSS (not measured) 486 (not measured) — · — · —
Center · Storybook 4.2 kB (not measured) · 4.6 kB CSS (not measured) 118 (not measured) — · — · —
ChatComposer 60.3 kB (not measured) · 10.8 kB CSS (not measured) — — · — · —
ChatComposerDrawer 23.9 kB (not measured) · 4.5 kB CSS (not measured) — — · — · —
ChatComposerInput 55.3 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
ChatComposerTokenElement 55.3 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
ChatDictationButton 46.4 kB (not measured) · 9.5 kB CSS (not measured) — — · — · —
ChatLayout 48.7 kB (not measured) · 9.9 kB CSS (not measured) — — · — · —
ChatLayoutScrollButton 46.3 kB (not measured) · 9.6 kB CSS (not measured) — — · — · —
ChatMessage 23.1 kB (not measured) · 3.5 kB CSS (not measured) — — · — · —
ChatMessageBubble 7.0 kB (not measured) · 3.6 kB CSS (not measured) — — · — · —
ChatMessageList 28.4 kB (not measured) · 7.8 kB CSS (not measured) — — · — · —
ChatMessageMetadata 25.8 kB (not measured) · 3.9 kB CSS (not measured) — — · — · —
ChatSendButton 45.7 kB (not measured) · 9.2 kB CSS (not measured) — — · — · —
ChatSystemMessage 6.7 kB (not measured) · 3.7 kB CSS (not measured) — — · — · —
ChatTokenizedText 6.9 kB (not measured) · 3.9 kB CSS (not measured) — — · — · —
ChatToolCalls 31.9 kB (not measured) · 8.9 kB CSS (not measured) — — · — · —
CheckboxIndicator 4.1 kB (not measured) · 3.8 kB CSS (not measured) — — · — · —
CheckboxInput · Storybook 49.3 kB (not measured) · 9.3 kB CSS (not measured) 355 (not measured) — · — · —
CheckboxList 45.8 kB (not measured) · 8.1 kB CSS (not measured) — — · — · —
CheckboxListItem 53.4 kB (not measured) · 10.5 kB CSS (not measured) — — · — · —
CheckIndicator 9.0 kB (not measured) · 3.6 kB CSS (not measured) — — · — · —
Citation · Storybook 25.9 kB (not measured) · 4.1 kB CSS (not measured) 229 (not measured) — · — · —
ClickableCard · Storybook 12.8 kB (not measured) · 6.9 kB CSS (not measured) 229 (not measured) — · — · —
Code · Storybook 3.5 kB (not measured) · 3.4 kB CSS (not measured) 81 (not measured) — · — · —
CodeBlock · Storybook 60.3 kB (not measured) · 10.7 kB CSS (not measured) 2,179 (not measured) — · — · —
Collapsible 11.7 kB (not measured) · 4.2 kB CSS (not measured) — — · — · —
CollapsibleGroup 6.4 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
CommandPalette 49.2 kB (not measured) · 11.8 kB CSS (not measured) — — · — · —
CommandPaletteEmpty 6.1 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
CommandPaletteFooter 23.3 kB (not measured) · 3.5 kB CSS (not measured) — — · — · —
CommandPaletteGroup 3.5 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
CommandPaletteInput 31.9 kB (not measured) · 8.1 kB CSS (not measured) — — · — · —
CommandPaletteItem 8.4 kB (not measured) · 3.5 kB CSS (not measured) — — · — · —
CommandPaletteList 22.4 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
ComplexSelector · Storybook 55.1 kB (not measured) · 10.6 kB CSS (not measured) 643 (not measured) — · — · —
ContextMenu · Storybook 77.1 kB (not measured) · 14.5 kB CSS (not measured) 678 (not measured) — · — · —
ContextMenuItem 16.6 kB (not measured) · 5.2 kB CSS (not measured) — — · — · —
DateInput · Storybook 92.3 kB (not measured) · 14.6 kB CSS (not measured) 3,532 (not measured) — · — · —
DateRangeInput · Storybook 68.8 kB (not measured) · 11.2 kB CSS (not measured) 621 (not measured) — · — · —
DateTimeInput · Storybook 102.5 kB (not measured) · 15.1 kB CSS (not measured) 3,609 (not measured) — · — · —
Dialog 13.7 kB (not measured) · 7.1 kB CSS (not measured) — — · — · —
DialogHeader 48.6 kB (not measured) · 9.8 kB CSS (not measured) — — · — · —
Divider · Storybook 6.5 kB (not measured) · 3.6 kB CSS (not measured) 153 (not measured) — · — · —
Drawer 29.2 kB (not measured) · 8.0 kB CSS (not measured) — — · — · —
DrawerHeader 48.7 kB (not measured) · 11.2 kB CSS (not measured) — — · — · —
DropdownMenu 72.1 kB (not measured) · 14.6 kB CSS (not measured) — — · — · —
DropdownMenuCheckboxItem 16.1 kB (not measured) · 5.6 kB CSS (not measured) — — · — · —
DropdownMenuDivider 6.6 kB (not measured) · 3.6 kB CSS (not measured) — — · — · —
DropdownMenuGroup 6.1 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
DropdownMenuItem 15.4 kB (not measured) · 5.2 kB CSS (not measured) — — · — · —
DropdownMenuRadioGroup 6.0 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
DropdownMenuRadioItem 16.2 kB (not measured) · 5.6 kB CSS (not measured) — — · — · —
DropdownMenuSubMenu 57.4 kB (not measured) · 9.5 kB CSS (not measured) — — · — · —
EmptyState · Storybook 7.6 kB (not measured) · 3.5 kB CSS (not measured) 143 (not measured) — · — · —
Field 44.0 kB (not measured) · 8.0 kB CSS (not measured) — — · — · —
FieldLabel 39.6 kB (not measured) · 6.5 kB CSS (not measured) — — · — · —
FieldStatus · Storybook 10.3 kB (not measured) · 4.2 kB CSS (not measured) 158 (not measured) — · — · —
FileInput · Storybook 53.6 kB (not measured) · 10.3 kB CSS (not measured) 724 (not measured) — · — · —
FormLayout · Storybook 6.3 kB (not measured) · 3.4 kB CSS (not measured) 94 (not measured) — · — · —
Grid 4.3 kB (not measured) · 3.7 kB CSS (not measured) — — · — · —
GridSpan 3.4 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
Heading 9.1 kB (not measured) · 6.8 kB CSS (not measured) — — · — · —
HoverCard · Storybook 17.0 kB (not measured) · 4.9 kB CSS (not measured) 683 (not measured) — · — · —
HStack 7.3 kB (not measured) · 4.9 kB CSS (not measured) — — · — · —
Icon · Storybook 8.8 kB (not measured) · 3.6 kB CSS (not measured) 621 (not measured) — · — · —
IconButton · Storybook 43.2 kB (not measured) · 9.2 kB CSS (not measured) 17 (not measured) — · — · —
InfoTip · Storybook — 68 (not measured) — · — · —
InputGroup 44.6 kB (not measured) · 8.0 kB CSS (not measured) — — · — · —
InputGroupText 6.3 kB (not measured) · 3.7 kB CSS (not measured) — — · — · —
Item · Storybook 11.4 kB (not measured) · 4.7 kB CSS (not measured) 1,372 (not measured) — · — · —
Kbd · Storybook 6.7 kB (not measured) · 3.5 kB CSS (not measured) 140 (not measured) — · — · —
LayerProvider 63.0 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
Layout 8.1 kB (not measured) · 5.5 kB CSS (not measured) — — · — · —
LayoutContent 7.4 kB (not measured) · 4.9 kB CSS (not measured) — — · — · —
LayoutFooter 7.3 kB (not measured) · 4.8 kB CSS (not measured) — — · — · —
LayoutHeader 7.4 kB (not measured) · 4.8 kB CSS (not measured) — — · — · —
LayoutPanel 7.6 kB (not measured) · 4.8 kB CSS (not measured) — — · — · —
Lightbox · Storybook 49.4 kB (not measured) · 9.8 kB CSS (not measured) 751 (not measured) — · — · —
Link 43.4 kB (not measured) · 7.6 kB CSS (not measured) — — · — · —
LinkProvider 3.5 kB (not measured) · 20 B CSS (not measured) — — · — · —
List 6.7 kB (not measured) · 3.4 kB CSS (not measured) — — · — · —
ListItem 52.9 kB (not measured) · 10.5 kB CSS (not measured) — — · — · —
Markdown · Storybook 143.8 kB (not measured) · 17.2 kB CSS (not measured) 8,690 (not measured) — · — · —
MetadataList 23.1 kB (not measured) · 3.6 kB CSS (not measured) — — · — · —
MetadataListItem 6.5 kB (not measured) · 3.4 kB CSS (not measured) — — · — · —
MobileNav 48.7 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
MobileNavToggle 46.1 kB (not measured) · 9.4 kB CSS (not measured) — — · — · —
MoreMenu · Storybook 72.3 kB (not measured) · 14.6 kB CSS (not measured) 87 (not measured) — · — · —
MultiSelector · Storybook 75.5 kB (not measured) · 14.5 kB CSS (not measured) 2,631 (not measured) — · — · —
NavHeadingMenu 8.9 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
NavIcon 3.4 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
NumberInput · Storybook 55.5 kB (not measured) · 10.7 kB CSS (not measured) 1,144 (not measured) — · — · —
Outline · Storybook 28.6 kB (not measured) · 4.0 kB CSS (not measured) 1,216 (not measured) — · — · —
OverflowList · Storybook 8.5 kB (not measured) · 3.5 kB CSS (not measured) 229 (not measured) — · — · —
Overlay · Storybook 19.5 kB (not measured) · 3.8 kB CSS (not measured) 451 (not measured) — · — · —
Pagination · Storybook 87.2 kB (not measured) · 15.2 kB CSS (not measured) 645 (not measured) — · — · —
Popover · Storybook 49.7 kB (not measured) · 12.0 kB CSS (not measured) 977 (not measured) — · — · —
PowerSearch · Storybook 147.6 kB (not measured) · 18.5 kB CSS (not measured) 3,948 (not measured) — · — · —
ProgressBar · Storybook 7.7 kB (not measured) · 6.6 kB CSS (not measured) 387 (not measured) — · — · —
RadioIndicator 3.8 kB (not measured) · 3.7 kB CSS (not measured) — — · — · —
RadioList 45.4 kB (not measured) · 8.0 kB CSS (not measured) — — · — · —
RadioListItem 52.0 kB (not measured) · 9.7 kB CSS (not measured) — — · — · —
ResizeHandle 25.1 kB (not measured) · 3.9 kB CSS (not measured) — — · — · —
ScrollableArea 10.4 kB (not measured) · 4.3 kB CSS (not measured) — — · — · —
Section 7.5 kB (not measured) · 6.2 kB CSS (not measured) — — · — · —
SegmentedControl 38.7 kB (not measured) · 6.3 kB CSS (not measured) — — · — · —
SegmentedControlItem 8.6 kB (not measured) · 3.9 kB CSS (not measured) — — · — · —
SelectableCard · Storybook 12.8 kB (not measured) · 7.1 kB CSS (not measured) 305 (not measured) — · — · —
Selector 78.6 kB (not measured) · 14.8 kB CSS (not measured) — — · — · —
SelectorOption 14.5 kB (not measured) · 5.1 kB CSS (not measured) — — · — · —
SideNav 55.7 kB (not measured) · 10.6 kB CSS (not measured) — — · — · —
SideNavCollapseButton 46.5 kB (not measured) · 9.5 kB CSS (not measured) — — · — · —
SideNavHeading 54.6 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
SideNavItem 54.3 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
SideNavSection 6.5 kB (not measured) · 3.6 kB CSS (not measured) — — · — · —
Skeleton · Storybook 3.8 kB (not measured) · 3.6 kB CSS (not measured) 130 (not measured) — · — · —
Slider · Storybook 48.3 kB (not measured) · 8.5 kB CSS (not measured) 979 (not measured) — · — · —
Spinner · Storybook 26.3 kB (not measured) · 7.5 kB CSS (not measured) 296 (not measured) — · — · —
Stack 7.1 kB (not measured) · 4.9 kB CSS (not measured) — — · — · —
StackItem 6.0 kB (not measured) · 3.3 kB CSS (not measured) — — · — · —
StatusDot 18.9 kB (not measured) · 6.2 kB CSS (not measured) — — · — · —
Step 32.4 kB (not measured) · 5.3 kB CSS (not measured) — — · — · —
Stepper 47.3 kB (not measured) · 9.6 kB CSS (not measured) — — · — · —
Switch · Storybook 48.2 kB (not measured) · 9.3 kB CSS (not measured) 569 (not measured) — · — · —
Tab 9.7 kB (not measured) · 4.1 kB CSS (not measured) — — · — · —
Table 83.3 kB (not measured) · 15.0 kB CSS (not measured) — — · — · —
TableBody 3.3 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
TableCell 78.2 kB (not measured) · 14.6 kB CSS (not measured) — — · — · —
TableFooter 3.3 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
TableHeader 3.3 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
TableHeaderCell 78.0 kB (not measured) · 14.6 kB CSS (not measured) — — · — · —
TableRow 6.2 kB (not measured) · 3.5 kB CSS (not measured) — — · — · —
TableSelectionToolbar 52.2 kB (not measured) · 11.2 kB CSS (not measured) — — · — · —
TabList 40.0 kB (not measured) · 7.2 kB CSS (not measured) — — · — · —
TabMenu 51.5 kB (not measured) · 10.0 kB CSS (not measured) — — · — · —
Text · Storybook 8.6 kB (not measured) · 6.8 kB CSS (not measured) 530 (not measured) — · — · —
TextArea · Storybook 48.8 kB (not measured) · 9.4 kB CSS (not measured) 462 (not measured) — · — · —
TextInput · Storybook 53.0 kB (not measured) · 10.5 kB CSS (not measured) 381 (not measured) — · — · —
Thumbnail · Storybook 49.9 kB (not measured) · 11.0 kB CSS (not measured) 339 (not measured) — · — · —
TimeInput · Storybook 79.2 kB (not measured) · 13.6 kB CSS (not measured) 1,245 (not measured) — · — · —
Timer · Storybook 9.2 kB (not measured) · 6.8 kB CSS (not measured) 186 (not measured) — · — · —
Timestamp · Storybook 27.5 kB (not measured) · 9.5 kB CSS (not measured) 674 (not measured) — · — · —
Toast · Storybook 59.7 kB (not measured) · 9.7 kB CSS (not measured) 1,361 (not measured) — · — · —
ToggleButton 44.0 kB (not measured) · 9.3 kB CSS (not measured) — — · — · —
ToggleButtonGroup 6.3 kB (not measured) · 3.2 kB CSS (not measured) — — · — · —
Token · Storybook 29.6 kB (not measured) · 4.5 kB CSS (not measured) 459 (not measured) — · — · —
Tokenizer · Storybook 64.2 kB (not measured) · 11.7 kB CSS (not measured) 871 (not measured) — · — · —
Toolbar · Storybook 39.6 kB (not measured) · 7.7 kB CSS (not measured) 269 (not measured) — · — · —
Tooltip · Storybook 16.7 kB (not measured) · 4.9 kB CSS (not measured) 577 (not measured) — · — · —
TopNav 49.5 kB (not measured) · 10.4 kB CSS (not measured) — — · — · —
TopNavHeading 54.0 kB (not measured) · 9.9 kB CSS (not measured) — — · — · —
TopNavItem 9.0 kB (not measured) · 3.8 kB CSS (not measured) — — · — · —
TopNavMegaMenu 54.0 kB (not measured) · 10.7 kB CSS (not measured) — — · — · —
TopNavMegaMenuFeaturedCard 6.7 kB (not measured) · 3.4 kB CSS (not measured) — — · — · —
TopNavMegaMenuItem 9.1 kB (not measured) · 4.1 kB CSS (not measured) — — · — · —
TopNavMenu 53.5 kB (not measured) · 10.1 kB CSS (not measured) — — · — · —
TreeList · Storybook 32.5 kB (not measured) · 4.7 kB CSS (not measured) 872 (not measured) — · — · —
Typeahead 60.8 kB (not measured) · 11.3 kB CSS (not measured) — — · — · —
TypeaheadItem 6.2 kB (not measured) · 3.4 kB CSS (not measured) — — · — · —
VStack 7.3 kB (not measured) · 4.9 kB CSS (not measured) — — · — · —
lab/ChartArea 5.9 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartBar 3.7 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartCandlestick 4.4 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartDot 3.6 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartDotGL 7.3 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartDotGLInteractive 8.2 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartHeatmapGL 8.4 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartLine 5.5 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChartStreamGL 7.4 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/ChatEmojiPicker 64.1 kB (not measured) · 773 B CSS (not measured) — — · — · —
lab/ChatReactionBar 64.7 kB (not measured) · 1.1 kB CSS (not measured) — — · — · —
lab/ChatTypingIndicator 23.5 kB (not measured) · 612 B CSS (not measured) — — · — · —
lab/ChatUnreadDivider 3.5 kB (not measured) · 348 B CSS (not measured) — — · — · —
lab/CircularProgress · Storybook 7.1 kB (not measured) · 1.0 kB CSS (not measured) 328 (not measured) — · — · —
lab/CodeEditor · Storybook 14.6 kB (not measured) · 665 B CSS (not measured) 461 (not measured) — · — · —
lab/CommentComposer 92.7 kB (not measured) · 1.9 kB CSS (not measured) — — · — · —
lab/CommentPin · Storybook 47.3 kB (not measured) · 1.2 kB CSS (not measured) 386 (not measured) — · — · —
lab/Comments 217.6 kB (not measured) · 2.5 kB CSS (not measured) — — · — · —
lab/CommentThread 212.9 kB (not measured) · 2.4 kB CSS (not measured) — — · — · —
lab/DiffViewer · Storybook 45.6 kB (not measured) · 2.1 kB CSS (not measured) 2,203 (not measured) — · — · —
lab/EmojiPicker · Storybook 62.4 kB (not measured) · 722 B CSS (not measured) 3,581 (not measured) — · — · —
lab/InfoTip · Storybook 21.6 kB (not measured) · 458 B CSS (not measured) 68 (not measured) — · — · —
lab/ListInput · Storybook 74.4 kB (not measured) · 1.6 kB CSS (not measured) 1,760 (not measured) — · — · —
lab/LogStream · Storybook 7.9 kB (not measured) · 1.6 kB CSS (not measured) 468 (not measured) — · — · —
lab/MobilePowerSearch · Storybook 151.2 kB (not measured) · 1.4 kB CSS (not measured) 2,492 (not measured) — · — · —
lab/MobileTokenizer · Storybook 85.3 kB (not measured) · 775 B CSS (not measured) 598 (not measured) — · — · —
lab/SankeyChart 5.3 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/Schedule · Storybook 64.8 kB (not measured) · 3.9 kB CSS (not measured) 4,750 (not measured) — · — · —
lab/SelectableCardGroup — — — · — · —
lab/Tour 3.7 kB (not measured) · 20 B CSS (not measured) — — · — · —
lab/TourStep 55.1 kB (not measured) · 590 B CSS (not measured) — — · — · —
lab/TransferList 66.1 kB (not measured) · 1.7 kB CSS (not measured) — — · — · —
lab/TransferListSelector 71.7 kB (not measured) · 1.9 kB CSS (not measured) — — · — · —
richtext/RichTextEditor · Storybook 270.1 kB (not measured) · 2.6 kB CSS (not measured) 662 (not measured) — · — · —
richtext/RichTextEditorToolbar 213.2 kB (not measured) · 454 B CSS (not measured) 870 (not measured) — · — · —
richtext/RichTextView 250.8 kB (not measured) · 2.3 kB CSS (not measured) — — · — · —

Wide change (116 components): add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.

⚠️ Approximate analysis - the diff could not be resolved to a merge base, so a two-dot fallback was used. The component list may include base-only changes or miss a component whose change also landed on base.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change is right: recognizing the Node that runNpm starts npm with, whatever its file name, matches the global-mode spec's lock-takeover rule, and the new cases fail without it. Before merging, please reword the changeset: it says such an install "was left running while the lock was taken over" before this change, but real npm renames its process to npm install @astryxdesign/cli@… within a fraction of a second, and the code on main already recognizes and ends it by that title on a Node named nodejs. Wording that matches the evidence is that the takeover now also recognizes the install by its original command line, as npm shows it before renaming its process, which is also what fixes the release-cache tests on such a Node.

[Automated review]

'@astryxdesign/cli': patch
---

[fix] A run that takes over a crashed run's release-cache lock now ends the npm install that run left behind when Node's own file is not named `node`, such as `nodejs` on some Linux distributions or a toolchain's `node-linux-x64`. The install is recognized by the Node the CLI starts npm with, whatever its name; before, such an install was left running while the lock was taken over.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "before" here holds only until npm renames its process. npm 10.9.8 sets its title to npm install @astryxdesign/cli@<version> @astryxdesign/core@<version> within about 75 ms of starting, and the takeover on main already reads that title as npm and ends the install, even when Node's file is named nodejs. Suggested wording:

[fix] A run that takes over a crashed run's release-cache lock now also recognizes the npm install that run left behind by its original command line, as npm shows it before renaming its process, when Node's own file is not named `node`, such as `nodejs` or `node-linux-x64`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded as suggested in ce6d1bb: the takeover now also recognizes the install by its original command line, as npm shows it before renaming its process, when Node's own file is not named node. The description's first paragraph now says the same.

…al command line

npm renames its process to npm install … within a fraction of a second, and the takeover already recognized that title on any Node; what changes is that it also recognizes the install by its original command line, as npm shows it before the rename, which is what the release-cache tests check.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 26, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ready to merge: recognizing the Node that runNpm starts npm with, whatever its file name, restores the global-mode spec's lock-takeover rule for an install that still shows its original command line, and the new test cases fail without the change. The reworded changeset now matches what users get, since npm's renamed process title was already recognized before this change. No further changes are needed.

[Automated review]

@vjeux
vjeux marked this pull request as draft October 29, 2026 22:37
cixzhang pushed a commit that referenced this pull request Oct 31, 2026
…sumer project (#9223)

## Maintainer impact

Each run of `internal/shadcn-registry/generate-shadcn-registry.test.mjs`, which is part of `pnpm test:node`, leaves 16 directories in the system temporary directory. `verify-full-catalog.mjs` leaves one for every file ShadCN transforms. On a shared machine that runs these often, the temporary directory held 187,072 `shadcn-*` directories, and every tool that reads that directory's listing slowed down (that size is what timed out the analyze-pr test fixed in #9212).

## Intended invariant

The test and the catalog verifier check what they checked before, and leave nothing behind in the system temporary directory.

## Change

The pinned ShadCN client, 4.19.0, makes an empty temporary directory (`mkdtemp(path.join(tmpdir(), "shadcn-"))`) for each file it transforms during `shadcn add` and never removes it. Both callers now give it a `TMPDIR` inside the consumer project they already create and remove in `finally`: the test's five `shadcn add` runs, and `runShadcn` in `verify-full-catalog.mjs`. The test also removes its no-op package-manager directory in `afterAll`; it was made once per run and never removed.

Upstream origin: ShadCN's transform step in 4.19.0. 4.22.1, which #8750 bumps to, no longer makes these in its transform step, but its icons step still makes one. This change keeps whatever ShadCN makes inside the project either way. Nothing is filed upstream.

## Evidence

- Failure before the change: with `TMPDIR` pointed at an empty directory, one run of the test file (29 tests pass) left 15 `shadcn-*` directories and 1 `astryx-noop-pm-*`. One run of `verify-full-catalog.mjs` over a 12-item catalog (18 installed files per mode, in TypeScript and JavaScript) left 60 `shadcn-*`.
- Success after the change: the same runs left none: 0 and 0 from the test file (29 tests pass), and 0 from the verifier over the same catalog (it passes). Node's own `node-compile-cache` directory appears in both runs: a cache Node reuses, not one per run.
- Product/runtime behavior verified unchanged: test and CI verifier only.

## Scope

- [x] No intended public API, product behavior, visual direction, or policy change.
- [x] Product changes discovered during the work were removed or split.
- [x] Public text and artifacts contain no internal Meta context.

## Testing

- Leftovers counted with `TMPDIR=<empty directory> pnpm exec vitest run --project node internal/shadcn-registry/generate-shadcn-registry.test.mjs`, and with `TMPDIR=<empty directory> node internal/shadcn-registry/verify-full-catalog.mjs` after `pnpm build` and `DOCSITE_TARGET=canary node apps/docsite/scripts/generate-data.mjs`, as CI runs it. The verifier ran over a 12-item subset of the 1,036-item canary catalog (4 components, 2 hooks, 4 examples, 2 templates; `registry.json` cut to them and restored afterwards), because the whole catalog was too heavy for a shared machine.
- Local gates at 92ba203 (one commit on main dade717): build, typecheck and repo checks pass; the ShadCN registry tests and the CI contract test for the verifier pass (36); the node suite passes except the two `cache.test.mjs` lock tests that fail on this machine without the change too (#8520).
cixzhang pushed a commit that referenced this pull request Nov 1, 2026
…8207)

## User impact

On a touch screen, a tap on a disabled Button, IconButton or ToggleButton, or on a disabled menu item, never shows the tooltip that explains why it is disabled. These controls are `aria-disabled` so that they keep their reason reachable, but `touchTrigger="auto"` treats them as an action, so the reason has no touch path.

## Problem and solution fit

- **Why it occurs:** `auto` asks whether the trigger performs an action, and an `aria-disabled` control still counts as one.
- **Why it harms the task:** a disabled control's reason cannot be read by touch.
- **Why that matters:** touch users cannot learn why a control is off, while mouse and keyboard users can.

An `aria-disabled` control performs no action. Under `auto`, when the tap's innermost interactive element is an `aria-disabled` control or a label for a disabled control, that element takes the tap. The reason opens and nothing activates. Every other tap is still the trigger's to decide, so taps on enabled controls do not change. A natively `disabled` control receives no `click` from the browser, so this restores the `aria-disabled` path only.

## Expected behavior and authority

- `spec:AST-085` FR5: a disabled control's reason is exposed with it. `architecture:interaction-modality` INV4: every modality has an operable path, and hover is never the only discovery path. On touch, that reason had no path.
- `component:Tooltip` and `component:HoverCard` DEC-1 and FR5: a disabled control is not an action, so its reason opens on a tap, and that restoration ships on its own as a patch (Compatibility and migration). This pull request is that patch. Tooltip's current-state gap "a disabled control's reason opens on no tap" goes, and both verification rows cite the disabled-control tests; the `auto` walk stays a gap until CLN-0024. Where the records said "a disabled or `aria-disabled` control", they now say "an `aria-disabled` control, or a label for a disabled control": a natively `disabled` control receives no `click` from the browser.
- `spec:AST-017` FR53: an accessibility behavior fix ships as a patch `[fix]`, and the changeset names the old and new behavior and its targets.

## Smallest restoration

- `isActionTrigger`: a disabled control (`aria-disabled="true"`, or `:disabled`), or a label whose control is disabled, is no action.
- `tapLandsOnDisabledControl` walks out from the tapped element on the clickable containers' own walk, `innermostInteractive` in `useClickableContainer`, which `hasInteractiveAncestor` now also uses. It answers one question: whether the innermost interactive element is an `aria-disabled` control or a label for a disabled control.
- `isDisabledControl` is one shared predicate in `utils/pressDisabled.ts`, which press feedback (`gestures/haptics.ts`) imports too, so the two never disagree about a control. It stays outside the gesture code, which a public import that uses no gesture never carries, and the CI WebKit lane's scope already covers it.
- The `touchTrigger` docs (English and Chinese) for Tooltip, HoverCard, `useTooltip` and `useHoverCard` add the disabled clause, named for `aria-disabled` controls: a natively `disabled` control receives no `click` from the browser.
- Lands after #9089, which is merged.

## Evidence

- **Before the change:** on main, a tap on a disabled Button with a `tooltip` opens nothing, and so does a tap on a disabled menu item inside a caller's Tooltip.
- **After the change:** the reason opens and nothing activates. A tap on a disabled control inside another acting trigger, such as an option row or a link-role card, now opens that trigger's tooltip or hover card.
- **Unchanged paths:** mouse hover, `touchTrigger="tap"` and `touchTrigger="none"`. A tap on an enabled control is still decided by the trigger: a truncated label inside a link still opens its tooltip and the link still runs, and a tap inside a default Overlay within a link leaves that link's tooltip shut, as before. The 19 form controls' `disabledMessage` tooltips already opened on a tap, also inside a clickable card, and still do.
- **Regression tests:** `touchTriggerTargets.test.tsx` taps every Core disabled-reason tooltip and expects the reason to open with nothing activating.
  - Button, IconButton and ToggleButton through `tooltip`.
  - The 19 form controls through `disabledMessage`: CheckboxInput, CheckboxList, DateInput, DateRangeInput, DateTimeInput, FileInput, MultiSelector, NumberInput, PowerSearch, RadioList, SegmentedControl, Selector, Slider, Switch, TextArea, TextInput, TimeInput, Tokenizer and Typeahead.
  - A disabled menu item through a caller's tooltip, and a disabled field inside a clickable card.
  - The enabled-link and Overlay guards.
  - Two HoverCard cases: a tap on an aria-disabled trigger, and on a disabled checkbox inside an option-row trigger, opens the card.
  - With main's sources, exactly the Button, IconButton, ToggleButton, menu-item and HoverCard cases fail; all pass with this change.
- `useTouchTrigger.test.ts` adds the disabled-control rows for `isActionTrigger` and `tapLandsOnDisabledControl`, and `utils/pressDisabled.test.ts` covers `isDisabledControl`.
- A disabled Link is not covered: it takes no pointer events, so a tap never reaches it.

## Scope

- [x] One defect is restored.
- [x] Separable contradictory or unsettled tagalongs were removed or split.
- [x] No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
- [x] Public text and artifacts contain no internal Meta context.

## Writing rubric results

`Tooltip.spec.md` and `HoverCard.spec.md`:

- R1 narration: none; the changed current-state item states what the shipped `auto` still does.
- R2 research in the record: none.
- R3 evidence naming a change: none; the changed verification cells name test files and cases.
- R4 rejected alternatives over one line or outside a decision: none.
- R5 pull request or issue references remaining: none.
- R6 ruled open questions still listing options: none.

## Testing

Local gates at 952974c (on main 66c0d38):

- These pass: `pnpm check:repo`, `pnpm check:knowledge`, `pnpm check:changesets`, `pnpm typecheck` (0 errors), ESLint on the touched TypeScript files, Prettier on the touched TypeScript and Markdown files, the root build, and the Storybook build. The touched `.doc.mjs` files keep main's formatting.
- `pnpm test:ui`: 17,237 tests pass.
- `pnpm test:node`: 14,949 pass, including `touch-support-bundle.test.mjs` (8) and the WebKit lane scope test `ci-interaction-webkit.test.mjs` (12). Its 2 failures, in the release `cache.test.mjs`, are independent of this change (#8520).
- `TouchTrigger.a11y.chromium.spec.ts` passes in Chromium, twice (24 of 24).
This was referenced Nov 1, 2026
@vjeux
vjeux marked this pull request as ready for review November 4, 2026 14:28
@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 4, 2026
@cixzhang
cixzhang marked this pull request as draft November 4, 2026 14:42
@cixzhang
cixzhang marked this pull request as ready for review November 4, 2026 14:42
@cixzhang
cixzhang merged commit 45f77d0 into meta:main Nov 5, 2026
155 of 160 checks passed
@vjeux
vjeux deleted the uikit/release-install-node-name branch November 5, 2026 00:22

This branch was successfully deployed

1 active deployment
Preview — ce6d1bb2 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants