Skip to content

StudyHub 5.6.5

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 05:01
· 74 commits to main since this release

5.6.5 — 2026-12-05

  • Prevent horizontal overflow at 320 px width and 200% zoom across five additional views (#2036). Capped PageScope select widths and grid tracks in Mock Exam (Case paper) and Exam Prep, allowed narrow-viewport wrapping on Course Outline companions/stale-outline actions, Live Class local-engine install buttons (<= 480 px), Library hand-off link buttons, and Settings › Materials large-document cards and Marker disclosures, backed by a real Chromium regression suite (tests/compat-320px-zoom-extended-browser.test.mjs). Not verified: manual visual inspection on physical mobile devices or native desktop host webviews.
  • Malformed DOCX numbering, outline levels, and merged table spans no longer hang, OOM, or fail extraction. letters and roman in lib/office/markdown.js now normalize non-finite, negative, fractional, and oversized values (with markdownTable avoiding spread overflow on large row counts), while lib/office/docx.js skips out-of-range w:lvl definitions, clamps paragraph w:ilvl to 0..8, bounds w:start (1..1,000,000), caps table row width (w:gridSpan and total cells per row up to 256), and ignores negative or non-finite w:outlineLvl values instead of throwing RangeError. Not verified: the full 11-minute test suite (node scripts/test.mjs --fast) or live desktop/browser import smoke (npm run qa:dsh); verified with DOCX/office/LaTeX targeted tests, ESLint (--max-warnings=0), TypeScript typecheck, lib-graph, test-audit, and changelog:check.
  • The top bar, mailbox panel, dropdown menus and sidebar folds look calmer and more consistent. The environment status pill is now outlined and only turns amber or red when something needs attention. The mailbox badge is smaller and neutral, each mailbox entry shows its kind, deck and time on one line with a quiet "mark read" action, and the "read all" action no longer looks like a link. Highlighted dropdown options no longer draw a heavy outline, and the sidebar folds use the same chevron icon that turns when opened. The Desk Atelier sound button now uses a quiet style in both states. Not verified: real screenshots on a phone, a tablet or a high-contrast theme, and use with a screen reader.
  • Guard job card and course rule async action failures. Caught synchronous throws and promise rejections across CompactJobCard actions (archive, stop, primary button, and secondary links; plus localized Undo error reporting and false sentinel handling) and CourseRuleConfirm confirmation/close, surfaced localized error toasts, prevented duplicate in-flight submissions, guarded unmount-in-flight writes, and ensured busy state resets so users can retry or cancel after failure. Not verified: live browser clicks inside the full DSH host webview.
  • Shared utility helpers consolidated with no learner-facing behaviour changes. Duplicated error, text-clipping, JSON object parsing, and numeric clamping helpers across the library are now shared from canonical modules with dedicated unit tests, keeping existing behaviour identical. Not verified: the full end-to-end browser suite and live model/API transcription calls.
  • Questions dropped as duplicates during one-pass generation now always point to a question that stays in the deck. When overlapping duplicate groups were merged in sequence, or when a question dropped across portions pointed to another question later merged for testing the same fact, the coverage record could point to a dropped question instead of the surviving one. Both cases now follow the merge chain to the surviving question without altering untouched parts. Not verified: a live generation run with a real model; checked with automated merge tests.
  • Desktop cold-start phase telemetry and startup critical-path optimization (#2009). Added pure domain boot-phase timing with a sanitized PII-free Boot timing line in copied diagnostics (plus optional STUDYHUB_BOOT_PROFILE=1 sidecar logging), deferred heavy ESM runtime imports in sidecar.mjs until after binding the local HTTP server and emitting {"port":N} (cutting cold handshake time under load from 8,217–9,100 ms to 924 ms wall / 104 ms in-process listen median while incoming /api/call and /api/events cleanly await readiness or fail with HTTP 503), and parallelized DesktopRoot Tauri bootstrap/event listeners with zero-scan desktop.boot (eliminating the 2,316–7,395 ms blocking CLI provider scan before <App> mounts, and scoping codex binding.get to scanProvider('codex')).
    • Not verified: Native Rust/Tauri window binary build and cargo test were not run locally because cargo / rustc are unavailable on this machine.
  • Malformed or oversized converted PDF documents no longer hang, OOM, or throw uncaught runtime errors. parseConvertedDocument now validates Docling table dimensions (MAX_TABLE_DIM, MAX_TABLE_CELLS — aborting import with ConvertedDocumentError when exceeded), skips non-object table_cells and falls back safely to data.grid when table_cells is absent/empty, enforces positive 1-based page numbers (shifting 0-based generic <!-- page: 0 --> markers to 1-based), caps recursion depth (MAX_DEPTH), guards prototype $ref keys and negative heading levels, caps total pages (MAX_PAGES), and replaces stack-unsafe spread min/max and quadratic skippedPages/page-block accumulation with linear helpers and a Set. Not verified: the full test suite (npm test) or an end-to-end host import run (npm run qa:dsh).
  • Choose reasoning effort for OpenAI-compatible models on desktop. The model setup form offers the effort options for models and providers that support them. Not verified: live requests to all compatible providers.
  • Keep the question tutor input in view. Scroll through earlier replies inside the panel while the input and Send button stay in place. This also works in narrow windows and at 175% and 200% interface scaling. Not verified: a live-model conversation in the installed desktop app.

Desktop retrieval extension downloads may time out on slow connections. The release page provides the standalone Windows retrieval archive and its SHA-256 checksum.

Release verification. A full day of use on the preview channel and a complete regression pass with a live library and model are still unverified.

5.6.5 — 2026-12-05

  • 修复 320 px 窄屏与 200% 缩放下五处界面的横向溢出与截断(#2036)。 收紧课程范围选择器宽度与网格列宽,修复模拟考试(案例分析卷)、备考补习、课程总纲伴学栏与旧总纲重建按钮、课堂实录本机引擎安装行(<= 480 px 换行)、学习库主会话交接按钮,以及设置 › 资料解析与检索扩展中的大文档卡片与 Marker 折叠说明,并补充真实 Chromium 回归测试(tests/compat-320px-zoom-extended-browser.test.mjs)。未验证:实体手机设备与原生桌面宿主内嵌视图上的人工目视检查。
  • 畸形 DOCX 列表编号、大纲级别与跨列合并单元格不再导致卡死、内存溢出或误判损坏。 lib/office/markdown.js 中的 letters 与 roman 现会规范化非有限数、负数、小数与超大数值(markdownTable 同步改用归约求最大列宽以避免大表格展开栈溢出);lib/office/docx.js 现会跳过越界的 w:lvl 定义、将段落 w:ilvl 钳制在 0..8、限制 w:start(1..1,000,000)与表格单行列数上界(w:gridSpan 与单行总列数上限 256),并忽略负数或非有限的 w:outlineLvl 以免 String.prototype.repeat 抛出 RangeError。未验证:11 分钟全量测试套件(node scripts/test.mjs --fast)及真实宿主端到端导入冒烟(npm run qa:dsh);已通过 DOCX/Office/LaTeX 定向测试、ESLint(--max-warnings=0)、类型检查、lib-graph、test-audit 与 changelog:check。
  • 顶栏、信箱面板、下拉菜单和侧栏折叠项看起来更安静、更一致。 顶栏的环境状态只用细边框,只有出问题时才变成黄色或红色;信箱的未读角标变小、不再抢眼,每封信把类型、学习集和时间放在一行,「标为已读」更低调,「全部已读」也不再像一个链接;下拉菜单里高亮的选项不再带粗边框;侧栏的折叠项统一用同一个箭头图标,展开时会转向;书桌音景的播放按钮在两种状态下都用同样的低调样式。未验证:没有在手机、平板或高对比度主题上看过真实截图,也没有用读屏软件试过。
  • 补齐任务卡片操作与课程守则保存的异步失败防护。 修复 CompactJobCard 归档、停止、主按钮及次级链接操作(含撤销失败本地化提示与 false 返回值判断)和 CourseRuleConfirm 保存及关闭回调在同步异常或 Promise rejection 时未捕获、缺少错误提示及忙碌态锁死的问题,增加进行中防重入与卸载保护并在失败后释放状态以支持重试或取消。未验证:完整 DSH 宿主 Webview 内的真实浏览器点击。
  • 整理并合并了内部重复的通用辅助函数,界面与学习功能行为保持不变。 将多处重复的错误构造、文本截断、JSON 对象解析与数值范围限制逻辑统一归并到现有共享模块并补充行为测试。未验证:完整浏览器端到端测试套件与真实在线模型或语音转写接口调用。
  • 一次生成里作为重复题合并掉的题目,现在都会指向最终留在题组里的那道题。 之前遇到重叠的同考点分组,或跨段去重后被留下的那道题在后续同考点合并里又被合并掉时,记录里的覆盖指向可能落在一道已经删掉的题上。现在会顺着合并链指向最终留下的题目,未受影响的段落保持不变。未验证:用真实模型完整跑一次出题,仅通过自动合并测试验证。
  • 桌面版冷启动分段耗时采集与两条最慢链路优化(#2009)。 新增纯领域冷启动阶段计时器与无隐私泄露的 Boot timing 诊断行(并支持 STUDYHUB_BOOT_PROFILE=1 侧车日志),将 sidecar.mjs 改为先监听本地回环端口并立即完成 {"port":N} 握手、再并行加载重型运行时模块(实测同负载下握手耗时由 8,217–9,100 ms 降至 924 ms,进程内监听中位数 104 ms),并将前端启动改为并行执行 loadBootstrapInfo 与 Tauri 事件监听、调用零扫描 desktop.boot(消除挂载 <App> 前 2,316–7,395 ms 的阻塞式 CLI 探测;codex 模式下 binding.get 改用单提供方 scanProvider('codex') 避免等待 agy)。
    • 未验证:本机未安装 cargo / rustc,未本地编译或运行 Rust/Tauri 原生窗口二进制与 cargo test。
  • 畸形或超大规模的转换后 PDF 文档不再引发内存溢出、长时间卡死或未捕获的运行时异常。 parseConvertedDocument 现会校验 Docling 表格尺寸(超出 MAX_TABLE_DIM/MAX_TABLE_CELLS 时抛出 ConvertedDocumentError 中止导入),过滤非对象 table_cells 并在缺失或为空时安全回退读取 data.grid,强制正整数 1-based 页码(将从 0 开始的 <!-- page: 0 --> 标记统一平移为 1-based),限制嵌套递归深度(MAX_DEPTH),拦截原型链 $ref 键与负数标题层级,限制总页数上界(MAX_PAGES),并用线性循环、Set 查找与原地追加替换易栈溢出的扩展运算符最值及平方级 skippedPages/块拼接循环。未验证:完整全量测试套件(npm test)及真实宿主端到端导入(npm run qa:dsh)。
  • 桌面版可为 OpenAI 兼容模型选择推理强度。 模型和服务商支持时,模型设置表单会显示可用档位。未验证:所有兼容服务商的实际请求。
  • 长对话里也能直接接着问。 在「围绕本题接着问」面板里滚动旧消息时,输入框和「发送」按钮留在可见区域。窄窗口以及界面缩放到 175% 和 200% 时也可使用。未验证:在已安装的桌面应用中连接真实模型对话。

网络较慢时,桌面版下载检索扩展可能超时。发布页提供 Windows 检索扩展压缩包及其 SHA-256 校验值。

发布验证范围。体验通道连续使用满一天,以及使用真实学习库和模型的整套回归,均未验证。