Skip to content

Conversation

pythongosssss
Copy link
Member

image
Adds support for streaming logs via websockets.
Uses xterm.js (same terminal as vscode) for rendering.

A client subscribes to the logs when the terminal is open, and unsubs when it is closed to reduce traffic.
Requires backend PR comfyanonymous/ComfyUI#5396

@socket-security
Copy link

socket-security bot commented Oct 28, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@xterm/[email protected] None 0 13.5 kB tyriar
npm/@xterm/[email protected] None 0 2.4 MB tyriar

View full report↗︎

Copy link
Contributor

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@huchenlei huchenlei marked this pull request as ready for review October 29, 2024 21:09
Copy link
Contributor

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scrolling bug:

log_scroll.mp4

@huchenlei
Copy link
Contributor

Looks good! Going to merge this after comfyanonymous/ComfyUI#5396 lands in the backend.

@huchenlei huchenlei merged commit 7e0b87d into main Nov 8, 2024
9 checks passed
@huchenlei huchenlei deleted the live-terminal-output branch November 8, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants