mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-04 11:05:53 +00:00
fix: Prevent double input processing in server sessions
The issue was that sendInput() was processing input twice: 1. Writing directly to PTY + asciinema for in-memory sessions 2. Then continuing to socket path which would write again Added early return after in-memory session processing to avoid the socket path when we already have a direct PTY reference. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8a3807d4ce
commit
76512c19c4
1 changed files with 1 additions and 0 deletions
|
|
@ -515,6 +515,7 @@ export class PtyManager {
|
|||
if (memorySession?.ptyProcess) {
|
||||
memorySession.ptyProcess.write(dataToSend);
|
||||
memorySession.asciinemaWriter?.writeInput(dataToSend);
|
||||
return; // Important: return here to avoid socket path
|
||||
} else {
|
||||
const sessionPaths = this.sessionManager.getSessionPaths(sessionId);
|
||||
if (!sessionPaths) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue