Preserve the original RTL implementation and keep affected panes on the DOM renderer to avoid an oversized WebGL glyph allocation. Unchanged ASCII panes retain their renderer.
xterm.js has no bidi support and draws every cell on its own, so Arabic,
Persian and Hebrew words came out reversed and Arabic letters unjoined
(#4261).
Register a character joiner that marks the parts of each line the Unicode
Bidirectional Algorithm (bidi-js) puts at a right-to-left or number level
in a left-to-right paragraph. Both the WebGL and DOM renderers draw a
joined range as one string through the browser's text engine, which
orders it, shapes the letters and mirrors brackets. The buffer is
unchanged, so selection, copy, search and cursor positions still use the
logical text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Related #4279
When a TUI such as Claude Code enables the Kitty keyboard protocol, Shift+Insert was encoded as an Insert key (CSI 2;2~) instead of pasting. Netcatty always constructs xterm with Kitty support, so this happened even with the user Kitty setting off.
This claims bare Shift+Insert as clipboard paste (the same onPaste path as the paste keybinding) after user/snippet shortcuts and before Kitty/Win32 encoding.
This does not change right-click / context-menu behavior while mouse tracking is active.
Related #4168
On ~1–1.2× displays the 1px rounded accent border around a magnified
pane drops out at the corners, and a box that is not aligned to the
device-pixel grid turns the stroke into a faint, doubled hairline.
Snap the magnified terminal overlay (after the 12px inset) to integer
device pixels, and use a 2px accent stroke when devicePixelRatio is
below 1.5 on both the terminal and side-panel chrome. Higher-DPR
displays keep the existing 1px stroke.
* fix(ai): treat models-list 404 as a warning and send Anthropic Bearer on custom bases
Custom OpenAI-compatible gateways that omit a /models listing were
shown as a hard detect failure on HTTP 404. Treat 404 as a warning.
Official Anthropic stays on x-api-key only; custom Anthropic-compat
bases also send Authorization: Bearer so Agent Plan and similar
proxies authenticate.
* fix(ai): use the versioned Ark Agent Plan messages endpoint
MDXEditor portals the link preview toolbar to document.body by default.
Notes stays retained-mounted and is only CSS-hidden, so the toolbar was
left floating over other vault pages and terminal sessions.
Fixes#4257
* feat(ai): make unrecognized shell prompts an actionable unknown state instead of a terminal block
Composes #3935 (advisory semantics), #4110 (OSC 133 marker authority + pending-input guards) and #4195 (asymmetric harm / state-model proposal). An unrecognized prompt on a live shell now yields a non-terminal SHELL_READINESS_UNKNOWN result with a read-only/confirm viable path; PROVEN-busy states keep the exact hard SHELL_NOT_READY block. Never blind-types into unknown; never claims ready without evidence.
* fix(ai): propagate unknown readiness code through the active Catty SDK path
---------
Co-authored-by: 陈大猫 <16399091+binaricat@users.noreply.github.com>
* fix(i18n): complete zh-TW strings and unify Taiwan terminology
- Translate the 19 settings.plugins.sources.* keys that were still in
Simplified Chinese, and add the 9 missing ai.providers.headers.* keys.
- Add the two zh-CN keys the dialog already looked up (createWorkspace.title,
field.selectHosts) so those labels no longer fall back to English.
- Keep {{name}} / {{name:default}} literal in snippets.field.variablesHelp;
the previous text translated the metavariable names.
- Unify zh-TW terms in the shipped UI: 外掛, 市集, 行程, 指令碼, 金鑰,
佔位符, 檔案系統, 網路, 資料, 使用者, 預設.
- Tighten localeParityLocales: zh-CN and zh-TW are at full parity, so move
them out of LOCALES_PENDING_PARITY and check interpolation placeholders for
every translated locale, not just es.
* fix(i18n): finish zh-TW plugin wording and :default placeholders
Review follow-up on the terminology pass:
- Replace the remaining mainland terms on the plugin settings screen:
導入→匯入, 卸載→解除安裝, 存儲→儲存, 遠程→遠端, 加載→載入. 網路設備 is
correct Taiwan usage and stays.
- Widen the interpolation token regex so {{name:default}} is compared too;
the previous \w+ form silently ignored the colon and could not catch a
translated metavariable. Add a direct assertion for that form.
* test(ci): pin Vite contract probe to numeric loopback
---------
Co-authored-by: 陈大猫 <16399091+binaricat@users.noreply.github.com>
* fix(logs): finalize session logs when the app quits without closing tabs
Fixes#4235
* fix(logs): finalize logs when unconnected sessions close
Capture never-connected terminal logs at explicit session removal, including empty buffers, without finalizing logs during runtime remounts. Cover tab close, failed-dialog close, batch close, and workspace close with persistence regressions.
Fixes#4235
* fix(logs): tolerate unavailable finalization IPC
Preserve window close and layout saves when session-log finalization IPC cannot be set up, and clear its timeout on setup failures.
Follow-up for #4235 / PR #4236.
* fix(settings): index later-added settings in search catalog
Fixes#4230
Follow-up after #4231. Settings search still missed later-added
rows such as Appearance "Code font" (代码字体) and System session
log "Add timestamps" (时间戳), which already rendered in their
tabs. Index those destinations and other visible setting rows
that had the same catalog/anchor omission.
* fix(settings): fall back to visible parent when search target is gated
The #4122 budget of 12 only released hidden panes, so 17+ visible
splits still crossed Chromium’s 16-context limit and the 50ms
rebuild avalanched into white panes until the DOM breaker tripped.
Refuse new visible contexts when visible holders fill the cap while
preserving recently hidden holders during the tab-flip grace period.
Cover acquisition limits, missed visibility syncs, and recovery at cap.
Co-authored-by: Codex <codex@openai.com>
Clear QueryExtension present for DRI3 and MIT-SHM on built-in X11 forwards so clients avoid SCM_RIGHTS replies that the SSH byte stream cannot transport. Preserve framing, byte order, sequence isolation and cookie rewriting.
Strip AppImage ARGV0 from local shell PTY environments so zsh preserves ssh argv[0] and Xorg recognizes system SSH forwarding. Add protocol and environment regression tests. Fixes#4200.
Co-authored-by: Codex <codex@openai.com>
* fix(sftp): use remote cp for fresh same-host copies (Fixes#4207)
Ordinary SFTP tasks were marked resumable, which skipped the existing file and directory cp optimizations. Select the non-resumable route only when creating fresh matching-host copies with eligible encodings, keeping transfer-center rows and recursive children consistent. Existing checkpointed transfers retain their saved resumable path; failed cp attempts retain the download/upload fallback.
* fix(sftp): skip same-host directory cp when auto encoding resolves to non-UTF-8
* fix(sftp): preserve dest mode when same-host cp replaces a file
* fix(sftp): skip same-host cp for symlinks and directory merges
* test(sftp): mock missing dest in same-host cp cache fixture
* fix(sftp): expose lstat on session-backed copy clients
Fixes#4228
PowerShell remoting (Enter-PSSession / WinRM) prefixes the default
prompt with [ComputerName]: , which POWERSHELL_PROMPT_PATTERN missed,
so the readiness gate returned SHELL_NOT_READY and never sent the
command. Accept one or more [token]: prefixes before the existing
PS ...> shape, including [DBG]:.
Fixes#4230
Settings search uses a static catalog. The SFTP "Enable folder
compression" row was already in the tab but missing from the catalog
and had no anchor, so queries such as 压缩 showed no matches. Index
that destination, plus the skip-unchanged and SSH keep-alive rows in
the same tab that had the same omission.
Fixes#4222
describeHostKey previously hashed the entire certificate blob, so load-balanced or re-issued certs for the same host key looked like a fingerprint change. Pin the underlying public key instead.
Share extraction across verifier, renderer migration, and system known_hosts. Migrate legacy full-cert fingerprints only when the stored certificate body is available, preserving certificate metadata and raw rekey checks.
Co-authored-by: Codex <codex@openai.com>
Chromium only enables gnome-libsecret or kwallet when it recognizes a
GNOME/KDE desktop name, so niri/sway/Hyprland fall through to BASIC_TEXT
even when org.freedesktop.secrets is available. Set --password-store
before app ready when Secret Service is present, without overriding an
explicit switch or KDE's kwallet default.
* fix(nix): work around bwrap ssh config owner check for home-manager
Unprivileged wrapType2/bwrap maps only the caller uid, so a home-manager
~/.ssh/config symlink into the nix store appears as overflowuid 65534.
OpenSSH then rejects the default user config and the Mosh handshake
never sees MOSH CONNECT. Inject an ssh wrapper via extraPkgs that
snapshots a badly owned config and execs nixpkgs OpenSSH with -F.
* fix(nix): always refresh ssh config snapshot for home-manager
Nix store files have normalized old mtimes, so a -nt check never
notices a newer home-manager generation after the first snapshot.
* fix(nix): publish ssh config snapshot atomically
cp truncates the destination before copying, so a concurrent ssh -F
reader can see an empty or partial config and ignore HostName,
identity, or proxy settings. Copy to a unique staging file and
rename it over the snapshot.
* fix(host-details): show inherited group proxy and jump hosts
Host editor summaries for HTTP/SOCKS5/command proxy and ProxyJump
chains now display the same values applyGroupDefaults uses at
connect time, without writing inherited settings onto the host
until the user edits them.
Fixes#4187
* fix(host-details): keep custom proxy and empty jump-host overrides
Selecting Custom while a group saved proxy is inherited now keeps a host-owned draft instead of snapping back to that profile. Removing the last hop of a multi-hop inherited chain keeps an empty override so applyGroupDefaults cannot restore the group hops.
* fix(host-details): keep empty override when clearing inherited chain
Clear Chain on an inherited-only jump-host list now stores { hostIds: [] }
instead of deleting the field so group hops cannot snap back.
* fix(system-manager): show all CPU cores in the overview list
The overview CPU card hardcoded cpuPerCore.slice(0, 12), so a 16-thread
host showed "16 核" at the top but only C1–C12 below. Render every
reported core and allow the list to scroll when it overflows.
Fixes#4183
* ci: retrigger lint-and-test after plugin-contract runner shutdown
* feat(autocomplete): add zh-CN descriptions for zip, unzip, make, nano
Cover 32 missing Fig descriptions, generate zh-TW, add batch coverage tests, and record source and semantic checks.
* fix(autocomplete): correct zip, unzip, and make semantics
Limit zip -9 to the compression level, warn that unzip -0 is a suspect upstream option, and describe make -N as the Apple/NeXT compatibility extension.
* fix(autocomplete): simplify unzip -0 warning and correct NeXT note
Keep the -O gbk version caveat in the research record and describe Next/NeXT as a capitalization difference.
* feat(autocomplete): complete remaining common command descriptions
Add 177 zh-CN descriptions for python, python3, node, vim, sort, awk, and sed; generate zh-TW, cover the batch with real Fig specs, and record one deferred shared node key.
* fix(autocomplete): correct sed n and sort parallel semantics
Add the automatic-print condition to sed n, remove the universal CPU default from sort --parallel, and remove duplicated adopted-entry sections from the source record.
* fix: repair macOS terminal setup and align autocomplete details
- Read OSC 7 setup payloads through base64 stdin so BSD/macOS works
- Keep the FIDO askpass socket path within the Unix sun_path limit
- Align autocomplete descriptions in a shared fixed column
- Fix an invalid optional-parameter declaration and lint warnings
- Harden macOS-sensitive OSC 7, SFTP, temp-dir and privacy tests
* feat(autocomplete): add zh-CN descriptions for file and text utilities
Cover ln, stat, wc, cut, uniq, tee and xargs with 70 localized
descriptions. Add coverage and localization tests, preload the new common
specs, and record the upstream wc/xargs wording corrections.
* fix(autocomplete): keep popup scrollbars draggable
Panel mousedown handlers no longer preventDefault across the whole box, so the right-side detail scrollbar and the suggestion list scrollbar can be dragged while padding clicks still preserve terminal focus.
* fix(autocomplete): keep detail panel open while selecting text
Delay row hover clearing so the pointer can move into the right-side detail panel, and allow native text selection there without stealing terminal focus on ordinary padding clicks.
Rearrange workspace panes and retain empty/single-member workspaces.
Includes #4155 with its workspace lifecycle, chat continuity, empty-state, action-wiring and rendering-performance fixes. Final Codex review is clean; all CI checks and real Electron smoke passed.