# fix\(web\): run exit handling when attaching to exited terminals · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/6e17ad969aa9ef4088ebb9b0b78fa7f103df75fc)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: 6e17ad969aa9ef4088ebb9b0b78fa7f103df75fc

Requested commit: 6e17ad969aa9ef4088ebb9b0b78fa7f103df75fc

Commit: 6e17ad969aa9ef4088ebb9b0b78fa7f103df75fc

Tree: 3ff29c4ed4acbb77b2954a72ecffda754eaa705b

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): run exit handling when attaching to exited terminals

Mount synchronization now starts from the empty "closed" state like the
previous xterm mount did, so a viewport attaching to a session that
already exited still writes the system message and fires
onSessionExited once.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [73a532349d2554d3e46178b4faba20e0752c0bab](https://git.cafe/stienswout/t3code/commit/73a532349d2554d3e46178b4faba20e0752c0bab?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/6e17ad969aa9ef4088ebb9b0b78fa7f103df75fc?format=markdown)
