Skip to content

Bug: codex-daily-token-usage script causes UI layout corruption #37

Description

@fj981114-hub

Bug Description

When the codex-daily-token-usage script (v1.4.3) is enabled in Codex++, the entire Codex UI layout becomes corrupted.

Symptoms

  1. Top menu bar overlap: "帮助" (Help) and "插件" (Plugins) menu items overlap each other
  2. Settings button clipped: The "设置" (Settings) button at the bottom-left is cut off and impossible to click
  3. Sidebar overflow: The full UI cannot be rendered even when resizing

Steps to Reproduce

  1. Install Codex++ v1.2.27
  2. Enable the codex-daily-token-usage script (v1.4.3)
  3. Restart Codex++
  4. UI layout is immediately corrupted

Expected Behavior

Enabling a user script should not affect the core Codex UI layout.

Actual Behavior

The script injects CSS/JS that conflicts with the Codex web app layout, causing elements to overlap or be clipped.

Workaround

Disable codex-daily-token-usage and restart. UI returns to normal immediately. Other scripts (zhcn-translate, token-usage, hide-usage-alert) do NOT cause this issue.

Environment

  • Codex++ v1.2.27
  • Script: codex-daily-token-usage v1.4.3
  • OS: Windows 11
  • Browser: Edge (Chromium-based)

Suggestion

The script likely injects a DOM element with CSS that pushes existing layout elements. Please review the DOM injection and CSS to avoid conflicts with native Codex UI components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions