feat: shell_attach and shell_detach for recording existing terminals#54
Draft
feat: shell_attach and shell_detach for recording existing terminals#54
Conversation
- Add docs/shell-attach.md explaining how to attach to existing terminals - Add scripts/mcp-init.sh for initializing MCP sessions - Add scripts/mcp-tool-call.sh for calling MCP tools from CLI - Add removal command hint to README
- shell_attach: attach to current terminal via tmux for screenshots/recordings - shell_detach: clean up attached sessions - shell_stop now rejects attached sessions (use shell_detach instead) - shell_send now rejects attached sessions (read-only capture) - Add tmux helper functions for pane detection and capture - Add inspect script to package.json
Vulnerable Libraries (3)
More info on how to fix Vulnerable Libraries in JavaScript. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
Contributor
Recording Evaluation |
Changed shell_attach to require the tty parameter instead of auto-detecting the parent TTY. More reliable since the MCP server may run in a different process context.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shell_attachtool to connect Shellwright to an existing terminal session (requires tmux)shell_detachtool to disconnect from attached sessionsCurrent State (WIP)
ttyparameter (more reliable than auto-detection)docs/shell-attach.mdUsage