dsh-image-count-guard: Session Recovery for Gateway Image Count Exceedance
dsh-image-count-guard is a DSH workflow plugin maintained by MacilyDots. When the upstream gateway rejects requests based on the number of images per request (e.g., a maximum of 20), while dsh-llm-pi-ai only budgets by base64 size causing the session to stall, it matches English image-count errors in agent/request-error, offloads the oldest images via the official image/offload projection, and retries. It complements dsh-compaction-image-offload in division of labor. Installation requires executing install.ps1 in the source directory and restarting DSH; optional configurations include defaultImageLimit, safetyMargin, and maxOffloadPerRetry.
Read More