Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live terminal output #1347

Merged
merged 8 commits into from
Nov 8, 2024
Merged

Live terminal output #1347

merged 8 commits into from
Nov 8, 2024

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

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↗︎

src/scripts/api.ts Outdated Show resolved Hide resolved
Copy link
Member

@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
Member

@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

src/components/bottomPanel/tabs/IntegratedTerminal.vue Outdated Show resolved Hide resolved
@huchenlei
Copy link
Member

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