Skip to content

feat(tools): add support for streaming command output in bash_tool.go #175

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

Closed

Conversation

Vinay-Khanagavi
Copy link
Contributor

@Vinay-Khanagavi Vinay-Khanagavi commented May 8, 2025

Adds support for streaming command output in bash_tool.go for commands like kubectl logs -f and tail -f.

  • Detects streaming commands by checking for -f or --follow flags.
  • Streams stdout/stderr in real time to the user.
    Prints a message:
Streaming output... Press CTRL-C to stop streaming and return to the prompt.

  • Handles CTRL-C gracefully, returning to the REPL without exiting the tool.
  • Non-streaming commands retain their previous behavior.

This improves the UX for monitoring long-running or initializing workloads.

Closes #122

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.

FR: please support streaming of logs
1 participant