# server: map generic one-shot exit to done/failed \(\#10\) · lucenx/signaltty

[View on GitCafe](https://git.cafe/lucenx/signaltty/commit/1faa0b14851eff3d7da13334f121f9c4259ba0a4)

Repository: [lucenx/signaltty](https://git.cafe/lucenx/signaltty)

Visibility: public

Requested revision: 1faa0b14851eff3d7da13334f121f9c4259ba0a4

Requested commit: 1faa0b14851eff3d7da13334f121f9c4259ba0a4

Commit: 1faa0b14851eff3d7da13334f121f9c4259ba0a4

Tree: 356466f84a3fc70a30a5699b431f1e7027b86523

Author: Simone

Committer: GitHub

## Message

```
server: map generic one-shot exit to done/failed (#10)

set_exited always forced lifecycle=exited and ignored the exit code, so
a fast process that finished before `wait --until done` armed hung until
timeout. Product intent (and docs/03, docs/07) is that done/failed persist
after PTY exit: Generic/None panes map exit 0→done and nonzero→failed;
known agents keep Exited unless hooks already recorded Done/Failed.

Co-authored-by: Lucenx9 <185146821+Lucenx9@users.noreply.github.com>
```

## Parents

- [802c1506359462d58b5d8da6c623129d43186792](https://git.cafe/lucenx/signaltty/commit/802c1506359462d58b5d8da6c623129d43186792?format=markdown)

[Source at this commit](https://git.cafe/lucenx/signaltty/tree/1faa0b14851eff3d7da13334f121f9c4259ba0a4?format=markdown)
