Skip to content

Add perry agent kill command and update warning#80

Merged
gricha merged 1 commit intomainfrom
agent-kill-command
Jan 10, 2026
Merged

Add perry agent kill command and update warning#80
gricha merged 1 commit intomainfrom
agent-kill-command

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 10, 2026

Summary

  • New perry agent kill command to stop the running agent daemon
  • perry update now warns if agent is running to prevent "Text file busy" errors

Details

perry agent kill

Stops the running agent:

  • If running as systemd service: uses systemctl --user stop perry-agent
  • If running manually: uses pkill -f perry.*agent.*run
  • Falls back to SIGKILL if graceful stop fails

perry update warning

Warning: Perry agent is currently running.
The update may fail with "Text file busy" error.

Stop the agent first with:
  perry agent kill

Then run the update again.

Test plan

  • Run perry agent kill when agent is running via systemd
  • Run perry agent kill when agent is running manually
  • Run perry update when agent is running - should show warning
  • Run perry update when agent is stopped - should proceed normally

🤖 Generated with Claude Code

- New `perry agent kill` command to stop the running agent
  - Stops via systemd if running as a service
  - Uses pkill for manually started agents
- `perry update` now checks if agent is running and warns user
  - Prevents "Text file busy" errors during update
  - Suggests running `perry agent kill` first

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit bf69cbb into main Jan 10, 2026
8 checks passed
@gricha gricha deleted the agent-kill-command branch January 10, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant