mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
1885db3d8b
Replace the full inbox state machine (admit/start/setTarget/setPrompt/ setResponse/complete/retry/prune/replayPending) with three methods: dedup (bounded in-memory Set), getOffset, and setOffset. Discord is already the durable inbox — on startup we just resume from persisted offsets per source. Within a session, in-memory dedup prevents double-processing. This removes ~565 lines of inbox lifecycle code, the conversation_inbox SQLite table, MessageState, ReliabilityError, and the prune schedule.