Skip to content

[auto] TypeError: undefined is not a function @ Object.complete — crash pós ORCHESTRATOR_MAX_LOOPS #7

@thbragamx

Description

@thbragamx

🔴 Bug Crítico — Auto-detected QA (08/05/2026)

Frequência: 16 ocorrências | Severidade: ALTA

Stack Trace

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>

Padrão

Ocorre imediatamente após ORCHESTRATOR_MAX_LOOPS atingido (20). O callback complete() ainda tenta executar em sessão já destruída pelo encerramento forçado — race condition clássico.

Agentes afetados: dev, qa, zara, data (Gemini Live sessions)

Fix Sugerido

async complete(result) {
  if (!this.session || this.session.destroyed) {
    console.warn("[executor] complete() em sessão encerrada — ignorando");
    return;
  }
  // lógica atual
}

Arquivos

  • synapses/core/orchestrator.js — lógica do MAX_LOOPS
  • módulo GeminiLiveSession (action-runtime.js)

Tag: auto-fix priority-high crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions