fix: prevent Mosh character ghosting caused by overlapping diffs

- client.go: track last output oldNum, replace instead of append when same base
- transport.go: reject diffs that do not chain from latest acknowledged state
  (oldNum != ackNum), preventing stale ANSI sequences from corrupting output
This commit is contained in:
zhanglq
2026-07-02 21:01:24 +08:00
parent 8dca5c67ec
commit e17b92cd9d
3 changed files with 33 additions and 29 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/unixshells/mosh-go
module github.com/ys-ll/mosh-go
go 1.26.0