-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deep Cody: Implement persistent shell session for shell context
This change introduces a `PersistentShell` class that maintains a long-running shell session to execute context commands. The key improvements are: - Use `spawn` instead of `exec` to create a persistent shell session that maintains state between commands. - Implement a timeout mechanism to handle cases where the shell gets stuck. - Sanitize the command input to prevent potential security issues. - Fall back to a default shell based on the operating system (PowerShell on Windows, Bash on other platforms).
- Loading branch information
Showing
1 changed file
with
83 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters