mirror of
https://github.com/domfelipe/hermes-client-onboarding.git
synced 2026-08-07 06:16:47 +00:00
Use tmux for stable Hermes auto-kickoff (avoid PTY freeze)
PTY relay freezes prompt_toolkit after the first turn. Prefer a detached tmux session, send short kickoff via send-keys, then attach. Keep PTY as fallback when tmux is missing.
This commit is contained in:
parent
b8f55e799a
commit
1ec8930426
3 changed files with 91 additions and 37 deletions
11
README.md
11
README.md
|
|
@ -155,10 +155,17 @@ O bootstrap instala `~/.local/bin/hermes-client-onboarding`:
|
|||
hermes-client-onboarding
|
||||
```
|
||||
|
||||
Por padrão usa **CLI clássico + injeção automática** da primeira mensagem (PTY). O TUI nativo do Hermes tem race no startup-query (~4s) e costuma ficar mudo — por isso não é o default.
|
||||
Por padrão usa **tmux** (Hermes em sessão dedicada + `send-keys` do kickoff). Isso evita o freeze do wrapper PTY com prompt_toolkit.
|
||||
|
||||
```bash
|
||||
# TUI (opcional, menos confiável para auto-start)
|
||||
# se pedir tmux e não tiver:
|
||||
# apt install -y tmux
|
||||
|
||||
hermes-client-onboarding
|
||||
# detach: Ctrl-b d
|
||||
# reattach: tmux ls && tmux attach -t hermes-onboard-<pid>
|
||||
|
||||
# TUI Ink (opcional, kickoff frágil)
|
||||
HERMES_ONBOARD_USE_TUI=1 hermes-client-onboarding
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue