fix(adapters): set agy exit_key to /exit for clean graceful shutdown

This commit is contained in:
Godopu committed 2026-09-09 22:52:40 +09:00
1 parent 636b47475f
commit 4d444ce6cd
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class AgyAgentAdapter(BaseAgentAdapter):
@property
def exit_key(self) -> str:
return 'Exit'
return '/exit'
@property
def delegate_agent_key(self) -> str:
+1 -1
View File
@@ -28,7 +28,7 @@ Stop an agent's herdr session gracefully, resolve and store the conversation ID,
- The `start_command` so a future `multi-agent-mux-create --session <name>` reproduces the same herdr spec
The stop command is always **graceful by default**:
1. Sends exit keys to the agent TUI (`/exit` for Claude, `Exit` for Agy) and waits 3 seconds.
1. Sends exit keys to the agent TUI (`/exit` for Claude, `/exit` for Agy) and waits 3 seconds.
2. If still alive, issues `herdr kill-session` (SIGTERM) and waits 5 seconds.
3. If still alive, kills the pane PID via SIGKILL (`kill -9`) as a last resort.
4. Auto-captures the conversation ID into the row (`claude_session_id_own`/`agy_conversation_id_own`) before killing, ensuring the next resume uses a race-free tier-1 lookup.