refactor(tmux-subagent): stabilize polling, execution and session lifecycle with runner

This commit is contained in:
YeonGyu-Kim
2026-04-28 10:45:17 +09:00
parent 90e6e0cdce
commit c8b225099c
8 changed files with 719 additions and 355 deletions
@@ -0,0 +1,11 @@
const ATTACHABLE_SESSION_STATUSES = ["idle", "running"] as const
export type AttachableSessionStatus = (typeof ATTACHABLE_SESSION_STATUSES)[number]
export function isAttachableSessionStatus(
status: string | undefined,
): status is AttachableSessionStatus {
return ATTACHABLE_SESSION_STATUSES.some(
(attachableSessionStatus) => attachableSessionStatus === status,
)
}