Skip to content

Conversation

@mindflow-cn
Copy link

Description

Summary

This change ensures that long-running shell commands (such as programs that produce infrequent or delayed standard output) do not cause the tool to hang indefinitely while waiting for output.

More Information

Replaced direct access to self._process.stdout._buffer.decode() with await self._process.stdout.readline() for safe incremental reading.

Accumulates stdout content line by line into a local output buffer.

Retains the original sentinel-based error_code detection mechanism (,,,,bash-command-exit-ERROR_CODE-banner,,,,).

Maintains compatibility with both Unix-like and Windows shells.

Preserves stderr reading and timeout handling.

Validation

Linked Issues

@CLAassistant
Copy link

CLAassistant commented Jul 25, 2025

CLA assistant check
All committers have signed the CLA.

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