# feat\(pi\): Advertise /compact and send RPC compact · stienswout/t3code

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

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

Visibility: public

Requested revision: 8d97fc5d4e49b3b0441ea2b534591dd7f863fc9e

Requested commit: 8d97fc5d4e49b3b0441ea2b534591dd7f863fc9e

Commit: 8d97fc5d4e49b3b0441ea2b534591dd7f863fc9e

Tree: d7df501c76d96653f5b5d58a44b4ca16adc3f6f8

Author: Mike Olson

Committer: Wout Stiens

## Message

```
feat(pi): Advertise /compact and send RPC compact

Pi RPC get_commands omits TUI builtins, so /compact never appeared in the
composer. Advertise it and send {type: compact} instead of a prompt.
Stop during compact terminates the process because Pi abort does not
cancel manual compaction.

```

## Parents

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

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