feat: make autonomous mode default and deprecate -a flag with thread-safe background services

- Changed default autonomous mode to True, deprecating the -a/--autonomous flag
- Disabled background monitoring by default (BACKGROUND_MONITOR_ENABLED = False)
- Added thread locks to prevent duplicate initialization of global monitor and autonomous threads
- Removed duplicate detect_process_type function definition in process_handlers.py
- Added sanitize_for_json helper to handle bytes in autonomous mode tool results
- Improved autonomous detection with simple response keywords for early completion
- Updated /auto command to show deprecation notice and fallback to direct input
- Added proper thread synchronization for cleanup of background threads on exit
- Updated version to 1.47.1 across pyproject.toml and rp/__init__.py
This commit is contained in:
2025-11-09 02:34:01 +00:00
parent de6b6652ee
commit b1bfab5479
14 changed files with 125 additions and 108 deletions
+24
View File
@@ -1,5 +1,23 @@
# Changelog
## Version 1.47.1 - 2025-11-09
### Fixed
- **Duplicate Processes**: Fixed duplicate process execution when running `/auto` command
- Disabled background monitoring by default (set `BACKGROUND_MONITOR_ENABLED = False` in config.py)
- Added thread locks to prevent duplicate initialization of global monitor and autonomous threads
- Removed duplicate `detect_process_type()` function definition in `rp/tools/process_handlers.py`
- Background monitoring can be re-enabled via environment variable: `BACKGROUND_MONITOR=1`
### Changed
- **Autonomous mode is now the default**: All messages and tasks run in autonomous mode by default
- Single message mode: `rp "task"` now runs autonomously until completion
- Interactive mode: Messages in REPL now run autonomously without needing `/auto`
- The `/auto` command still works but shows a deprecation notice
- The `-a/--autonomous` flag is now deprecated as it's the default behavior
- Background monitoring is now opt-in rather than opt-out
- Added proper thread synchronization for global background services
- Improved cleanup of background threads on exit
@@ -43,6 +61,12 @@
## Version 1.47.0 - 2025-11-08
Users can now search for knowledge by category. We've also improved performance and updated the software version to 1.47.0.
**Changes:** 3 files, 40 lines
**Languages:** Markdown (8 lines), Python (30 lines), TOML (2 lines)
## Version 1.46.0 - 2025-11-08