Repository navigation
fix(tools): the «un momento» line goes to the chat that asked, and a terminal session sends nothing to a chat - #178
Merged
Merged
Conversation
…hat asked, and a terminal session sends nothing to a chat A past-exam search always sent its «🔎 Un momento, busco exámenes…» line through the Telegram bot, also with [channels] telegram = false: the captain got it in a Telegram chat he no longer uses, since the bot's token is still in secrets.env. It now goes to the WhatsApp chat or group the question came from. A tool called from a terminal session (hermes chat, vinci-check eval) could also write to the captain's real WhatsApp chat: show_page sent him a dashboard button during an eval run. Such a session is nobody's chat, so a tool that would send there now refuses and says to answer with text.
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.
What
Two ways a tool could write where nobody expected it.
The «un momento» line went to Telegram. A past-exam search sends «🔎 Un momento, busco exámenes anteriores en DSpace…» while it works. It always went through the Telegram bot, also with
[channels] telegram = false, because the bot's token is still insecrets.env. The captain got it on 14 Nov in a Telegram chat he stopped using in October. It now goes to the WhatsApp chat the question came from, or to the group when asked there.A terminal session could write to the captain's real chat. With Telegram off, every tool that sends something (a page button, a poll, a quiz) took the captain's private WhatsApp chat as its target whatever the conversation was. A
hermes chatsession, which is whatvinci-check evalopens, sent him a «📋 Ver mis entregas» button during the first eval run. Such a session is nobody's chat (canaliscli): a tool that would send there now refuses with «Esta conversación es de la terminal, no de un chat… Contesta con texto», and the «un momento» line is skipped.E2E:
test_whatsapp_captainasks «búscame exámenes anteriores de POO»; the line arrives in his WhatsApp chat once (the model searches by two names), then the list, and the Telegram tripwire stays empty.Docs:
uso.md«Exámenes anteriores (DSpace)» and the feature map's DSpace row.