Skip to content

feat: add /restart command#303

Closed
groudas wants to merge 4 commits intoHKUDS:mainfrom
groudas:feat/add-restart-command
Closed

feat: add /restart command#303
groudas wants to merge 4 commits intoHKUDS:mainfrom
groudas:feat/add-restart-command

Conversation

@groudas
Copy link
Copy Markdown
Contributor

@groudas groudas commented Feb 7, 2026

Hi, this is my first contribution here, I hope there's no mistakes.

I thought about implementing a /restart command that allows gracefully restarting the application from any channel (telegram, whatsapp, etc). It's useful when modifying elements that require a fresh backend restart.

edit: also, i tried to add the least amount of code realistically possible!

edit2: Just created an issue so we can discuss the implementation itself (#682)

--- AI generated commentary:

Implements a /restart command for the Telegram channel, enabling graceful application restarts directly from the chat.

Key Changes

Removed the filter exclusions in TelegramChannel that prevented non-standard commands from reaching the agent loop.
Explicit Registration: Registered /restart in the Telegram bot menu alongside /start and /help for better UX.
Safety: Implemented a delay in AgentLoop to ensure the confirmation message is delivered before the process restarts.

Closes #682

@groudas groudas changed the title feat: add /restart command handler feat: add /restart command Feb 15, 2026
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.

Sugestion: Add a /restart command accessible from messengers

1 participant