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.
* fix(ui): accent border for terminal pane magnification
* chore: retrigger CI after Actions runner shutdown flake
lint-and-test was cancelled mid-run by runner shutdown (not a product failure) on 42326458479 and 42328660175.
* feat(sftp): add a one-click Duplicate action for files and folders
Duplicate copies the selected entries next to their originals in the same
folder, covering files, folders, and multi-selection. It reuses the existing
transfer queue and the transfer pipeline's "(copy)" naming helper, so progress,
cancel, and error reporting behave like Copy to other pane.
The target name is resolved before the transfer starts. Resolving through the
batch conflict defaults instead would re-enter processTransfer for a task that
is still marked in flight and stall the copy.
Adds the action to both the list and tree context menus, plus translations for
en, es, ru, zh-CN, and zh-TW.
Closes#4132
* fix(sftp): keep Duplicate safe around navigation rows and reserved names
Hide and ignore the tree's synthetic ".." row: duplicating it resolved the
source to an ancestor directory and could walk the copy into its own output.
The transfer hook also drops "." / ".." inputs for duplicate batches, and the
same-pane handler filters them defensively.
Pick duplicate names around destinations already reserved by a queued or paused
transfer. Those rows have no file on disk yet, so stat-only naming returned the
same "(copy)" path and the follow-up active-path check turned the second
one-click duplicate into a conflict dialog. The naming helper now accepts an
occupied-path predicate fed from the active transfer set.
* fix(sftp): block stale entry menus on parent navigation
---------
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com>
Use shell-advertised bracketed paste for compose command blocks even when clipboard bracketing is disabled. Keep the final Enter outside the paste and preserve snippet preferences and compose target routing.
Fixes#4062
Issue #4037 (phase 3 of #4098). An existing member pane can now be
dragged back onto its own workspace to rearrange it, landing with the
same snap-in split semantics an orphan drop gets.
- domain: add pure movePaneInWorkspace(root, sessionId, hint) composing
the existing prune + insert conventions (no-op for unknown/single-pane
self-drops; prune-first keeps target-inside-subtree drops correct).
- state: moveWorkspacePane / moveWorkspacePaneInWorkspaces touch only
workspaces[].root — session ids, tab order, focus fields and every AI
binding (anchorChatId etc.) are untouched by construction.
- drop flow: handleWorkspaceDrop routes same-workspace member drops to
the move op; cross-workspace drops stay rejected (#4098 policy) and
orphan drops are unchanged.
- preview: member panes drag via pointer events, so the split-hint
preview and drop are mirrored on the pointer stream while a member of
the active workspace is dragged; dropping a pane onto itself previews
and drops as a no-op.
Identity guarantee: a move never changes session ids, workspace id,
anchorChatId, focusedSessionId (focus is keyed by session id, so it
visually follows the moved pane), focusSessionOrder or tab order; the
moved tree roundtrips through netcatty_session_restore_v1 unchanged.
Phase 2 of #4098: every remaining positional fallback in the workspace
AI scope is replaced with id-based resolution.
- Workspace gains anchorChatId: pinned by the AI side panel whenever a
chat becomes active in the workspace scope, persisted through the
session restore snapshot, and validated lazily by consumers.
- resolveDisplayedPanelView: the auto-resume fallback now resolves the
anchored chat first, then the most recently updated chat (updatedAt),
else draft; sessions[0] is gone.
- retargetWorkspaceActiveChatAfterMemberLoss: when the focused member
did not survive, the retarget lands on the most-recently-active
survivor by chat recency, not the first positional member.
- plugin keybinding context: focused member, then the terminal member
owning the anchored chat, then the most-recently-active member; a
single-member workspace uses its only member.
- New domain/aiSessionRecency helper shared by all survivor rankings.
- /rebind and session_recover semantics (#4019) are unchanged.
Phase 2 of #4098: the workspace becomes a first-class object that
survives membership changes.
- Close/detach no longer dissolves a workspace at <=1 member. The
workspace entity (and its id) survives with its remaining members,
even at zero, where it keeps an empty split root placeholder that
renders as an empty workspace tab.
- Focus handoff after member loss resolves to the most-recently-active
surviving member (AI chat updatedAt via the AI session store), never
positionally to remainingSessionIds[0]; with no recency signal focus
is cleared and the pane renderer uses its display default.
- session restore: drop the empty-workspace skip. Workspaces closed to
zero members persist an empty root and come back after restart with
the same id, so their AI chats re-link. Roots that prune to null
because their member sessions cannot be restored are still dropped.
- applyCloseSessionToSessions no longer orphans the survivor; the
dissolved-workspace tab-order replacement machinery is removed.