# tmux_control:state/0

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_control.erl#L35
- **Page:** https://libtmux.org/en/erlang/latest/reference/t-tmux_control-state-0/

```
-type state() ::
          #{phase := attaching | open | closing | closed,
            generation := reference(),
            owner := pid(),
            identity := unverified | same_connection,
            cleanup := pending | incomplete | complete,
            child_pid := none | pos_integer(),
            helper_pid := none | pos_integer(),
            cause := none | atom()}.
```

Connection state, separate from command completion. complete proves native client/helper retirement; pending and incomplete do not. Retained PIDs are diagnostic observations, never permission to signal a process.
