openclaw - ✅(Solved) Fix [Bug]: Web UI completely blank on 4.30 [1 pull requests, 2 comments, 3 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#75987Fetched 2026-05-03 04:43:35
View on GitHub
Comments
2
Participants
3
Timeline
11
Reactions
3
Author
Timeline (top)
cross-referenced ×3commented ×2labeled ×2closed ×1

2026.4.29 is still good for webUI but after upgrade to 4.30 (latest commit main branch) the webui show only blank, status is showing good but nothing in webui. the console webbrowser show: Uncaught ReferenceError: process is not defined tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208 [home-dir.ts:72:64](/src/infra/home-dir.ts) tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208

Root Cause

2026.4.29 is still good for webUI but after upgrade to 4.30 (latest commit main branch) the webui show only blank, status is showing good but nothing in webui. the console webbrowser show: Uncaught ReferenceError: process is not defined tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208 [home-dir.ts:72:64](/src/infra/home-dir.ts) tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208

Fix Action

Fix / Workaround

2026.4.29 is still good for webUI but after upgrade to 4.30 (latest commit main branch) the webui show only blank, status is showing good but nothing in webui. the console webbrowser show: Uncaught ReferenceError: process is not defined tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208 [home-dir.ts:72:64](/src/infra/home-dir.ts) tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208

PR fix notes

PR #75989: fix(infra): guard process access in home-dir for browser bundle (Fixes #75987)

Description (problem / solution / changelog)

Problem

v2026.4.30 Web UI is completely blank. Browser console shows:

Uncaught ReferenceError: process is not defined
    at src/infra/home-dir.ts:72

The call chain is utils.ts:208 (CONFIG_DIR = resolveConfigDir()) → resolveRequiredHomeDir() → default param process.env → throws in browser.

Root Cause

src/infra/home-dir.ts uses process.env, process.cwd(), and os.homedir() as default parameter values. When this module is bundled into the browser-facing Web UI build (pulled in transitively via src/utils.ts top-level CONFIG_DIR), process is undefined and the module evaluation throws immediately.

Fix

  • Added browser-safe accessors (safeEnv, safeCwd, safeHomedir) gated behind typeof process === "undefined" in home-dir.ts
  • Replaced all bare process.env / process.cwd() / os.homedir default params with these safe accessors
  • Guarded direct process.env access in src/utils.ts (resolveHomeDir and resolveHomeDisplayPrefix)
  • Added regression tests exercising the empty-env (browser-equivalent) path

Fixes #75987

Changed files

  • src/infra/home-dir.test.ts (modified, +13/-0)
  • src/infra/home-dir.ts (modified, +19/-13)
  • src/utils.ts (modified, +2/-1)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

2026.4.29 is still good for webUI but after upgrade to 4.30 (latest commit main branch) the webui show only blank, status is showing good but nothing in webui. the console webbrowser show: Uncaught ReferenceError: process is not defined tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208 [home-dir.ts:72:64](/src/infra/home-dir.ts) tc home-dir.ts:72 ac utils.ts:142 <anonymous> utils.ts:208

Steps to reproduce

Just restart gateway after 4.30 upgrade

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

NOT_ENOUGH_INFO

OpenClaw version

2026.4.30

Operating system

Ubuntu 22.4

Install method

pnpm build

Model

gpt

Provider / routing chain

openclaw > omniroute > gpt codex

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 issue is likely caused by a change in the home-dir.ts file that introduced a reference to the process object, which is not defined in the browser context, and a workaround may involve modifying the code to use a browser-compatible alternative.

Guidance

  • Verify that the home-dir.ts file is being executed in a browser context, where the process object is not available, and check if there are any recent changes that may have introduced this issue.
  • Check the utils.ts file, specifically lines 142 and 208, to see how the home-dir.ts file is being called and if there are any potential workarounds.
  • Consider using a browser-compatible alternative to the process object, such as the window object or a library that provides a similar functionality.
  • Review the changes made in the latest commit (4.30) to identify the root cause of the issue.

Example

No code example is provided due to the lack of information about the specific changes made in the home-dir.ts file.

Notes

The issue may be specific to the home-dir.ts file and the way it is being used in the application, and more information about the code changes and the application's architecture may be needed to provide a more accurate solution.

Recommendation

Apply workaround: The issue is likely caused by a change in the code that introduced a reference to the process object, which is not defined in the browser context, and a workaround may involve modifying the code to use a browser-compatible alternative.

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 - ✅(Solved) Fix [Bug]: Web UI completely blank on 4.30 [1 pull requests, 2 comments, 3 participants]