mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Add process management guidance to system prompt (#10083)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user