Repository navigation
fix(installer): macOS onboarding cannot install plugins after the shell installer - #200247
Conversation
Co-authored-by: miguelbranco80 <[email protected]>
Co-authored-by: miguelbranco80 <[email protected]>
Worked on by: - @miguelbranco80 Co-authored-by: miguelbranco80 <[email protected]> OpenClaw-Publication: c311b760-0bbf-4f8c-b2a1-1ab476a3bd0a
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe installer passes the concrete terminal device to OpenClaw instead of the /dev/tty alias for interactive onboarding and upgrade commands. Example: Install @openclaw/[email protected] after a piped installer handoff on macOS 26.6.2 with Node 24.22.1.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a confirmed stable-release onboarding failure with a focused installer fix; no introduced correctness defect was found. Priority: P0 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe shell installer prepares stdin for onboarding, Doctor, and plugin updates; plugin installation reaches npm through the shared process runner, which detaches children while inheriting stdin. flowchart TD
A[Piped shell installer] --> B[Terminal device resolver]
B --> C[Onboarding or upgrade commands]
C --> D[Plugin installation]
D --> E[Shared process runner]
E --> F[Detached npm child]
Technical reviewBest possible solution: Keep terminal-device selection in the existing installer owner so onboarding can install plugins without requiring users to leave the wizard for terminal recovery. Do we have a high-confidence way to reproduce the issue? The linked report supplies a controlled native macOS reproduction and the current-main descriptor inheritance matches it; this read-only review ran no product code. Is this the best way to solve the issue? The patch fixes the descriptor producer once, preserves interactive input and process-tree cleanup, and replaces the earlier npm-call-site workaround with the smallest complete production change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6a6007663b36. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +17, Other +13. Total +30 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 16, 2026, 4:40 PM ET / 21:40 UTC (Revision 2). |
Co-authored-by: miguelbranco80 <[email protected]>
Co-authored-by: miguelbranco80 <[email protected]>
Worked on by: - @miguelbranco80 Co-authored-by: miguelbranco80 <[email protected]> OpenClaw-Publication: b98ca81b-3dda-406e-9c71-3889e4ed9b60
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
Backport the exact reviewed installer repair explicitly required by Dallin for 2026.11.5. Resolve the controlling terminal device before handing stdin to OpenClaw so detached macOS Node children do not inherit the /dev/tty alias. Noninteractive behavior is unchanged. Applies cleanly to all four existing candidate call sites. No companion required: ps and tr are existing host tools and the fallback preserves prior behavior. No later same-path follow-up exists at the selected canonical cut. Proof: 229 installer tests pass, one platform skip; Bash syntax and diff checks pass. Canonical macOS and installer platform evidence was reviewed. No new local reviewer; existing exact canonical hosted review is retained. Fresh full candidate qualification is required. (cherry picked from commit 2540155) Co-authored-by: miguelbranco80 <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Backport #200063, #200208, #200247, #200260 and #190065 to 2026.10.33. Preserve canonical source credit and maintenance-branch contracts. All selected exact-head checks passed except the inherited Docker plugin API mismatch; aggregate ci-gate reports that same cause. Landing authorized with this attributed pre-existing failure. Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: miguelbranco80 <[email protected]> Co-authored-by: Shakker <[email protected]> Co-authored-by: RomneyDa <[email protected]>
…ll installer (openclaw#200247) * Save workspace before refreshing its selected base Co-authored-by: miguelbranco80 <[email protected]> * fix(onboarding): prevent macOS npm crashes after shell installation Worked on by: - @miguelbranco80 Co-authored-by: miguelbranco80 <[email protected]> OpenClaw-Publication: c311b760-0bbf-4f8c-b2a1-1ab476a3bd0a * Publish openclaw/grand-lobster-2 Worked on by: - @miguelbranco80 Co-authored-by: miguelbranco80 <[email protected]> OpenClaw-Publication: b98ca81b-3dda-406e-9c71-3889e4ed9b60 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: miguelbranco80 <[email protected]>
Closes #200244
Adopts @miguelbranco80’s installer fix from #200257 unchanged (source commit da4fc50). This replaces the previous npm-call-site workaround entirely.
What Problem This Solves
Fixes: first-run macOS onboarding reports
Install failed: Codexafter installation withcurl -fsSL https://openclaw.ai/install.sh | bash.User Impact
Users can install plugins without leaving installer-launched onboarding. Installer-driven Doctor and plugin updates receive the same terminal handoff fix. Linux and Windows behavior is unchanged; no settings or migration are required.
Why This Change Was Made
Pass the controlling terminal’s concrete device, such as
/dev/ttys003, instead of the/dev/ttyalias that stops working in detached macOS children. Resolve it withps -o tty=and retain/dev/ttyas the fallback. Fixing the installer handoff covers its detached helpers without changing the shared process runner or adding npm-specific workarounds.Evidence
scripts/install.shandtest/scripts/install-sh.test.tsdiffer from the prepared base. Both files are byte-identical toda4fc50; the source and adopted diffs have the same stable patch ID./dev/ttyhandoff failed in NodePlatformInit; the new concrete-device handoff completed withInstalled plugin: codex. These are Miguel’s runs, not a new macOS run by RoboClaw.bash -n, andgit diff --checkpass.6a6007663b36db8badd6967e7f2bed5c6b3a724efound no P0 findings.Reported and reproduced by @miguelbranco80 in #200244.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by