The terminal UI of opencode had stopped drawing text. Every non-ASCII character came out as a low horizontal bar: the close cross on a tab, the spinner, the separator dots. The same session outside tmux was fine, which pointed at the font. It was not the font.
The pane still held the right characters. tmux capture-pane showed the close cross and the spinner exactly as they should be, so tmux was storing them correctly and losing them on the way out to the terminal.
tmux decides per client whether it is talking to a UTF-8 terminal, and it decides at attach, from LC_ALL, then LC_CTYPE, then LANG. I was connecting from Windows, where ssh sends none of the three, so the client was marked as not UTF-8. For such a client tmux first tries to map the character to an ACS line-drawing glyph, and if that fails it replaces it with one underscore per column. That is why the box drawing characters still looked right and everything else became bars. The comment in tty.c is plain about it:
/* Replace by the right number of underscores. */
The fix is to give the attaching client a UTF-8 locale:
export LANG=C.UTF-8
tmux attach
Or, without changing the shell, tmux -u attach, where -u forces UTF-8 for that client. The flag is sent by each client as it attaches, so the server and its panes do not have to be restarted. I put LANG=C.UTF-8 in ~/.profile for logins that arrive with no locale at all, and set it in the tmux global environment so that new panes inherit it.
A throwaway server confirmed it. One server, three clients: with no LANG, and with LANG=POSIX, the character arrived as underscores, and with LANG=C.UTF-8 it arrived as itself.
The giveaway was that characters the font certainly has, such as the multiplication sign and the ellipsis, were broken too, while box drawing survived. If a terminal substitutes some characters and not others, check what it thinks the character set is before changing the font.