fix: hardening round from code review (4 P1 + 15 P2)
CI / typecheck + test + build (windows) (push) Canceled after 0s

P1:
- settingsStore: back up an unparseable settings.json to .bak before
  falling back to defaults, so the next mutation can no longer silently
  wipe custom themes/highlight rules
- ptyDispatcher: fan out per-session data/exit handlers (Set instead of
  a single slot) so SSH split panes stop stealing each other's stream
- FilePanel: monotonic refresh token keeps stale listings from painting
  over a newer navigation; upload finish no longer yanks the panel back
- settings.css: active settings-tab label derives from --chrome-fg so it
  stays visible on the shipped light themes

P2 (main/renderer):
- paste guard: a paste ending in a newline always confirms
- Workspace: closing an SSH pane no longer seeds the local cwd with a
  remote path
- tray: skip close-dialog continuation on a destroyed window
- commands: close zombie 'in-progress' session logs at hydrate
- zmodem: clear the stale offer timer before arming a new one
- connectionsStore: coerce/validate renderer input before persisting
- sftp: OperationError marker class keeps translated errors out of the
  transport-retry classifier
- CommandsPanel: surface save failures inside the dialog
- ConnectionSidebar: drop a tautological tooltip condition

P2 (i18n/tooling/tests):
- localize the 16 ANSI color labels and the highlight sample text
  (21 new keys across zh-CN/zh-TW/en/ja)
- sync-changelog: keep ### subheadings, normalize CRLF notes
- release.cjs: GitHub release reuse-by-tag (idempotent re-runs); fail
  loudly on a failed Gitea asset listing
- commands-store test: absent historyEnabled now truly tests absence
This commit is contained in:
Bill committed 2026-09-27 22:25:03 +08:00
1 parent 33efbe921e
commit 4e5377f49c
27 files changed
+356 -83

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ const common: Record<string, string> = {
'common.cancel': 'Cancel',
'common.close': 'Close',
'common.save': 'Save',
'common.saveFailed': 'Save failed, please try again',
'common.delete': 'Delete',
'common.edit': 'Edit',
'common.add': 'Add',
+17
View File
@@ -16,6 +16,22 @@ const settings: Record<string, string> = {
'settings.color.background': 'Background',
'settings.color.cursor': 'Cursor',
'settings.color.selection': 'Selection',
'settings.color.ansi.black': 'Black',
'settings.color.ansi.red': 'Red',
'settings.color.ansi.green': 'Green',
'settings.color.ansi.yellow': 'Yellow',
'settings.color.ansi.blue': 'Blue',
'settings.color.ansi.magenta': 'Magenta',
'settings.color.ansi.cyan': 'Cyan',
'settings.color.ansi.white': 'White',
'settings.color.ansi.brightBlack': 'Bright Black',
'settings.color.ansi.brightRed': 'Bright Red',
'settings.color.ansi.brightGreen': 'Bright Green',
'settings.color.ansi.brightYellow': 'Bright Yellow',
'settings.color.ansi.brightBlue': 'Bright Blue',
'settings.color.ansi.brightMagenta': 'Bright Magenta',
'settings.color.ansi.brightCyan': 'Bright Cyan',
'settings.color.ansi.brightWhite': 'Bright White',
'settings.font.label': 'Font',
'settings.font.desc': 'The built-in default or a system monospace font',
'settings.font.placeholder': 'Select a font',
@@ -162,6 +178,7 @@ const settings: Record<string, string> = {
'settings.highlight.clearBg': 'Clear',
'settings.highlight.addBg': 'Add',
'settings.highlight.palette': 'Palette',
'settings.highlight.sampleText': 'Highlight',
'settings.highlight.note': 'Note',
'settings.highlight.notePlaceholder': 'Rule description (optional)',
'settings.highlight.caseInsensitive': 'Ignore case',
+1
View File
@@ -4,6 +4,7 @@ const common: Record<string, string> = {
'common.cancel': 'キャンセル',
'common.close': '閉じる',
'common.save': '保存',
'common.saveFailed': '保存に失敗しました。もう一度お試しください',
'common.delete': '削除',
'common.edit': '編集',
'common.add': '追加',
+17
View File
@@ -16,6 +16,22 @@ const settings: Record<string, string> = {
'settings.color.background': '背景',
'settings.color.cursor': 'カーソル',
'settings.color.selection': '選択範囲',
'settings.color.ansi.black': '黒',
'settings.color.ansi.red': '赤',
'settings.color.ansi.green': '緑',
'settings.color.ansi.yellow': '黄',
'settings.color.ansi.blue': '青',
'settings.color.ansi.magenta': 'マゼンタ',
'settings.color.ansi.cyan': 'シアン',
'settings.color.ansi.white': '白',
'settings.color.ansi.brightBlack': '明るい黒',
'settings.color.ansi.brightRed': '明るい赤',
'settings.color.ansi.brightGreen': '明るい緑',
'settings.color.ansi.brightYellow': '明るい黄',
'settings.color.ansi.brightBlue': '明るい青',
'settings.color.ansi.brightMagenta': '明るいマゼンタ',
'settings.color.ansi.brightCyan': '明るいシアン',
'settings.color.ansi.brightWhite': '明るい白',
'settings.font.label': 'フォント',
'settings.font.desc': '組み込みの既定フォント、またはシステムの等幅フォント',
'settings.font.placeholder': 'フォントを選択',
@@ -159,6 +175,7 @@ const settings: Record<string, string> = {
'settings.highlight.clearBg': 'クリア',
'settings.highlight.addBg': '追加',
'settings.highlight.palette': 'パレット',
'settings.highlight.sampleText': 'ハイライト',
'settings.highlight.note': 'メモ',
'settings.highlight.notePlaceholder': 'ルールの説明(任意)',
'settings.highlight.caseInsensitive': '大文字小文字を無視',
+1
View File
@@ -4,6 +4,7 @@ const common: Record<string, string> = {
'common.cancel': '取消',
'common.close': '关闭',
'common.save': '保存',
'common.saveFailed': '保存失败,请重试',
'common.delete': '删除',
'common.edit': '编辑',
'common.add': '新增',
+17
View File
@@ -16,6 +16,22 @@ const settings: Record<string, string> = {
'settings.color.background': '背景',
'settings.color.cursor': '光标',
'settings.color.selection': '选区',
'settings.color.ansi.black': '黑',
'settings.color.ansi.red': '红',
'settings.color.ansi.green': '绿',
'settings.color.ansi.yellow': '黄',
'settings.color.ansi.blue': '蓝',
'settings.color.ansi.magenta': '品红',
'settings.color.ansi.cyan': '青',
'settings.color.ansi.white': '白',
'settings.color.ansi.brightBlack': '亮黑',
'settings.color.ansi.brightRed': '亮红',
'settings.color.ansi.brightGreen': '亮绿',
'settings.color.ansi.brightYellow': '亮黄',
'settings.color.ansi.brightBlue': '亮蓝',
'settings.color.ansi.brightMagenta': '亮品红',
'settings.color.ansi.brightCyan': '亮青',
'settings.color.ansi.brightWhite': '亮白',
'settings.font.label': '字体',
'settings.font.desc': '内置默认字体或系统等宽字体',
'settings.font.placeholder': '选择字体',
@@ -153,6 +169,7 @@ const settings: Record<string, string> = {
'settings.highlight.clearBg': '清空',
'settings.highlight.addBg': '添加',
'settings.highlight.palette': '色板',
'settings.highlight.sampleText': '高亮',
'settings.highlight.note': '备注',
'settings.highlight.notePlaceholder': '规则说明(可选)',
'settings.highlight.caseInsensitive': '忽略大小写',
+1
View File
@@ -4,6 +4,7 @@ const common: Record<string, string> = {
'common.cancel': '取消',
'common.close': '關閉',
'common.save': '儲存',
'common.saveFailed': '儲存失敗,請重試',
'common.delete': '刪除',
'common.edit': '編輯',
'common.add': '新增',
+17
View File
@@ -16,6 +16,22 @@ const settings: Record<string, string> = {
'settings.color.background': '背景',
'settings.color.cursor': '游標',
'settings.color.selection': '選取區',
'settings.color.ansi.black': '黑',
'settings.color.ansi.red': '紅',
'settings.color.ansi.green': '綠',
'settings.color.ansi.yellow': '黃',
'settings.color.ansi.blue': '藍',
'settings.color.ansi.magenta': '洋紅',
'settings.color.ansi.cyan': '青',
'settings.color.ansi.white': '白',
'settings.color.ansi.brightBlack': '亮黑',
'settings.color.ansi.brightRed': '亮紅',
'settings.color.ansi.brightGreen': '亮綠',
'settings.color.ansi.brightYellow': '亮黃',
'settings.color.ansi.brightBlue': '亮藍',
'settings.color.ansi.brightMagenta': '亮洋紅',
'settings.color.ansi.brightCyan': '亮青',
'settings.color.ansi.brightWhite': '亮白',
'settings.font.label': '字型',
'settings.font.desc': '內建預設字型或系統等寬字型',
'settings.font.placeholder': '選擇字型',
@@ -153,6 +169,7 @@ const settings: Record<string, string> = {
'settings.highlight.clearBg': '清除',
'settings.highlight.addBg': '新增',
'settings.highlight.palette': '色盤',
'settings.highlight.sampleText': '高亮',
'settings.highlight.note': '備註',
'settings.highlight.notePlaceholder': '規則說明(選填)',
'settings.highlight.caseInsensitive': '忽略大小寫',