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

Aperta
#6,720 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
angular, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TSQL
Stelle
32
Fork
7
Merge medio
1g 16h
PR unite (30g)
504

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MemberJunction/MJ

Tutte le issue di MemberJunction/MJ

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.