Skip to content

Terminal automation events#27

Merged
holiber merged 4 commits intomainfrom
cursor/terminal-automation-events-6bc0
Feb 26, 2026
Merged

Terminal automation events#27
holiber merged 4 commits intomainfrom
cursor/terminal-automation-events-6bc0

Conversation

@holiber
Copy link
Copy Markdown
Owner

@holiber holiber commented Feb 26, 2026

Add structured ptyExit and commandEnd events for improved terminal automation.

This PR introduces new server-side WebSocket messages (ptyExit, commandEnd) and corresponding React JabTerm callbacks (onData, onExit, onCommandEnd) and imperative helpers (getLastExitCode, waitForCommandEnd, writeAndWait) to facilitate more robust terminal automation workflows. Shell integration is added to emit commandEnd events.


Open in Web Open in Cursor 

cursoragent and others added 2 commits February 26, 2026 13:44
Co-authored-by: Alexander Nazarov <holiber@users.noreply.github.com>
Co-authored-by: Alexander Nazarov <holiber@users.noreply.github.com>
@cursor
Copy link
Copy Markdown
Contributor

cursor Bot commented Feb 26, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 2 commits February 26, 2026 13:49
Co-authored-by: Alexander Nazarov <holiber@users.noreply.github.com>
Co-authored-by: Alexander Nazarov <holiber@users.noreply.github.com>
@holiber holiber marked this pull request as ready for review February 26, 2026 15:30
@holiber holiber merged commit 36aeaa8 into main Feb 26, 2026
1 check 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