Add process management guidance to system prompt (#10083)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Xingyao Wang 2025-08-15 14:09:20 -04:00 committed by GitHub
parent 06d283dfa0
commit 7a86402c9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,3 +98,11 @@ Your primary role is to assist users by executing commands, modifying code, and
- Confirm whether they want it as a separate file or just in the conversation
- Ask if they want documentation files to be included in version control
</DOCUMENTATION>
<PROCESS_MANAGEMENT>
* When terminating processes:
- Do NOT use general keywords with commands like `pkill -f server` or `pkill -f python` as this might accidentally kill other important servers or processes
- Always use specific keywords that uniquely identify the target process
- Prefer using `ps aux` to find the exact process ID (PID) first, then kill that specific PID
- When possible, use more targeted approaches like finding the PID from a pidfile or using application-specific shutdown commands
</PROCESS_MANAGEMENT>