fix(tmux): treat busy sessions as attachable
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
/// <reference types="bun-types" />
|
||||||
|
|
||||||
|
import { describe, expect, test } from "bun:test"
|
||||||
|
|
||||||
|
import { isAttachableSessionStatus } from "./attachable-session-status"
|
||||||
|
|
||||||
|
describe("isAttachableSessionStatus", () => {
|
||||||
|
test("#given a busy session #when checking attachability #then it is attachable", () => {
|
||||||
|
//#given
|
||||||
|
const status = "busy"
|
||||||
|
|
||||||
|
//#when
|
||||||
|
const attachable = isAttachableSessionStatus(status)
|
||||||
|
|
||||||
|
//#then
|
||||||
|
expect(attachable).toBe(true)
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const ATTACHABLE_SESSION_STATUSES = ["idle", "running"] as const
|
const ATTACHABLE_SESSION_STATUSES = ["idle", "running", "busy"] as const
|
||||||
|
|
||||||
export type AttachableSessionStatus = (typeof ATTACHABLE_SESSION_STATUSES)[number]
|
export type AttachableSessionStatus = (typeof ATTACHABLE_SESSION_STATUSES)[number]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user