Complete source index reuse across extractors

This commit is contained in:
2026-11-26 01:41:33 +00:00
parent 553276c0a0
commit a27c2cd89c
17 changed files with 83 additions and 15 deletions

View File

@@ -129,7 +129,7 @@ func (e *Extractor) PrepareExtraction(ctx context.Context, req contracts.Extract
default:
return nil, extractorErrorf("unsupported scene eligibility match state %q", match.State)
}
order := shared.NewSourceRefOrder(req.Source)
order := shared.NewSourceRefOrderForSource(req.Source, req.SourceIndex)
npcRegistry, err := e.npcResolver.Resolve(req.References)
if err != nil {
return nil, extractorErrorf("resolve NPC registry: %w", err)