fix: show the full command line in the process inspector (#1334)

The CMD column rendered ps's comm field, which the kernel caps at 15
characters, so anything longer looked truncated no matter how wide the
column was. The full args were already collected; show them.
This commit is contained in:
ZacharyZcR
2026-08-25 01:36:02 +08:00
committed by GitHub
parent dc47c4ca86
commit c51c3a9449
@@ -164,7 +164,8 @@ export function ProcessInspectorCard({ hostId }: { hostId: number | null }) {
{depth > 0 && ( {depth > 0 && (
<span className="text-muted-foreground/40"> </span> <span className="text-muted-foreground/40"> </span>
)} )}
{p.command} {/* `comm` is capped at 15 chars by the kernel; the full command line is in args. */}
{p.args || p.command}
</span> </span>
<button <button
onClick={() => kill(p.pid, "TERM")} onClick={() => kill(p.pid, "TERM")}