openclaw - 💡(How to fix) Fix [Bug]: [BUG] Inconsistent/Recurring TypeError: Cannot read properties of undefined (reading 'trim') during openclaw config / plugin loading. [1 comments, 2 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#70538Fetched 2026-04-24 05:56:44
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Ik maak het graag nog een keer voor je, en deze keer in een professionele structuur die perfect is voor een GitHub Issue (of Jira/Bug Tracker). Ik heb alle technische details uit onze conversatie meegenomen om ervoor te zorgen dat de ontwikkelaars precies weten wat er misgaat.

Je kunt dit hele blok kopiëren en plakken in het "Description" veld van een nieuw GitHub Issue op openclaw/openclaw.


Error Message

[openclaw] Failed to start CLI: TypeError: Cannot read properties of undefined (reading 'trim') at formatDocsLink (file:///C:/Users/Coen/AppData/Roaming/npm/node_modules/openclaw/dist/links-BlUEqVE8.js:7:23) at formatChannelSelectionLine (file:///C:/Users/Coen/AppData/Roaming/npm/node_modules/openclaw/dist/registry-DE4nHTjg.js:111:71) ... [volledige stack trace hier] ...

Root Cause

2. Tweede Symptoom (Na plugin update): (Dit is het bewijs dat zelfs na de correcte fix de fout terugkomt.)

[openclaw] Failed to start CLI: Error: The `openclaw congif` command is unavailable because `plugins.allow` excludes "congif". Add "congif" to `plugins.allow` if you want that bundled plugin CLI surface.
... [volledige stack trace hier] ...

Code Example

[openclaw] Failed to start CLI: TypeError: Cannot read properties of undefined (reading 'trim') at formatDocsLink (file:///C:/Users/Coen/AppData/Roaming/npm/node_modules/openclaw/dist/links-BlUEqVE8.js:7:23)
at formatChannelSelectionLine (file:///C:/Users/Coen/AppData/Roaming/npm/node_modules/openclaw/dist/registry-DE4nHTjg.js:111:71)
... [volledige stack trace hier] ...

---

[openclaw] Failed to start CLI: Error: The `openclaw congif` command is unavailable because `plugins.allow` excludes "congif". Add "congif" to `plugins.allow` if you want that bundled plugin CLI surface.
... [volledige stack trace hier] ...

---
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Ik maak het graag nog een keer voor je, en deze keer in een professionele structuur die perfect is voor een GitHub Issue (of Jira/Bug Tracker). Ik heb alle technische details uit onze conversatie meegenomen om ervoor te zorgen dat de ontwikkelaars precies weten wat er misgaat.

Je kunt dit hele blok kopiëren en plakken in het "Description" veld van een nieuw GitHub Issue op openclaw/openclaw.


🐞 Bug Report: Inconsistent Plugin Loading Failure on Configuration Save (TypeError)

Affected Area: OpenClaw CLI / Gateway Configuration (config.get, config.apply) Severity: High - Blocks core setup functionality and plugin expansion. Component: Core Gateway Daemon/CLI Logic

📝 Summary of the Bug

When attempting to save or apply changes in the configuration that involve adding, modifying, or enabling a specific plugin (such as congif or configuring external services like Telegram), de Gateway faalt met een cryptische en terugkerende TypeError: Cannot read properties of undefined (reading 'trim').

Dit wijst op een fundamentele fout in het interne script dat verantwoordelijk is voor het formateren van kanaalselectie-metadata (formatDocsLink, formatChannelSelectionLine), waardoor de gehele configuratiewizard crasht voordat de wijzigingen definitief kunnen worden opgeslagen.

🔁 Steps to Reproduce (Stappen om reproduceerbaar te maken)

  1. Start een nieuwe OpenClaw-sessie met een onvolledige/oudere pluginlijst.
  2. Ga naar het configuratiepaneel en probeer de instellingen van een externe connector (zoals Telegram of andere kanalen) aan te passen of toe te voegen.
  3. Probeer de wijzigingen op te slaan of de Gateway opnieuw te starten/configuratie te toepassen (openclaw config of gateway restart).

💥 Observed Behavior (Wat gebeurt er?)

Het systeem geeft een Stack Trace die eindigt met: TypeError: Cannot read properties of undefined (reading 'trim'). Dit proces faalt consequent, waardoor de gateway niet opstart/de configuratie niet wordt toegepast, ongeacht hoe correct de nieuwe instellingen zijn.

✅ Expected Behavior (Wat zou er moeten gebeuren?)

De Gateway moet in staat zijn om wijzigingen in de plugin-configuratie te verwerken en de diensten succesvol opnieuw op te starten, zonder deze specifieke TypeError, waardoor het systeem robuuster wordt bij plug-in management.


📂 Technical Evidence (Alle foutmeldingen)

1. Eerste Symptoom:

[openclaw] Failed to start CLI: TypeError: Cannot read properties of undefined (reading 'trim') at formatDocsLink (file:///C:/Users/Coen/AppData/Roaming/npm/node_modules/openclaw/dist/links-BlUEqVE8.js:7:23)
at formatChannelSelectionLine (file:///C:/Users/Coen/AppData/Roaming/npm/node_modules/openclaw/dist/registry-DE4nHTjg.js:111:71)
... [volledige stack trace hier] ...

2. Tweede Symptoom (Na plugin update): (Dit is het bewijs dat zelfs na de correcte fix de fout terugkomt.)

[openclaw] Failed to start CLI: Error: The `openclaw congif` command is unavailable because `plugins.allow` excludes "congif". Add "congif" to `plugins.allow` if you want that bundled plugin CLI surface.
... [volledige stack trace hier] ...

Steps to reproduce

🔁 Steps to Reproduce (Stappen om reproduceerbaar te maken)

  1. Start een nieuwe OpenClaw-sessie met een onvolledige/oudere pluginlijst.
  2. Ga naar het configuratiepaneel en probeer de instellingen van een externe connector (zoals Telegram of andere kanalen) aan te passen of toe te voegen.
  3. Probeer de wijzigingen op te slaan of de Gateway opnieuw te starten/configuratie te toepassen (openclaw config of gateway restart).

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

NOT_ENOUGH_INFO

OpenClaw version

v2026.4.14

Operating system

windows 11

Install method

npm global

Model

gemma4 e4b

Provider / routing chain

openclaw - LM studio - Gemma4:e4b

Additional provider/model setup details

<img width="1363" height="323" alt="Image" src="https://github.com/user-attachments/assets/b68c844b-a1ab-44ca-ac7e-928fead5e4d8" />

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The most likely fix involves addressing the TypeError: Cannot read properties of undefined (reading 'trim') by ensuring that the variables being passed to formatDocsLink and formatChannelSelectionLine are properly defined and not null or undefined.

Guidance

  • Review the code for formatDocsLink and formatChannelSelectionLine to ensure that all variables are properly initialized before being used.
  • Verify that the plugins.allow configuration includes the necessary plugins, such as "congif", to prevent exclusion errors.
  • Check the OpenClaw documentation for any specific requirements or guidelines for configuring plugins and external connectors.
  • Consider adding error handling or logging to help diagnose and resolve similar issues in the future.

Example

No specific code example can be provided without more context, but ensuring that variables are defined before use is key, e.g., if (variable !== undefined && variable !== null) { variable.trim(); }.

Notes

The provided information suggests a bug within the OpenClaw system, specifically related to plugin loading and configuration. However, without direct access to the codebase or more detailed logs, providing a precise fix is challenging.

Recommendation

Apply a workaround by carefully reviewing and adjusting the plugin configurations and ensuring all necessary plugins are included in plugins.allow, as this seems to be a critical step in resolving the TypeError and enabling successful configuration saves and gateway restarts.

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

NOT_ENOUGH_INFO

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 - 💡(How to fix) Fix [Bug]: [BUG] Inconsistent/Recurring TypeError: Cannot read properties of undefined (reading 'trim') during openclaw config / plugin loading. [1 comments, 2 participants]