Skip to content

[auto] TypeError: undefined is not a function — Object.complete em chain termination #5

Description

@thbragamx

🔴 Erro Crítico — QA Auto-Healing (2026-05-08)

Padrão: TypeError: undefined is not a function em Object.complete (evalmachine .jsc)

Frequência: 16 ocorrências — picos a cada chain que atinge MAX_LOOPS ou sessão GeminiLive que finaliza.

Stack:

TypeError: undefined is not a function
    at Object.complete (evalmachine.<anonymous>:1:1994)
    at Object.execute (evalmachine.<anonymous>:1:10293)
    at async Object.executeTool (evalmachine.<anonymous>:1:5386)
    at async _executeToolWithDelegate (evalmachine.<anonymous>:1:44107)
    at async GeminiLiveSession.<anonymous> (evalmachine.<anonymous>:1:33476)

Agentes afetados: dev, qa, zara, data

Hipótese: Callback complete() chamado após objeto destruído — use-after-free em .jsc. O execute() não cancela callbacks pendentes quando MAX_LOOPS é atingido.

Fix: if (typeof this.complete === function) this.complete(result) — null-check antes de invocar o callback de finalização.

Impacto: Chains não finalizam corretamente; summaries de voz perdidos; tool results descartados silenciosamente.

Versão: logicaos v1.9.66

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions