Conversations/Agents: multi-hop handoffs drop intermediate hop briefs and split multi-hop chain state across details

Abierto
#6,720 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
53/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
angular, typescript

Línea de trabajo

Read FollowHandoffs and buildHandoffTargetParams in packages/AI/Agents/src/AgentRunner.ts, then trace BuildHandoffsByDetailId in packages/Angular/Generic/conversations/src/lib/utils/agent-handoff-map.ts. Follow a two-hop A → B → C handoff and check how briefs and chain details are passed and rendered. Done when the end-to-end context is preserved and the UI presents the multi-hop transfer coherently.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

From the post-release WS3 independent review of Consult & Handoff (PR #5055, tracked in PR #6482 / plans/video-studio-ws3-consult-handoff-review.md).

Location
Defect

On multi-hop handoffs (A -> B -> C):

  1. FollowHandoffs calls buildHandoffTargetParams with the unchanging baseHistory snapshot from before Hop 1, prepending only the current hop's briefMsg ([{ role: 'system', content: briefMsg }, ...baseHistory]). Thus Agent C receives B -> C's brief while Agent A -> B's intermediate brief and any intermediate hop context are dropped.
  2. In BuildHandoffsByDetailId (agent-handoff-map.ts:330-337), hopChain is populated only when output.Chain.length >= 2, meaning Hop 1's source detail (Chain = [A]) renders only A -> B (HopChain: null) while Hop 2's intermediate detail (Chain = [A, B]) renders A -> B -> C as a separate handoff card.
Suggested Fix

Accumulate prior hop briefs cleanly across FollowHandoffs hops (into buildHandoffTargetParams / briefMsg), and consolidate or link multi-hop chain visibility consistently in BuildHandoffsByDetailId so multi-hop transfers present coherent end-to-end context and cards.

Lenguaje dominante
TSQL
Estrellas
32
Forks
7
Merge medio
1 d 16 h
PR fusionados (30 d)
504

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MemberJunction/MJ

Todos los issues de MemberJunction/MJ

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.