# tmux.Session.ResolveActivePane

- **Module:** tmux.Session
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/relations.go#L96
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-session-resolveactivepane/

```
tmux.Session.ResolveActivePane(ctx: context.Context) -> (Pane, error)
```

ResolveActivePane returns the active pane in this session's active window, read live. It lists that session's panes rather than taking a whole-server snapshot, because a pane row already carries which window is active. It returns [SnapshotLookupError] cardinality errors, which match [ErrNotFound] when nothing was found.
