Skip to content

PORTW-21: Keep process names with spaces in the ps reader - #29

Merged
JtheGunner merged 2 commits into
mainfrom
fix/PORTW-21-ps-names-with-spaces
Nov 12, 2026
Merged

JtheGunner merged 2 commits into
mainfrom
fix/PORTW-21-ps-names-with-spaces

Conversation

@JtheGunner

Copy link
Copy Markdown
Owner

Issue: https://youtrack.xn--wrm-hoa.li/issue/PORTW-21

On macOS the ps reader cut process names at the first space (LM instead of LM Studio). The reader now also asks ps -o comm= -p <pid> through execx.Runner and uses that name only when it is a clean prefix of the command column; otherwise it falls back to the previous split. Parsing stays a pure function with fixtures in testdata/.

Commits:

  • fix: keep process names with spaces in the ps reader
  • chore: merge main into the ps-reader branch

Review: independent review PASS on 224d27c.

Read the executable path via ps -o comm= and use it to split the command
column, so names like "LM Studio" are no longer cut to "LM".
@JtheGunner
JtheGunner merged commit 27e2d95 into main Nov 12, 2026
3 checks passed
@JtheGunner
JtheGunner deleted the fix/PORTW-21-ps-names-with-spaces branch November 12, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant