OpenVoiceOS / OpenVoiceOS/ovos-workshop

Incomplete OCP keyword deregistration functionality in OVOSCommonPlaybackSkill

Open
#370 0 comments 0 reactions 1 assignee View on GitHub

@JarbasAl is already working on this.

Since Jul 8, 2025.

Dominant language
Python
Stars
6
Forks
17
Avg merge
1d 13h
Merged PRs (30d)
36

Description

Problem

The deregister_ocp_keyword method in OVOSCommonPlaybackSkill is currently incomplete and does not properly remove entities from internal data structures (ocp_matchers and _ocp_ents). This could lead to memory leaks as entities accumulate without proper cleanup.

Current Behavior

The method currently only passes without removing entities:

  • Entities remain in ocp_matchers dictionary
  • Entities remain in _ocp_ents dictionary
  • No local cleanup is performed

Expected Behavior

The method should properly clean up registered entities from internal data structures, even if upstream deregistration is not yet supported.

Context

This issue was identified during code review of PR #365.

References:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.