Skip to content

stream proxy output while command is running#268

Open
dragonGR wants to merge 1 commit intortk-ai:masterfrom
dragonGR:pr-proxy-stream
Open

stream proxy output while command is running#268
dragonGR wants to merge 1 commit intortk-ai:masterfrom
dragonGR:pr-proxy-stream

Conversation

@dragonGR
Copy link

The rtk proxy was buffering command output until the child process finished which made long-running commands look stuck in TTY mode.

So this commit switches proxy execution from buffered Command::output() to a streamed spawn() flow with piped stdout/stderr so output is forwarded incrementally while the command is still running.

What was improved:
stream stdout and stderr in real time (chunked reads)
flush each chunk immediately for better interactive UX
keep captured output for tracking/analytics
preserve child exit status behavior (still returns the same failure code when command fails)

Ref:
#222

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.

1 participant