aboutsummaryrefslogtreecommitdiff
path: root/src/client
AgeCommit message (Collapse)Author
2026-07-31fix(client): restore terminal on sighup and sigtermMatt Coles
Enable termination-signal handling so SIGHUP and SIGTERM follow the graceful quit path and restore terminal state. Log handler registration failures and add PTY coverage for direct SIGHUP and server EOF restoration Co-authored-by: Matt Coles <macols@amazon.com>
2026-07-26fix: repaint after transient terminal resizesOgulcan Celik
2026-07-25feat: switch IME to ASCII in prefix mode on Windows (Korean IME) (#1823)joonhwan
* feat: switch IME to ASCII in prefix mode on Windows Extend switch_ascii_input_source_in_prefix to Windows: detect IME state via WM_IME_CONTROL and toggle to ASCII with SendInput for the Korean IME. Other IME languages are detected and left unchanged. refs #1802 * docs: clarify Windows (Korean IME) support for prefix ASCII switching Follow-up to the Windows prefix ASCII switch, which extended switch_ascii_input_source_in_prefix to Windows but left the surrounding text describing macOS only. - Settings row label: "(macOS)" -> "(macOS/Windows)", plus its test. - Generalize the Windows behavior wording to "switches the IME to English (ASCII) input" in the config-reference.json entry and the model.rs doc comment, and state that Windows support is currently limited to the Korean IME. - Add a :::caution aside noting the Korean-IME-only limitation to the en/ja/zh preview docs, keeping the three translations in sync. refs #1802 * fix: warn when prefix IME toggle injection is incomplete SendInput can queue fewer events than requested (for example when blocked by UIPI), which would otherwise leave the IME silently stuck in ASCII or native mode. Log a warning with the sent and expected counts so the failure is diagnosable. refs #1802 * fix: guard prefix IME restore and correct open-status naming Address maintainer review on the Windows prefix ASCII switch: - Restore only when safe: store the foreground window at switch time and, before toggling back, require that the same window is still focused and the IME is still in English. This stops restore from toggling another application or overriding a manual return to Hangul during prefix mode. - Report injection success from send_vk_tap and only arm restoration when the initial toggle landed; on a partial injection retry the dropped key-up so a key is not left logically held down. The injection policy is split into send_vk_tap_with(inject) so the success, partial, and failure branches are unit-tested without the real SendInput. - Correct the WM_IME_CONTROL sub-command naming: 0x0005 is IMC_GETOPENSTATUS (IME open state), not IMC_GETCONVERSIONMODE. Behavior is unchanged; the constant, comments, and tests now describe the open-status read. refs #1802 * fix: bound IME open-status read with a timeout The prefix IME switch reads IMC_GETOPENSTATUS via WM_IME_CONTROL, which crosses into the terminal-emulator process. A plain SendMessageW would block herdr's client thread until that process responds, indefinitely if it hangs. Read through SendMessageTimeoutW with SMTO_ABORTIFHUNG and a short timeout instead; on timeout the switch is skipped and restore does nothing, so a hung host process can no longer freeze prefix-mode entry or exit. refs #1802 * fix: preserve windows ime restoration after partial injection refs #1802 --------- Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-07-24fix: preserve kitty graphics during host repaintsOgulcan Celik
refs #1628
2026-07-24fix: inherit host palette in pane queries (#1759)akbash
refs #1752 Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-07-23fix: preserve kitty printable key releasesOgulcan Celik
refs #1746
2026-07-23fix: preserve physical escape on windowsOgulcan Celik
refs #1736
2026-07-18perf: batch contiguous terminal diff writesOgulcan Celik
refs #283
2026-07-18fix: preserve lone escape input boundariesOgulcan Celik
refs #541
2026-07-14fix: reassemble split sgr mouse inputOgulcan Celik
refs #1382
2026-07-09fix: use drawn cursor by default in wslOgulcan Celik
refs #930
2026-07-06fix: bridge remote image file drops (#1085)akbash
refs #828 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
2026-07-05fix: switch prefix ASCII input source on the foreground client (#1016)ppggff
* fix: switch prefix ASCII input source on the foreground client The macOS prefix ASCII-switch ran in the headless server, whose TISCopyCurrentKeyboardInputSource read is a stale per-process cache (refreshed only via a main-run-loop notification the server never pumps), so prefix could leave the terminal on the wrong input source. Forward it to the foreground client, like clipboard: sync_prefix_input_source emits AppEvent::PrefixInputSource as an intent; the server forwards it to the foreground client and the monolithic app applies it in-process via RealPrefixInputSource, which pumps its main run loop before the stale TIS read. Key it on Mode::wants_ascii_input so multi-level prefix commands keep ASCII until returning to the terminal, and restore the IME for rename text entry. Adds ServerMessage::PrefixInputSource to the already-unreleased protocol 15. refs #774 * fix: keep prefix input-source switch out of the headless server process An App-internal drain (the exhaustive drain at the top of handle_api_request, reachable from prefix-key runtime mutations) can consume a queued PrefixInputSource intent before the server's forwarding drain sees it, applying the TIS switch in the headless server process and stranding the restore state. Gate the in-process switch on App.local_input_source_switch, disabled by the headless server alongside the other local side effects, so a swallowed intent degrades to a skipped switch. Widen the forwarding-bypass maintenance test to the handle_internal_event_with_prefix_sync wrapper. refs #774 * docs: clarify prefix input-source comments and flag docs refs #774 * fix: bump protocol for prefix input source refs #774 --------- Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-07-03fix: scope empty image paste bridge to remoteOgulcan Celik
refs #986
2026-07-03fix: stop sgr mouse sequences leaking into panesOgulcan Celik
refs #939
2026-07-02fix: draw host cursor on windowsOgulcan Celik
refs #930
2026-07-02fix: preserve windows backspace inputOgulcan Celik
refs #907 refs #920
2026-06-30fix: keep remote sessions alive across disconnectsOgulcan Celik
2026-06-30feat: add terminal session control streamOgulcan Celik
2026-06-30fix: preserve windows win32 bracketed pasteOgulcan Celik
refs #670
2026-06-30feat: add terminal session observe streamOgulcan Celik
2026-06-25fix: ignore modifier-only windows inputOgulcan Celik
refs #795
2026-06-25fix: preserve alacritty input on windowsOgulcan Celik
refs #792
2026-06-24fix: extend remote client handshake timeout for high-latency linksOgulcan Celik
refs #753
2026-06-19fix: preserve windows terminal multiline pasteOgulcan Celik
refs #670
2026-06-18feat: sync theme with host appearanceOgulcan Celik
refs #675
2026-06-18fix: scope image paste shortcut to remoteOgulcan Celik
refs #647
2026-06-16fix: satisfy windows clippyOgulcan Celik
2026-06-16fix: hold lone escape while awaiting host color replyOgulcan Celik
refs #549
2026-06-14feat: add plugin v1 systemOgulcan Celik
Add manifest-driven plugin actions, event hooks, pane entrypoints, link handlers, and host APIs. Support plugin link, GitHub install, build commands, installed plugin registry, pane movement, runtime context, and plugin docs.
2026-06-12fix: stabilize windows pane cursor renderingOgulcan Celik
refs #556
2026-06-08fix: improve windows pane behaviorOgulcan Celik
2026-06-07fix: support windows agent hooks and input pathsOgulcan Celik
2026-06-07fix: preserve unix socket error semanticsOgulcan Celik
2026-06-07feat: add native windows beta supportOgulcan Celik
2026-06-06feat: improve toast ergonomicsOgulcan Celik
refs #486
2026-05-30perf: reduce sidebar git polling overheadOgulcan Celik
refs #353
2026-05-29fix: keep split host color replies out of panesOgulcan Celik
refs #344 refs #279
2026-05-25feat: make focus-gain redraw configurableOgulcan Celik
refs #282
2026-05-24fix: support scrolling direct agent attachesOgulcan Celik
2026-05-22feat: show named session command hintsGolden-Pigeon
refs #199
2026-05-21refactor: separate server client boundariesOgulcan Celik
2026-05-21feat: use local keybindings for remote attachOgulcan Celik
2026-05-20fix: bridge remote clipboard image pasteOgulcan Celik
refs #205
2026-05-19fix: preserve modified enter inputOgulcan Celik
refs #168
2026-05-17feat: add direct terminal attach streamOgulcan Celik
2026-05-15fix: force redraw on terminal focus gainOgulcan Celik
2026-05-15fix: forward pane cursor shapeOgulcan Celik
fixes #116
2026-05-15config: split experimental settings from advancedOgulcan Celik
2026-05-15feat: add system toast deliveryOgulcan Celik