mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 15:19:16 +00:00
- hostById is a Map, not a function: my previous commit called it as hostById(id), throwing TypeError on every Copy Tab / Split. Use hostById.get(id), and fall back to terminalHosts for ephemeral hosts absent from the saved-host map (P1) - classify the DETECTED host.distro (not getEffectiveHostDistro, which returns a cosmetic manual override) when deciding the network-device probe gate, so a pinned Linux icon can't re-enable the exec channel on a Huawei/Cisco host (P1) - clear pendingInitialCwd via app state when the inherited cd is consumed (report the new cwd through onTerminalCwdChange), so shells that never emit OSC 7 don't keep the transient seed and re-inject a stale dir on remount (P2) Adds regression tests: Map-based hostById, network-device gate (deviceType, detected distro, ephemeral terminalHosts).