feat(send): fila de 1 mensagem despachada no próximo turno - #65
Merged
Conversation
Busy session.send persists pendingMessage/pendingAt (last-wins) and returns queued:true instead of SESSION_BUSY; the stream tail dispatches it via lock-guarded tryDispatch. stop/release clear the slot on every exit; open sessions never queue. Adds message.queued event, daemon-side validation (INVALID), web/CLI surfacing, migration for existing DBs.
…int, tail tests - tryDispatch returns with slot intact when no native id resolves - session.send returns SESSION_BUSY behind lifecycle locks instead of queueing; stop re-clears pending on success exit - canvas clears detailPending on terminal session events - tail-dispatch coverage: exactly-once turn start, quiet no-native leave, failure restore with honest event
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Busy session.send enfileira (last-wins, queued:true) em vez de SESSION_BUSY; tail do stream despacha via tryDispatch sob sessionLocks. stop/release limpam em todas as saídas; open nunca enfileira. Inclui evento message.queued, validação daemon-side (INVALID), UI/CLI, migração de DB e spec em .specs/features/send-queue/spec.md. Suite: 75 arquivos, 892 testes verdes.