# tmux.Client.ResolveAttachment

- **Module:** tmux.Client
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/client_attachment.go#L41
- **Page:** https://libtmux.org/reference/go/tmux-client-resolveattachment/

```
tmux.Client.ResolveAttachment(ctx: context.Context) -> (ClientAttachment, error)
```

ResolveAttachment re-reads the client's live attached hierarchy.

One resolution materializes one strict Snapshot. Snapshot collection is a
multi-command observational read, so concurrent tmux changes may produce a
partial hierarchy. A missing client, detached client, or stale session
returns an empty attachment without an error. Other collection, decoding,
and cardinality errors remain visible.
