Dashboardopencode-loredeferredEvents lose output_index

deferredEvents lose output_index

Category: gotcha
Confidence: 1.00
ID: 01a0982d-a682-7ceb-88ef-6b150833b3fa
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 14w8OO7Ij3WmX6AXr
Created: 2026-09-13 00:23:12
Updated: 2026-09-13 00:32:03

Content

Trap: tracking only unresolved candidate indices looks sufficient because deferred events flush together, but visible deferred items can reach the client without entering forwardedVisibleOutputIndices. A later hidden recall may compact an already-emitted source index and still execute recall. Fix: retain source-index metadata for every deferred indexed event and record each emitted visible index during flush; test unresolved ordinary tool → deferred sparse message → late recall, requiring one sanitized response.failed, output: [], and zero recall side effects.

Move to: