openclaw - ✅(Solved) Fix [Bug]: Plugin "nextcloud-talk" installation blocked [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60457Fetched 2026-04-08 02:50:58
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2cross-referenced ×1

When installing with sudo on fresh open claw installation Nextcloud-talk plug in it reports Blocked (OSX)

Error Message

while installing error: Also not a valid hook pack: Error: package.json missing openclaw.hooks

Root Cause

When installing with sudo on fresh open claw installation Nextcloud-talk plug in it reports Blocked (OSX)

Fix Action

Fixed

PR fix notes

PR #60624: fix(plugins): honor --dangerously-force-unsafe-install for --link install probes (#59521, #59508, #59171)

Description (problem / solution / changelog)

Summary

Describe the problem and fix in 2–5 bullets:

  • Problem: openclaw plugins install --link <path> --dangerously-force-unsafe-install dropped the unsafe flag during linked-path dry-run probes in both plugin install and hook-pack fallback paths.
  • Why it matters: users hit misleading blocked install flows (Plugin ... installation blocked and/or Also not a valid hook pack) even when they explicitly requested the documented unsafe override.
  • What changed: threaded dangerouslyForceUnsafeInstall through linked-path dry-run probes for plugin and hook-pack install paths; added CLI regression coverage for both.
  • What did NOT change (scope boundary): no scanner rule changes, no hook-pack validation rule changes, no plugin update-command behavior changes.

Change Type (select all)

  • Bug fix

Scope (select all touched areas)

  • CLI

Linked Issue/PR

  • Closes #
  • Related #59521
  • Related #59508
  • This PR fixes a bug or regression

Root Cause (if applicable)

  • Root cause: linked install fallback/probe branches did not consistently propagate dangerouslyForceUnsafeInstall into the underlying dry-run install calls.
  • Missing detection / guardrail: no test asserted unsafe-flag forwarding for linked plugin probe + linked hook-pack fallback probe.
  • Contributing context (if known): this sits in plugin-vs-hook-pack probing logic before persisting --link config metadata.

Regression Test Plan (if applicable)

  • Coverage level that should have caught this:
    • Unit test
  • Target test or file: src/cli/plugins-cli.install.test.ts
  • Scenario the test should lock in: plugins install <local-path> --link --dangerously-force-unsafe-install forwards unsafe flag to both linked plugin dry-run probe and linked hook-pack fallback probe.
  • Why this is the smallest reliable guardrail: it directly verifies CLI option plumbing at the exact regression point without requiring external registry/network setup.
  • Existing test that already covers this (if any): none specific to linked hook-pack fallback forwarding prior to this PR.
  • If no new test is added, why not: N/A

User-visible / Behavior Changes

plugins install --link <path> --dangerously-force-unsafe-install now consistently honors the unsafe override during linked-path probe/validation for both plugin and hook-pack paths.

Diagram (if applicable)

Before:
[plugins install --link --dangerously-force-unsafe-install]
  -> [plugin probe may drop flag] -> [blocked]
  -> [hook-pack fallback probe may drop flag] -> [blocked/fallback error]

After:
[plugins install --link --dangerously-force-unsafe-install]
  -> [plugin probe receives flag]
  -> [hook-pack fallback probe receives flag]
  -> [behavior matches documented unsafe override semantics]

Security Impact (required)

  • New permissions/capabilities? (No)
  • Secrets/tokens handling changed? (No)
  • New/changed network calls? (No)
  • Command/tool execution surface changed? (No)
  • Data access scope changed? (No)
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: Windows 11 (local dev), reported issue on macOS/Linux
  • Runtime/container: Node 22.22.0, pnpm 10.32.1
  • Model/provider: N/A
  • Integration/channel (if any): plugins CLI
  • Relevant config (redacted): isolated temp config dirs for verification

Steps

  1. Run openclaw plugins install --link <plugin-path> --dangerously-force-unsafe-install.
  2. Verify linked dry-run probe paths receive unsafe override.
  3. Run scoped CLI tests for install command behavior.

Expected

  • Unsafe override is honored consistently for linked path probes (plugin and hook-pack fallback).

Actual

  • After fix: both linked probe paths receive unsafe flag and tests pass.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios:
    • Scoped suite passes: corepack pnpm test -- src/cli/plugins-cli.install.test.ts.
    • Regression tests confirm forwarding for linked plugin probe and linked hook-pack fallback probe.
    • Installer-level behavior check against C:/git/headroom/plugins/openclaw: blocked without unsafe flag, succeeds with unsafe flag.
  • Edge cases checked:
    • Existing CLI install tests remain green after adding hook-pack forwarding coverage.
  • What you did not verify:
    • Full end-to-end global openclaw binary install in this environment (separate local runtime/toolchain mismatch outside this PR scope).

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes)
  • Config/env changes? (No)
  • Migration needed? (No)
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

  • Risk: linked installs with explicit unsafe override remain permissive where scanners report critical findings.
    • Mitigation: no new bypass introduced; this restores documented behavior parity and still requires explicit --dangerously-force-unsafe-install opt-in.

AI Disclosure

This PR was implemented with the assistance of OpenAI Codex on gpt5.3-codex.

Changed files

  • CHANGELOG.md (modified, +1/-0)
  • extensions/telegram/src/doctor-contract.ts (modified, +1/-1)
  • extensions/whatsapp/contract-api.ts (modified, +25/-6)
  • src/channels/plugins/contract-surfaces.ts (modified, +24/-8)
  • src/channels/plugins/setup-wizard-helpers.ts (modified, +7/-1)
  • src/cli/plugins-cli.install.test.ts (modified, +0/-1)
  • src/hooks/install.ts (modified, +1/-0)
  • src/plugins/discovery.ts (modified, +29/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

When installing with sudo on fresh open claw installation Nextcloud-talk plug in it reports Blocked (OSX)

Steps to reproduce

1 Install latest open claw with sudo 2 sudo openclaw plugins install @openclaw/nextcloud-talk

while installing error:

🦞 OpenClaw 2026.4.2 (d74a122) — I'm not magic—I'm just extremely persistent with retries and coping strategies.

Resolving clawhub:@openclaw/nextcloud-talk… Downloading @openclaw/nextcloud-talk… Extracting /tmp/openclaw-npm-pack-wptLwQ/openclaw-nextcloud-talk-2026.3.13.tgz… WARNING: Plugin "nextcloud-talk" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-1xYP2A/extract/package/src/monitor.ts:340) Downloading @openclaw/nextcloud-talk… Extracting /tmp/openclaw-hook-pack-e9OuJW/openclaw-nextcloud-talk-2026.3.13.tgz… Plugin "nextcloud-talk" installation blocked: dangerous code patterns detected: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-1xYP2A/extract/package/src/monitor.ts:340) Also not a valid hook pack: Error: package.json missing openclaw.hooks

Expected behavior

Install without Errors

How to get it installed on Mac OSX?

Actual behavior

Installation blocked

OpenClaw version

2026.4.2

Operating system

Mac OSX 26.4 Tahoe

Install method

sudo npm install -g openclaw@latest

Model

minimax-m2.7:cloud

Provider / routing chain

ollama launch openclaw --model

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The installation of the Nextcloud-talk plugin is blocked due to detected dangerous code patterns, and the package is not a valid hook pack.

Guidance

  • The error message indicates that the plugin installation is blocked because it contains code patterns that could potentially be used for credential harvesting.
  • The package.json file is missing the openclaw.hooks property, which is required for a valid hook pack.
  • To install the plugin, you may need to modify the package.json file to include the required openclaw.hooks property or disable the security checks that are blocking the installation.
  • You can try installing the plugin without using sudo to see if the issue is related to permissions.

Example

No code snippet is provided as the issue does not contain sufficient information to create a minimal example.

Notes

The issue may be specific to the Mac OSX operating system or the OpenClaw version being used. More information about the plugin and the OpenClaw configuration may be needed to provide a complete solution.

Recommendation

Apply workaround: Modify the package.json file to include the required openclaw.hooks property or disable the security checks that are blocking the installation, as the issue is likely due to the plugin not being a valid hook pack.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Install without Errors

How to get it installed on Mac OSX?

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: Plugin "nextcloud-talk" installation blocked [1 pull requests, 1 participants]