triflux 3.2.0-dev.14 → 3.2.0-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hub/team/psmux.mjs +6 -5
- package/package.json +1 -1
package/hub/team/psmux.mjs
CHANGED
|
@@ -310,11 +310,12 @@ export function spawnWorker(sessionName, workerName, cmd) {
|
|
|
310
310
|
throw new Error("psmux가 설치되어 있지 않습니다. psmux를 먼저 설치하세요.");
|
|
311
311
|
}
|
|
312
312
|
try {
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
// 세션 컨텍스트 포함 타겟 반환 (psmux는 세션별 서버 모델)
|
|
314
|
+
const paneTarget = psmuxExec(
|
|
315
|
+
`split-window -t ${quoteArg(sessionName)} -P -F "#{session_name}:#{window_index}.#{pane_index}" ${quoteArg(cmd)}`
|
|
315
316
|
);
|
|
316
|
-
psmuxExec(`select-pane -t ${quoteArg(
|
|
317
|
-
return { paneId, workerName };
|
|
317
|
+
psmuxExec(`select-pane -t ${quoteArg(paneTarget)} -T ${quoteArg(workerName)}`);
|
|
318
|
+
return { paneId: paneTarget, workerName };
|
|
318
319
|
} catch (err) {
|
|
319
320
|
throw new Error(`워커 생성 실패 (session=${sessionName}, worker=${workerName}): ${err.message}`);
|
|
320
321
|
}
|
|
@@ -332,7 +333,7 @@ export function getWorkerStatus(sessionName, workerName) {
|
|
|
332
333
|
}
|
|
333
334
|
try {
|
|
334
335
|
const output = psmuxExec(
|
|
335
|
-
`list-panes -t ${quoteArg(sessionName)} -F "#{pane_title}\t#{
|
|
336
|
+
`list-panes -t ${quoteArg(sessionName)} -F "#{pane_title}\t#{session_name}:#{window_index}.#{pane_index}\t#{pane_dead}\t#{pane_dead_status}"`
|
|
336
337
|
);
|
|
337
338
|
const lines = output.split("\n").filter(Boolean);
|
|
338
339
|
for (const line of lines) {
|