Commit 1c6e75e
fix(ui): report ambiguity on partial process name match (#564)
When multiple processes match a partial `--app` query (e.g. `-a
terminal` matching two `WindowsTerminal` instances) and all have visible
windows, the code silently fell through to title search which then
failed with a misleading *No running app found* error.
Now it throws a clear error listing the matching PIDs, process names,
and window titles — consistent with the exact-name-match path:
```
Multiple processes matching 'terminal' found:
PID 6816 (WindowsTerminal): ...
PID 10516 (WindowsTerminal): Administrator: Windows PowerShell
Use --app with a PID or a more specific window title.
```
Co-authored-by: Nikola Metulev <711864+nmetulev@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1d02697 commit 1c6e75e
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
358 | 371 | | |
359 | 372 | | |
360 | 373 | | |
| |||
0 commit comments