Skip to content

[Bug]: web ui日志界面无信息 #72450

Closed

Description

@sobergou

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

升级到2026.4.24后web ui日志无内容

Image

Steps to reproduce

升级到2026.4.24

Expected behavior

有日志显示

Actual behavior

无日志显示

OpenClaw version

2026.4.24

Operating system

ubuntu 20.04

Install method

No response

Model

gpt-5.5

Provider / routing chain

局域网内

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. clawsweeper commented on Apr 27, 2026

    @clawsweeper
    Contributor

    Codex automated review: keeping this open.

    Keep this same-day regression report open. Current main still uses the 2026.4.24 Logs tab path (logs.tail -> configured file-log tail -> UI entries), and I found no post-release functional fix, duplicate, or merged PR that resolves the reported empty Web UI logs after upgrading to 2026.4.24.

    Best possible solution:

    Keep this issue open and investigate the 2026.4.24 Logs tab path end to end. First reproduce or ask the reporter for the logs.tail response, browser console/network error, install method, logging.file config, and whether openclaw logs --follow or openclaw gateway call logs.tail --params '{"limit":50}' returns lines on the same host. The likely fix belongs in the generic logging/UI path: either correct configured log-file discovery/cursor behavior in src/logging/log-tail.ts or surface a clearer UI error/diagnostic in ui/src/ui/controllers/logs.ts and ui/src/ui/views/logs.ts, with a regression test for the confirmed failure mode.

    What I checked:

    • Issue context: The provided GitHub context reports a fresh regression after upgrading to 2026.4.24: expected Web UI logs to display, actual logs are empty; there are no comments, linked PRs, or duplicate pointers in the provided timeline.
    • UI fetch path: The Logs controller still requests logs.tail, maps payload.lines into entries, and replaces the UI entries when the request is reset or the cursor is unset. Empty lines therefore directly produces an empty Logs tab. (ui/src/ui/controllers/logs.ts:111, bfdee5fa72cc)
    • Empty-state rendering: The Logs view renders No log entries. whenever the filtered entry list is empty, matching the user-visible symptom if logs.tail returns no lines or the UI state is cleared. (ui/src/ui/views/logs.ts:132, bfdee5fa72cc)
    • Gateway method path: The gateway logs.tail handler still validates params and delegates to readConfiguredLogTail; no current-main code in this handler addresses a 2026.4.24 upgrade empty-log regression. (src/gateway/server-methods/logs.ts:10, bfdee5fa72cc)
    • Log-tail behavior: readConfiguredLogTail resolves the configured log file and readLogSlice returns an empty lines array when the file is missing, empty, or the cursor is at the current size. That leaves plausible unfixed causes in configured path resolution, file creation, cursor handling, permissions, or runtime logging after upgrade. (src/logging/log-tail.ts:62, bfdee5fa72cc)
    • Release-to-main history: The Logs tab and logs.tail implementation were introduced in the v2026.4.24 release commit, and a targeted diff from v2026.4.24 to current main shows no functional changes to the UI controller/view, server handler, or log-tail implementation; only unrelated protocol/test changes appear in the touched set. (bfdee5fa72cc)

    Remaining risk / open question:

    • The root cause is not yet isolated; maintainers need the logs.tail RPC payload, browser console/network result, configured logging.file, and on-disk log-file state from the affected Ubuntu 20.04 install.
    • Closing now would discard a same-day regression report against the latest release without evidence of an implemented fix or a canonical duplicate.

    Codex Review notes: model gpt-5.5, reasoning high; reviewed against bfdee5fa72cc.

  2. steipete commented on Apr 30, 2026

    @steipete
    Contributor

    Closing as fixed on main. Lazy Control UI panel failures now surface loading/reload/retry states instead of leaving the Logs tab blank after stale bundles in c6ebd99, which is on origin/main. The changelog records it as fixing #72450.

  3. locked as resolved and limited conversation to collaborators on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions