We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ab878 commit 4cacb56Copy full SHA for 4cacb56
1 file changed
packages/agent-manager/src/terminal/TerminalFocusManager.ts
@@ -134,7 +134,7 @@ export class TerminalFocusManager {
134
private async findTerminalAppWindow(tty: string): Promise<TerminalLocation | null> {
135
try {
136
// Check if Terminal is running
137
- const { stdout: isRunning } = await execAsync('pgrep -x Terminal || echo "no"');
+ const { stdout: isRunning } = await execAsync('ps -eo pid=,comm= | grep "Terminal.app" || echo "no"');
138
if (isRunning.trim() === "no") return null;
139
140
const script = `
0 commit comments