Feature/stabilization and simplication#9
Merged
Conversation
- msg processing - agent switching
roxblnfk
approved these changes
Sep 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactorings to session management, operation processing, and configuration handling in the codebase. The most significant changes include enhanced tracking of pending operations in the command bus, more robust and informative handling of agent/model configuration changes, streamlined session status updates, and improved handling of private tool calls. Additionally, the plugin initialization logic has been cleaned up for better readability.
Operation processing and session status:
pending_opstracking to thecommand_busto accurately monitor the number of queued and processed operations, and trigger a callback when the queue is empty. [1] [2] [3] [4]Configuration and agent/model switching:
control_configto handle agent and model changes more robustly, including switching agents/models as needed, updating upstream session state, and adding detailed system/developer messages about configuration changes. [1] [2]Message and tool operation handling:
Plugin and session initialization cleanup:
Operation processing and status
pending_opsfield and logic incommand_bus.luato track operations and trigger a callback when the operation queue is empty. [1] [2] [3] [4]Configuration changes and agent/model switching
control_configto robustly handle agent/model changes, including switching logic, upstream updates, and system/developer messages with change details. [1] [2]Message and tool handling
Plugin/session initialization cleanup
plugin.lua. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]