Skip to content

chore(shell): remove interactive command check and warning#24

Merged
mudler merged 1 commit intomudler:masterfrom
localai-bot:remove-interactive-check
Mar 4, 2026
Merged

chore(shell): remove interactive command check and warning#24
mudler merged 1 commit intomudler:masterfrom
localai-bot:remove-interactive-check

Conversation

@localai-bot
Copy link
Contributor

This PR removes the interactive command check and warning from the shell MCP implementation as requested in the task.

Changes

  • Removed the function that detected potentially interactive commands
  • Removed the list that identified interactive flags/commands
  • Removed the warning message that was added to stderr when interactive commands were detected
  • Preserved the critical process group management for proper child process cleanup
  • Preserved the timeout handling with process group kill on timeout
  • Preserved the environment variables for non-interactive mode (CI=true, TERM=dumb, etc.)

Rationale

The process group management and timeout handling are critical for preventing commands from stalling indefinitely. These features remain intact while simplifying the shell behavior by removing the interactive command detection logic.

Testing

  • Build passes successfully
  • Shell MCP continues to function for non-interactive use cases

This removes the isInteractiveCommand function and related warning messages
while preserving the important process group management and timeout handling
that prevents commands from stalling indefinitely.

The process group kill on timeout and environment variables for non-interactive
mode are retained as they are critical for proper cleanup.
@mudler mudler merged commit 68c0a9e into mudler:master Mar 4, 2026
1 of 16 checks passed
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