mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 21:47:41 +00:00
Two bugs found while testing skill loading as a non-owner: 1. The injected bash tool was never actually usable: AgentHarness.setTools only updates the tool registry unless activeToolNames is passed, so bash was missing from the active tool set sent to the model on the next turn. Pass the full post-update tool list as activeToolNames. 2. The active_tools_change session entry (written by setTools) has no chat representation, so mapEntryToMessage fell back to fabricating an empty user message that appeared as a stray empty bubble in the chat stream. Render active_tools_change as a typed custom message and skip entry types that have no chat representation instead of emitting empty text.