feat: KwKontext-Bearbeitung implementiert + edit_kind-Verzweigung Text-Input + 5️⃣ Lösch statt Weg

This commit is contained in:
Bernd (Hermes)
2026-07-21 03:39:32 +02:00
parent 2e333c8178
commit eb10954e7c
4 changed files with 373 additions and 27 deletions
+12 -5
View File
@@ -4494,12 +4494,18 @@ class RocketChatAdapter(BasePlatformAdapter):
if state.get("pending_text_input"):
sub_phase = state.get("sub_phase", "")
target_room_id = state.get("target_room_id", "")
edit_kind = state.get("edit_kind", "keywords_100")
if sub_phase == SUB_PHASE_KEYWORDS_EDIT and target_room_id:
# Keyword hinzufügen
result = self.archivar._room_map.add_keyword_100(
target_room_id, single_line
)
# Keyword hinzufügen — edit_kind bestimmt die Ziel-Liste
if edit_kind == "keywords_context":
result = self.archivar._room_map.add_keyword_context(
target_room_id, single_line
)
else:
result = self.archivar._room_map.add_keyword_100(
target_room_id, single_line
)
if result:
_persist_room_map_changes(self.archivar, rebuild_faiss=True)
await self._post_message_with_retry(
@@ -4515,7 +4521,8 @@ class RocketChatAdapter(BasePlatformAdapter):
# Zurück zur keywords_edit Ansicht
kw_text, kw_attachments = render_review_room_keywords_edit(
self.archivar._room_map, target_room_id,
self._get_build_custom_buttons()
self._get_build_custom_buttons(),
edit_kind=edit_kind,
)
await self._post_message_with_retry(
operator_room_id, kw_text, attachments=kw_attachments