Skip to content

Fix double input in terminal by disposing previous onData listeners#3

Open
shreehari-lyzr wants to merge 1 commit intoopen-gitagent:mainfrom
shreehari-lyzr:bugfix/user-input
Open

Fix double input in terminal by disposing previous onData listeners#3
shreehari-lyzr wants to merge 1 commit intoopen-gitagent:mainfrom
shreehari-lyzr:bugfix/user-input

Conversation

@shreehari-lyzr
Copy link

When startGitclaw/startShell/startAgent restarted (e.g. after process
exit), a new xterm onData handler was registered without removing the
previous one. Each restart stacked another listener, causing every
keystroke to be written to stdin multiple times ("hi" → "hhii").

Track the onData disposable in ContainerManager and dispose it before
each new registration.

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.

1 participant