Dashboard › opencode-lore › embedInTokenBatches progress invariant
01a0ad05-9b26-7ad1-81ff-607df672d21fEvery embedding path must use embedInTokenBatches, preserve input order, and call storeTemporalChunks once. The MAX_BATCH_TOKEN_AREA=4096 limit must always admit the first item even when it alone exceeds the area; rejecting it looks stricter but wedges the batching loop with no progress. Temporal input remains capped at 64 chunks by retaining 63 and joining the remainder into one tail.