Repository navigation
Add terminal resize stream - #9639
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 378951a The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
jpowersdev
force-pushed
the
terminal-resize
branch
from
October 20, 2026 23:28
6379dd2 to
4a7125a
Compare
tim-smart
enabled auto-merge (squash)
October 20, 2026 23:56
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
Merged
effect-bot
added a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to devangpratap/effect
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to lloydrichards/open_effect
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to lloydrichards/open_effect
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to lloydrichards/open_effect
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
to lloydrichards/open_effect
that referenced
this pull request
Oct 21, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
tim-smart
pushed a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 22, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 23, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 23, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 23, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
effect-bot
added a commit
that referenced
this pull request
Oct 23, 2026
Co-authored-by: Effect Bot <tech-ops@effectful.co>
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.
Expose terminal size changes through
Terminal.sizeso CLI renderers can respond to window changes.Terminal.sizeisEffect<Queue.Dequeue<Size, Cause.Done>, never, Scope>, matchingreadInput. The resize listener is attached by the time the effect returns, so no resize is missed between subscribing and consuming. On Node, Bun, and Deno the queue starts with the current dimensions and uses a sliding capacity of 1, so a slow consumer only sees the latest size. Closing the scope removes the listener and ends the queue. UseStream.unwrap(Effect.map(terminal.size, Stream.fromQueue))to consume it as a stream.Each subscription adds its own
resizelistener toprocess.stdout, so holding more than ten subscriptions at once triggers Node'sMaxListenersExceededWarning; subscribe once and fan out, or raise the limit withsetMaxListeners.Terminal.makenow requiressize, so custom terminals built with it must supply one.Closes #6352
Closes EFF-2620