Skip to content

Stop the process list's Time colour and kill options misleading for idle sessions #833

Closed

Description

@EVWorth

Severity: P2

What happens

On ?mock=connected, Toolbar → Admin → Process List:

  • Every Time over 30s is red, whatever the command: the Daemon thread (1209644s), the Binlog Dump GTID replica thread (604812s) and idle Sleep sessions (47s, 590s, 1212s) look as alarming as the real 340s analytics query. Times are raw seconds (1209644s is 14 days).
  • Click the skull on idle Sleep session 2214: the confirm offers "Kill query" for a session with no statement. Clicking it does nothing visible — the row stays and there is no message.
  • Focus the skull with Tab and press Enter: focus drops to <body>, and Escape does not dismiss the confirm.
  • Opening the confirm widens the last column and reflows the whole table (other columns shrink and wrap).

Cause

  • src/components/admin/ProcessListTab.tsx:85-89,190: timeColor uses time only.
  • :213-219: "Kill query" is always offered.
  • :210-234: the confirm replaces the focused skull button and has no key handling; the action column has no fixed width.

Fix

Colour by time only for active commands (Query, Execute, Killed); keep Sleep/Daemon/Binlog Dump muted. Format durations ("14d 0h", "5m 40s"). Hide "Kill query" when info is null. Focus "Kill query" when the confirm opens and close it on Escape. Give the action column a fixed width.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 24, 2026
    a2602d9
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions