Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions js/.changeset/fix-process-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@link-assistant/agent': patch
---

Fix process name to show as 'agent' instead of 'bun' in process monitoring tools

This change sets both process.title and process.argv0 to 'agent' at CLI startup,
ensuring the process appears as 'agent' instead of 'bun' in monitoring tools like top and ps.
5 changes: 5 additions & 0 deletions js/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bun

// Set process title to 'agent' so it appears correctly in process monitoring tools like top/ps
// Both process.title and process.argv0 need to be set for maximum compatibility
process.title = 'agent';
process.argv0 = 'agent';

import { Server } from './server/server.ts';
import { Instance } from './project/instance.ts';
import { Log } from './util/log.ts';
Expand Down