Repository navigation
Conversation
Si el cliente pide humano otra vez, handoffHuman ya no abre un ticket nuevo ni vuelve a avisar al dueño. open_ticket_id se queda en el ticket que sigue abierto. Ticket #09A022. Co-authored-by: santmun <santmun@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Qué cambia
Ticket de soporte #09A022. La plantilla del bot del miembro (
horizontes-bot-templatev1.0.77, la que bajanpx forjabot update) no vive en este repo. Este código es el starter desantmun/forja. Confirmé cada síntoma contramain(07b8cee) y no inventé los módulos que el reporte cita y aquí no existen.1. iOS Safari amplía la página — no confirmado, sin cambio
El reporte apunta a
src/web/temas.ts(textarea a 14.5px). Esa ruta no está enmain, ni hay widget de chat web. Los textareas que sí existen son del panel/admin, otra superficie. No toqué estilos.2. Autofoco levanta el teclado — no confirmado, sin cambio
El reporte apunta a
src/web/script.ts(ta.focus()al abrir). Ese archivo no existe y el widget no tiene detección de móvil. No hay arreglo que aplicar sin inventar el chat web.3. Markdown como asteriscos — no confirmado, sin cambio
En este repo el
<style_guide>desrc/system-prompt.tsya pide texto plano, ystripMarkdown()ensrc/replies/chunker.tsquita**negritas**antes de enviar. No hayrenderMarkdown()ni widget que pinte contextContent. El síntoma del reporte (el prompt permite markdown y el widget lo pinta crudo) no está en este código.4. Blindaje en idioma base con modo espejo — no confirmado, sin cambio
No existen
src/blindaje/verify.ts,idiomaEfectivo(),SAFE_REPLY_BY_LANGnitest/idioma.test.ts. El idioma sale deBOT_LANGUAGE. No hay modoespejoque alterar, así que la regla de queidiomaEfectivo()siga devolviendo el idioma base no aplica aquí.5. Traspaso a humano duplica tickets — confirmado y arreglado
El reporte cita
createHandoffTicket()ycleanupStaleOpenTicketRefs(), que aquí no existen, pero el síntoma sí.handoffHumanllamabatickets.create()ynotifyOwner()en cada pedido, ysetOpenTicket()pisabaopen_ticket_id. Tres pedidos seguidos dejaban tres ticketsopeny tres avisos; el puntero quedaba en el último.Ahora, si la conversación ya tiene un ticket no resuelto (
openoin_progress), se reutiliza ese id, no se avisa otra vez yopen_ticket_idsigue apuntando a él. Un ticket yaresolvedsí abre uno nuevo. No cierra tickets huérfanos que ya existan: solo deja de crear más.Este arreglo está en el starter de este repo. No publica el artifact
horizontes-bot-templateni cambia la versión de npm. El bot del miembro no lo recibe connpx forjabot updatehasta que esa plantilla se publique aparte.Por qué
Un cliente que insiste en hablar con una persona (visto en WhatsApp: 3 tickets
productabiertos en ~2 minutos) no debe abrir un ticket ni un aviso por mensaje. Ticket #09A022.Cómo lo probaste
pnpm testpasa — 79 archivos, 565 pruebaspnpm typechecklimpio (tsc --noEmit)El test
reuses the open ticket and notifies the owner only once when the customer repeats the requestfalla si se quita el early-return: el segundoexecutedevuelve otro id. También cubre ticketin_progress(se reutiliza) y ticketresolved(sí abre uno nuevo).Checklist
member/(config de cada quien)