You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Add niceness parameter to executeBash for process priority control (#162)
Add optional `niceness` parameter to the `executeBash` IPC call for
controlling process priority. This parameter is only available at the
IPC level and is not exposed to agents in tool descriptions.
## Changes
- **Add niceness parameter to IPC interface**: Added optional `niceness`
parameter to `executeBash` options (accepts -20 to 19, where lower =
higher priority)
- **Wire through stack**: Parameter flows from IPC → ipcMain handler →
bash tool → process spawn
- **Bash tool implementation**: When niceness is specified, commands are
wrapped with `nice -n <value>`
- **Frontend git operations**: Set all git-related executeBash calls to
use niceness 19 (lowest priority) to prevent background operations from
interfering with user interactions
- **Auto-dependency installation**: Added `ensure-deps` Makefile target
that automatically runs `bun install` if `node_modules` doesn't exist
## Technical Details
When niceness is provided, the bash tool wraps commands like:
```bash
nice -n 19 bash -c "original command"
```
All git operations in GitStatusContext and GitStatusIndicator now run at
lowest priority:
- Git fetch (30s timeout)
- Git status checks (5s timeout)
- Git diff operations (5s timeout)
_Generated with `cmux`_
0 commit comments