Repository navigation
Conversation
cowboyd
force-pushed
the
tree-dispatch
branch
2 times, most recently
from
August 7, 2026 06:21
d70a392 to
4687b18
Compare
commit: |
cowboyd
force-pushed
the
tree-dispatch
branch
2 times, most recently
from
August 11, 2026 04:27
2fb01c8 to
2e40c80
Compare
cowboyd
force-pushed
the
tree-dispatch
branch
from
September 18, 2026 21:15
22654b3 to
2729ed1
Compare
cowboyd
force-pushed
the
tree-dispatch
branch
from
September 24, 2026 14:00
2729ed1 to
b7c337f
Compare
Contributor
Author
|
closing out in favor of a DOM based substrate. See #37 |
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.
A terminal can produce an open-ended stream of input: keys today, but also resize, paste, mouse, and application-defined events. Bombshell needs a generic boundary for sending those external events into the middleware tree without hard-coding every event category into the UI loop. That boundary should also prevent an exception in installed dispatch middleware from tearing down the terminal session without giving the application a chance to respond.
This API intentionally represents events entering the tree, as distinct from semantic events that elements will later emit to their consumers. It also avoids a universal “handled” protocol, allowing specialized middleware to define its own delegation behavior while dispatch itself reports only success or failure.
This PR adds the middleware-extensible
DispatchApiand installs a Host-level error boundary withuseDispatch(). Dispatch returns a small success/failure result and preserves the original thrown reason for callers.