Skip to content

sysmon: expand merged process rows - #4219

Merged
purian23 merged 3 commits into
duxlabs-dev:masterfrom
Conava:expand-merged-processes
Nov 10, 2026
Merged

purian23 merged 3 commits into
duxlabs-dev:masterfrom
Conava:expand-merged-processes

Conversation

@Conava

@Conava Conava commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Description

Merged rows in the process list (like "Zen Browser (14)") can now be expanded with the arrow in front of them, which shows the processes behind the row, each with its own values. The main process comes first. The Right and Left arrow keys open and close a group.

While a group is open, the whole list keeps its order, the same way it does while a detail row is open, so the group doesn't jump away right after opening it.

This needs duxlabs-dev/dux-gop#57 merged first, which adds the processes behind each merged row to dgop's output. After that, the dux-gop version in the shell needs a bump. Until that, the arrow just doesn't show.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Before:

screenshot_2026-11-09_20-42-22

After:

screenshot_2026-11-09_20-41-45

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

A merged row only showed its totals and a child count. A chevron in
front of it now opens the processes behind it, each as its own
indented row with its own values, the root's own row first. Right and
Left open and close a group from the keyboard.

Opening or closing a group changes the list in place, and an open
group holds the order like an open detail strip, so the row stays
under the pointer. Members that exit leave and new ones are added at
the end of the group. Search, filter and sort changes close groups,
as they close the detail strip.

The root's own row has the merged row's pid, so rows are identified
by a key instead (members use root/pid). The members come from
dgop's process-members module; with a dgop that doesn't list it, no
chevron shows.
@github-actions github-actions Bot added feature ui Quickshell UI under quickshell/ labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

One bug to fix: the keyboard selection can move to another process while a group is open.

  • Paused refreshes add and remove member rows without remapping selectedIndex, so the selection moves to another process and Delete can quit the wrong one, quickshell/Modules/ProcessList/ProcessesView.qml:268

Checked: grouping and key handling in ProcessesView, ProcessRow expander and a11y, detail strip lookups via findProcess, the DgopService toProcess refactor and the process-members module handling, I18n term reuse, D* widget usage. Model: claude-opus-5-5.

Paused refreshes add and remove member rows of open groups, but only
toggling a group remapped the selected index, so the selection could
slide onto another process and Delete would quit that one. The rebuild
now looks the selected row up by key, falling back to its group row
when the member is gone.

Details opened on a member row also stayed open after the row left the
list (member exited, group emptied or closed on a tab switch), which
held the list order and kept network sampling on with nothing to
close. They now close once their row is gone.
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier selection finding is fixed: refreshValues() now maps selectedIndex back to the same process by key.

Checked: group open/close and member ordering in ProcessesView, key handling for Left/Right with RTL, the pid to key switch in the model, expanded and selected rows, ProcessRow expander, indent and a11y, detail strip lookups via findProcess, the DgopService toProcess refactor and process-members handling with older dgop, I18n term reuse, D* widget usage. Model: claude-opus-5-5.

@github-actions github-actions Bot added the core Go daemon and CLI under core/ label Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The only change since the last review is the dux-gop bump in core/go.mod and core/go.sum, which pulls in the process-members output this PR relies on.

Checked: the dux-gop bump, and again the group open and close logic and selection remapping in ProcessesView, the pid to key switch, ProcessRow expander and a11y, findProcess lookups in the detail strip, DgopService toProcess and the process-members fallback. Model: claude-opus-5-5.

@purian23
purian23 merged commit 6d94555 into duxlabs-dev:master Nov 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Go daemon and CLI under core/ feature ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants