botpress icon indicating copy to clipboard operation
botpress copied to clipboard

Improvement uninstall leaves read-only LLMz hooks active and causes “Error Occurred”

Open tmekczyz6-design opened this issue 3 months ago • 3 comments

Environment

  • Botpress Cloud / Studio
  • Improvement integration v3.0.0
  • Autonomous Node using LLMz

Problem

After uninstalling the Improvement integration, two integration-owned hooks remain in the Hooks editor:

  • Provide Learnings to LLMz — Before LLMz Execution
  • Track LLMz Iterations — After LLMz Execution

The hooks are read-only and cannot be edited or deleted. Studio warns that the integration is not installed, but the runtime still executes both hooks. This produces Error Occurred entries around Autonomous Node execution, including Failed to track some iterations.

The Autonomous Node can still generate a response, so this is independent of the workspace AI Spend quota.

Steps to reproduce

  1. Install the Improvement integration.
  2. Run an Autonomous Node in the Emulator.
  3. Uninstall the Improvement integration.
  4. Reload Studio.
  5. Open the Hooks editor and observe that both Improvement hooks remain read-only.
  6. Start a fresh Emulator conversation that executes an Autonomous Node.
  7. Observe Error Occurred before and/or after LLMz execution.

Expected behavior

Uninstalling Improvement should remove or deactivate its integration-owned hooks. Alternatively, orphaned hooks should not execute and should be manually removable.

Actual behavior

The orphaned hooks remain active, cannot be deleted, and produce errors on every tested LLMz turn.

Troubleshooting already attempted

  • Disable and uninstall Improvement
  • Reload Studio
  • Reinstall Improvement and uninstall it again
  • Try deleting the hooks with Delete/Backspace
  • Test another supported LLM model

The hooks remain read-only and continue to execute.

No bot ID, workspace ID, user data, or project-specific information is included in this report.

tmekczyz6-design avatar Aug 21 '26 21:08 tmekczyz6-design

I'll work on this. Could you assign it to me?

I'll reproduce from the report, fix the failure path, and add a test so it stays fixed.

modelpath-dev avatar Sep 04 '26 08:09 modelpath-dev

Thanks for assigning this to me. I'll start by reproducing the issue as described. Once I have a clear understanding, I'll work on a fix to ensure the hooks are properly removed or deactivated upon uninstallation. I'll also add a test to prevent this from happening again. Let me know if there are any specific considerations or additional information needed.

modelpath-dev avatar Sep 06 '26 09:09 modelpath-dev

I've started reproducing the issue and will focus on ensuring the hooks are removed or deactivated correctly. I'll update once I have more progress or if I need further details. Thanks for your patience.

modelpath-dev avatar Sep 08 '26 10:09 modelpath-dev