Skip to content

StudyHub 5.6.2

Choose a tag to compare

@github-actions github-actions released this 04 Dec 04:10
· 34 commits to main since this release

5.6.2 — 2026-12-04

  • Fraction labels in Interactive Companions charts and diagrams read correctly. A threshold or marker can show 1/x, and a fraction with several terms keeps the parentheses that show what belongs above or below the slash. Rebuild previously exported lessons to refresh their labels. Not verified: live DSH and Desktop windows or a lesson generated by a live model.
  • Checking or importing a damaged M4A or AIFF recording no longer crashes or reports a false zero or infinite length. When an M4A file is cut off inside its header or carries an unknown header version, or when an AIFF file has an invalid sample rate, StudyHub now treats the length as unknown and lets the import continue or fall back to file size instead of stopping with an unhandled error. Not verified: tested with crafted damaged M4A and AIFF files rather than real-world broken recordings from the desktop app or DSH.
  • WebM and AIFF recordings with unusual header numbers no longer misreport their length. Some WebM files store their time unit across 7 or 8 bytes, which was cut short and made a 1-minute recording look like less than a thousandth of a second; broken or infinite duration numbers in WebM or sample rates in AIFF could also look like an invalid over-8-hour or 0-second recording instead of being treated as unknown length. Those files now read their real duration or fall back cleanly to unknown length. Not verified: real WebM or AIFF files exported by every encoder or recorder, and importing them through the desktop app or DSH UI (checked with synthetic audio buffers in unit tests).
  • Hardened local live-engine archive unpacking against malformed or unsafe packages. When unpacking downloaded local live-engine archives, StudyHub now validates every path (including leading .. traversal, directory entries, NUL/control characters, and file-versus-folder path collisions), tar header checksums and octal fields, truncated streams, dangling extended headers, and extended-header size limits before writing a single file, so a corrupted or unsafe archive fails cleanly as a checksum error with nothing left on disk. Not verified: live downloading and unpacking of real remote npm registry tarballs on Windows or macOS.
  • Syncing feedback from linked interactive companions no longer loses existing notes, follows symlinked paths outside the folder, drops single-item updates, or reopens resolved items. If the feedback folder or files are symlinks, temporarily unreadable, larger than the safety limit, from a newer format version, or cannot be backed up when malformed, syncing now stops and leaves the existing records untouched; saving a single feedback entry into a fresh folder now writes it to disk, and partial edits to a resolved item keep its resolved status unless reopened explicitly. Not verified: running companion feedback sync interactively inside the packaged desktop app or DSH plugin UI on Windows and macOS.
  • Offline and cross-platform compatibility fixes for backups, PowerPoint imports, CSDN notes, and local settings. Restoring a chunked backup or loading Marker settings and the job archive now accepts UTF-8 BOM-prefixed JSON files edited on Windows, importing PowerPoint decks resolves Windows backslash relationship paths, and CSDN public-homepage checks report a clear message instead of a raw network error when offline or timed out. Not verified: importing a live PowerPoint file created on Windows itself or fetching the live CSDN website over a real offline network.
  • Importing Word and PowerPoint files is more reliable on unusual or damaged packages. Archives with comments containing ZIP marker bytes and legacy presentations whose internal mini-stream size is not 64-byte aligned now open cleanly, while truncated or looping Word/PowerPoint containers fail immediately as damaged files instead of misreading data. Not verified: importing real-world files generated by third-party office suites outside our synthetic binary test cases.
  • Imported Word and PowerPoint equations render more reliably without broken math syntax. Formulas containing percentage/currency/set-difference symbols, normal-text notes with carets or backslashes, non-standard or full-width brackets, piecewise functions, standard math operators such as limits and sine, tracked insertions or content controls, and arrow-over/under groupings now convert to valid rendered math instead of dropping terms or showing raw errors. Not verified: live Word and PowerPoint desktop exports on macOS or Windows outside synthetic OOXML fixtures.
  • LaTeX imports keep title formulas, aligned relations, complex tables, and nested captions intact. Imported LaTeX documents now retain math formulas, expanded custom macros, and inline code inside document titles, convert relation macros in eqnarray blocks into aligned equations cleanly, strip tabularx and tabular* width/column specifications without dropping braced first cells, unwrap nested \multicolumn/\multirow cells, and keep deeply formatted figure captions and Beamer slide titles readable. Not verified: live upload through the desktop UI and custom third-party table or float macros outside the test suite.
  • Keyboard Escape, focus management, and ARIA references across ten panels and forms now stay consistent. Pressing Escape inside the reader find bar or on the seal-album delete confirmation closes only the inner bar or confirmation rather than closing the whole dialog; focus moves cleanly into and back out of memo edits, focus-topic and learning-preference chips, timer panels and inline duration edits, card-editor clear/remove controls, and seal-album removal actions without dropping to the page body; the MinerU endpoint URL field and topic chips bind labels and descriptions directly to their inputs; CourseField omits aria-controls while closed or empty; and the task plan table uses proper landmark, group header, and outside-table structure. Not verified: live browser keyboard/focus walkthrough in an installed DSH or desktop app; behavior is verified via React SSR and interactive harness tests.
  • Terminal UI runtime errors now stay legible and restore the screen cleanly. Unhandled background promise rejections surface as an in-app notice instead of crashing the raw-mode terminal, fatal uncaught exceptions restore the terminal once before exiting with a redacted error summary, and both the root and view error boundaries recover cleanly even when a falsy value or null-prototype object is thrown. Not verified: live interactive terminal crash testing outside automated TTY stream tests.
  • Review book writes no longer alter or remove footnote markers inside code blocks or inline code. When a review book note shows Markdown footnote examples such as [^1] or [^1]: ... inside a fenced code block or inside single- or multi-backtick inline code, editing or saving the section now leaves those code examples untouched instead of deleting them, renumbering them, or refusing the save with a footnote error. Real footnotes outside code—including after an unmatched backtick—still settle and number as before. Not verified: saving a review book page containing code examples through a live chat session in DSH or the desktop app.
  • Faster recommendations, stats dashboard, knowledge graph, and material mastery views in large libraries. Opening similar-question recommendations, the Stats page, the Knowledge Graph, and the Materials view now responds noticeably faster when a library grows to hundreds of materials and over a thousand questions, with identical results (on a 200-source / 1,200-card benchmark, similar recommendations dropped from 131.7ms to 22.0ms, stats from 101.2ms to 14.8ms, and material mastery from 52.4ms to 15.7ms); verified with automated equivalence, guardrail, and complexity tests. Not verified: live desktop/TUI interactive sessions.
  • Fix reading translation validation for Japanese, Korean, and non-Latin passages (#2025). Translation length checks now consider both the source script and the target language, so concise Japanese- or Korean-to-Chinese translations are no longer falsely rejected and retried until failure, while heavily truncated non-Latin-to-English outputs (such as Russian to English) are now caught. Untranslated Japanese or Korean echoes for a Chinese target are also detected as untranslated, while Chinese translations that quote a single original term still pass. Not verified: live end-to-end model runs on Japanese, Korean, or Russian documents were not executed; verification covers the validation and translation suites with unit tests.
  • Full-text library search no longer crashes on notes without linked cards, highlights earlier matches properly, and searches faster. Notes missing a cards list remain searchable by title and body, multi-field cards and multi-paragraph review books show the snippet from the earliest matching section instead of jumping to a later one, and course-scoped searches skip unrelated material groups and review-book folders. Not verified: full-suite run across unrelated modules, live Electron/browser UI interaction, and disk I/O latency on large real-world libraries.
  • Transcript proofreading and uncertain-word review now keep dollar signs, prices, and LaTeX math formulas intact when applying fixes. Previously, replacement text containing dollar-sign sequences such as $$...$$ or $& could lose a dollar sign or insert surrounding transcript words into both the original transcript and its paired translation; replacements are now written verbatim, and empty translation edits no longer alter short translation lines. Not verified: checked with automated unit tests on synthetic transcript and translation passages rather than a live model call or a running DSH or desktop window.
  • Audio transcription usage tracking no longer misclassifies or crashes on standard request formats. Provider tiers (Gemini free/paid, Groq, SiliconFlow), key identifiers, and provider quota headers are now recognized consistently across mixed-case headers, Headers instances, [name, value] arrays, Request objects, and malformed model path segments. Not verified: live requests against external provider APIs or a full end-to-end host import run (npm run qa:dsh).
  • When agy rejects a selected model, StudyHub explains what its current model list says. After the rejection, StudyHub briefly checks the list once and tells you whether it could not read the list, the selected model is missing, or agy rejected it even though it is listed. The failed request ends there. In model settings, rescan agy, choose an available model or the CLI default, and save your choice before trying again. When model settings show a local CLI setup or connection error, or the tutor reports an error during practice, you can preview and copy diagnostic fields such as the app version and failure status and share them with another AI for help. Not verified: reproducing the rejection and recovery with a live model in the original failing environment.
  • Keep Word table controls, HTML table entities, and blankless subtitle cues intact during import. Word .docx table cells and rows now unwrap w:sdt, w:sdtContent, w:customXml, w:ins, w:smartTag, and w:moveTo while keeping w:del and w:moveFrom excluded; MinerU HTML table cells decode ' and valid numeric entities while escaping pipes and leaving invalid code points untouched; and SRT/WebVTT parsing splits consecutive cues lacking blank lines without dropping numeric subtitle lines or NOTE/STYLE/REGION blocks.
    Not verified: full 11-minute test suite (node scripts/test.mjs --fast) and live GUI/desktop import smoke tests; verified with targeted parser, boundary, lint, typecheck, changelog, test-audit, and build checks.
  • Five hidden source-reading checks were replaced with interactive checks of the actual features. Tests for board inputs and memos, the review book editor, exam coach number drafts, case study paper settings and jump-to-blank scrolling, generation quota and reference warnings, voice readiness rechecks, task controls and busy locking, guided study pause and resume, reader mark notices, focus restoration, and toast feedback now mount and exercise the real components and operations instead of matching source text. Not verified: live browser, DSH, and desktop app interactions.
  • Inline editors, confirmations, and reader controls now keep keyboard focus in place and report valid control states to screen readers.
    • Pressing Escape while editing a course's learning method or a focus-time log entry now closes only that inline editor without dismissing the outer course settings window, and moves focus back to the button that opened it once saving or cancelling finishes (or into the name / duration box when opening it).
    • Cancelling an automatic restore point confirmation, cancelling or starting a chapter readiness fill-in, or unmarking a read chapter in the reader contents panel now returns focus to the matching button or row link instead of dropping focus to the page.
    • Collapsed expand toggles in the material picker, follow-up stats in the section practice panel, and token estimate details no longer point screen readers at hidden panels, and the reader contents search box, learning-method alternatives group, flashcard answer loader, and scheduling tooltip triggers now carry valid roles and accessible labels.
    • Not verified: tested with simulated interactive renders and static markup in Node rather than in a live desktop window, DSH webview, or screen reader (NVDA/VoiceOver).
  • Corrupt or truncated M4A audio files no longer crash the app or throw raw out-of-range errors. parseM4a now validates box sizes, versioned header lengths (mvhd, mdhd), sample table bounds (hdlr, stsd, stsz, stts, stco/co64, stsc), and fixed-sample stsz frame counts against file length before allocating sample arrays, consistently throwing M4aError (M4A_UNREADABLE). Not verified: the full 11-minute test suite (npm test) or an end-to-end host import run (npm run qa:dsh).

This version has yet to complete a full day of hands-on use in the preview channel. Recovery with a live model in the original agy setup is still unverified. On Windows Desktop, the model settings can appear blank during the initial CLI scan, and the enable button can keep showing a spinner when switching from agy to Codex. #2116

5.6.2 — 2026-12-04

  • 交互伴学的图内分数标签能看懂了。 阈值和标记里的分数会显示成 1/x 这样的写法,分子或分母有多项时会保留括号。此前导出的伴学页需要重新编译后才会更新标签。未验证:真实 DSH 和桌面版窗口,以及真实模型生成的伴学课。
  • 检查或导入损坏的 M4A、AIFF 录音时,不再崩溃或误报 0 秒与无穷时长。 当 M4A 文件在头信息处截断、带有未知的版本号,或 AIFF 文件里的采样率无效时,StudyHub 会把时长记为未知并回退到按文件大小判断,不再因未捕获的错误中断。未验证:只用构造的损坏 M4A 和 AIFF 文件做过测试,未在桌面版或 DSH 里用真实损坏录音验证。
  • 修复了部分 WebM 和 AIFF 录音时长读错的问题。 有的 WebM 文件用 7 或 8 个字节写时间刻度,之前会被截短,让 1 分钟的录音被算成不到千分之一秒;遇到损坏或无穷大的时长、采样率数字时,也可能被误判成「超过 8 小时」或「0 秒」,而不是按「读不出时长」处理。现在这些文件能读出正确时长,读不出时也会安静按未知时长处理。未验证:各类录音软件或编码器导出的真实 WebM 和 AIFF 文件,以及在桌面版或 DSH 界面里实际导入这些文件(只用测试里构造的音频字节数据核对过)。
  • 加固本地转写引擎安装包的解压校验,异常归档不再半途落盘。 解压本地转写引擎下载包时,现在会在写入首个文件前完整校验所有条目路径(含首段上级目录穿越、目录项、空字符/控制字符及文件与目录路径冲突)、归档头校验和与八进制字段、截断数据流、悬空扩展头以及扩展头体积上限;遇到损坏或异常归档会直接按校验失败中止,不会在目标目录留下残留文件。未验证:在 Windows 或 macOS 上在线下载并解压真实远程引擎安装包。
  • 同步目录挂载型交互伴学的学习疑问与反馈时,不再静默清空已有记录、沿符号链接写到授权目录外、漏存单条反馈,或把已解决条目意外重开。 当伴学目录里的反馈路径为符号链接、暂时无法读取、超过安全体积上限、来自更新版本格式,或在文件损坏但无法先留备份时,同步现在会直接中止并保留原有记录;向全新伴学目录提交单条反馈时会正常写入本地,对已解决条目只补充备注或处理说明时也会保持“已解决”状态,除非明确重新打开。未验证:在 Windows 与 macOS 的打包桌面版或 DSH 插件界面中交互触发伴学反馈同步。
  • 修复备份恢复、幻灯片导入、CSDN 公开主页关联与本地设置的跨平台及离线兼容问题。 分片上传恢复备份、读取 Marker 程序设置与任务归档时不再被 Windows 编辑器附带的 UTF-8 BOM 破坏;导入使用反斜杠关系路径的幻灯片文稿时可正常解析页面与备注;离线或请求超时时,公开主页检查与文章匹配会给出清楚的手动关联提示,而不再直接抛出底层网络异常。未验证:在 Windows 本机使用真实导出的幻灯片文件以及在真实断网环境下访问 CSDN 线上主页。
  • 导入 Word 和 PowerPoint 资料时对特殊或损坏文件的处理更可靠。 压缩包注释里带有特殊标记字节的文档,以及内部小流长度未按 64 字节对齐的旧版幻灯片现在可以正常打开;截断、越界或包含循环引用的损坏文件会立即识别并报错,不再误读或空转。未验证:在真实第三方办公软件导出的大量现网样本上的导入表现(当前仅使用构造的二进制容器样本验证)。
  • 导入 Word 和 PowerPoint 文档中的数学公式时不再因特殊字符、定界符、修订记录或箭头分组而报错或丢项。 含百分号、货币符号、反斜杠或注释文本的公式,全角与非标准括号、分段函数、极限与三角函数名、修订插入与内容控件内的公式项,以及上下箭头分组符都能正确转换为可渲染的公式。未验证:在 macOS 或 Windows 桌面端 Word/PowerPoint 中现导出的真实大文档(仅在合成文档包与公式渲染器上完成验证)。
  • 导入 LaTeX 资料时完整保留标题公式、关系对齐、复杂表格与多层嵌套标题。 导入 LaTeX 文档后,文档标题中的数学公式、自定义宏和行内代码不再被破坏或泄露占位符;带关系符号宏的多行公式能正确转为对齐公式而不误并单列行;宽表与扩展表格的列宽和列格式声明不再混入表头,普通表格首列的花括号内容也不会被误删;跨列跨行单元格及多层嵌套样式的图表说明与幻灯片标题均可完整提取。未验证:在桌面端上传界面的端到端手工导入,以及测试样本之外的第三方自定义表格或浮动体宏包。
  • 修复 10 处键盘 Escape、焦点回归、ARIA 关联与表格语义问题。 在阅读器文内查找条的任意按钮以及印谱移出确认条上按「Esc」(且避开输入法组字)只关闭当前条或确认区,不再误关整个弹窗;备忘编辑与新建、重点知识点与学习偏好标签删除、专注计时改时长/补记/改单条时长、待办弹窗清空或删除子项、以及印谱移出确认与完成后的焦点都会在操作后移到下一可用控件或回到原触发按钮;MinerU 云端接口地址与重点知识点控件把标签与提示直接绑到输入框;课程选择器收起或无匹配选项时不再输出悬空的关联引用;任务规划表的目标区、空筛选提示、分组行头与「显示更多」按钮也调整为规范语义结构。未验证:未在装好的 DSH 或桌面版界面里实际用键盘逐项点测,相关行为由单元测试与组件交互测试覆盖。
  • 终端版运行时异常可安全提示并完整恢复终端状态。 未捕获的后台异步异常会在界面内提示而不打断终端会话,致命未捕获异常会先完整恢复终端再输出脱敏后的报错并退出;根级与页面级错误边界改用显式错误标记与安全格式化,即使抛出空字符串或无原型对象也能正常显示中英双语恢复画面并按 [r] 重试。未验证:仅通过自动化虚拟 TTY 测试验证,未在真实交互终端中手动注入崩溃验证。
  • 修改或保存复习全书时,代码块和行内代码里的脚注示例不再被改动或删掉。 复习全书正文如果在围栏代码块或单、多反引号行内代码里写有 [^1]、[^1]: ... 这类脚注写法示例,现在更新或保存小节时会原样保留,不再被误改编号、当成无效脚注删掉,也不会触发脚注校验报错而拦住保存;代码之外的真实脚注(包括孤立反引号后面的脚注)照常核对与编号。未验证:在 DSH 或桌面版的实际对话里通过复习全书写入含代码示例的笔记并查看界面显示。
  • 大型学习库下的同类题推荐、统计面板、知识图谱与资料页打开更流畅。 当资料达到数百份、题目超过千道时,错题本的同类题推荐、统计页、知识图谱以及资料掌握度与文档题目列表响应明显加快,展示结果与排序保持一致(200 份资料 / 1,200 题基准下,同类题推荐由 131.7ms 降至 22.0ms,统计页由 101.2ms 降至 14.8ms,资料掌握度由 52.4ms 降至 15.7ms)。未验证:桌面端与终端界面的实机交互;已通过等价性、护栏与复杂度自动化测试验证。
  • 修复阅读翻译对日文、韩文及其他语种段落的译文校验误判(#2025)。 译文长度校验现在会同时参考原文语种与目标语言:日文或韩文译成中文时正常的简练译文不再被误判为过短并反复重试失败,俄文等非拉丁语种译成英文时被大幅截断的结果也能被正确拦截;同时,目标为中文时直接原样返回日文或韩文原文的结果会被识别为未翻译并触发重试,中文译文中保留个别日/韩原文术语则仍可正常通过。未验证:未连接真实线上模型端到端运行日/韩/俄文文档的整页翻译,仅通过本地单元测试覆盖各类语种组合与边界用例。
  • 全文内容搜索不再因笔记缺少关联题目列表而报错,命中摘要优先展示靠前的段落,课程筛选下的检索速度更快。 缺少关联题目字段的学习笔记现在可正常按标题和正文检索;多字段卡片和多段落复习全书在多词或分段命中时优先展示靠前字段或段落的匹配片段;按课程筛选时跳过无关资料分组与磁盘复习全书目录,并加快全文字符折叠速度。未验证:全量无关模块测试、桌面端/浏览器界面实机交互,以及超大规模真实资料库的磁盘读写表现。
  • 逐字稿校对与存疑处复核在应用修改时,不再破坏美元符号、价格和 LaTeX 数学公式。 此前,当改后的词语或短语里带有 $$...$$、$& 等美元符号组合时,原文逐字稿和对照译文都可能少掉一个 $ 或误插进前后文词句;现在会按字面原样写入,且空的译文修改项不会再误改两字短句。未验证:仅用合成逐字稿和译文片段做了单元测试,没有调用真实模型,也没有在运行中的 DSH 或桌面窗口里实际导入验证。
  • 音频转写与用量统计不再因请求头大小写或标准请求对象格式而误判或报错。 无论请求头使用混合大小写、Headers 实例还是键值数组,或是传入标准 Request 对象与异常编码的模型路径,用量统计都能正确归类免费/付费额度、提取密钥标识并记录供应商返回的剩余配额。未验证:向真实外部供应商接口发起请求,以及在真实宿主中跑完端到端音频导入(npm run qa:dsh)。
  • agy 拒绝所选模型时,StudyHub 会说明当前模型列表的情况。 遇到这类拒绝时,StudyHub 会快速查一次模型列表,并告诉你是列表读不到、所选模型已不在列表中,还是列表里仍有该模型但启动时被拒绝。本次失败的请求会就此结束。你可以在模型设置里重新扫描 agy,选择一个可用模型或「使用 CLI 默认模型」,保存后再试。当模型设置提示本机 CLI 配置或连通异常,或做题时的导师报错,可以预览并复制应用版本、失败状态等预设诊断字段,再贴给其他 AI 帮忙排查。未验证:在原报错环境连接真实模型复现拒绝和恢复流程。
  • 修复文档表格与无空行字幕导入的解析遗漏。 Word .docx 表格单元格与行现在会递归展开 w:sdt、w:sdtContent、w:customXml、w:ins、w:smartTag 和 w:moveTo 内容并继续忽略 w:del 与 w:moveFrom;MinerU HTML 表格单元支持解码 ' 及合法数字字符实体(并转义 |、保留非法码点原样);SRT/WebVTT 解析器会在无空行的连续字幕间按时间戳行正确切分,同时保留纯数字字幕正文与 NOTE/STYLE/REGION 块。
    未验证:11 分钟全量测试套件(node scripts/test.mjs --fast)及桌面/浏览器端真实导入冒烟;已通过相关解析器回归测试、边界测试、lint、typecheck、changelog、test-audit 与构建检查。
  • 把五组只检查源码文本的测试改成了实际操作界面的行为验证。 待办看板输入与备忘、复习全书原文编辑器、考试教练数字输入与阶段切换、案例分析卷设置与跳到空题、创建题组配额与参考题提示、语音输入就绪重检、任务即时控制与忙碌锁定、带学暂停和继续、阅读器标记提示、焦点恢复及全局提示区域,现在都会真实挂载组件与操作流程来验证行为,不再只匹配源码文字。未验证:真实浏览器、DSH 和桌面版中的实际交互。
  • 学法与专注记录编辑、恢复与补齐确认、目录已读切换及多处辅助标签现在能稳住键盘焦点并让读屏器读到有效控件。
    • 在课程设置里点「改学法」或在专注时长里改单条记录时,焦点会自动进到输入框;按 Esc 只关掉当前内联编辑(不会顺带关掉外层课程设置弹窗),取消或保存完成后焦点会回到原本点开的按钮。
    • 在「自动恢复点」取消「恢复到这一天」、在「章节准备度」取消或开始「补齐」、或在阅读器目录点已读对勾标为未读后,焦点会回到对应的按钮或目录行,不再落回页面空白处。
    • 资料选择器的展开按钮、阅读器「追问」按钮、模型用量估算明细按钮在收起时不再指向未展开的面板,目录筛选框、「也可以」分组、闪卡载入答案提示与复习调度说明图标也补齐了正确的语义角色与名称。
    • 未验证:仅在 Node 的交互渲染与静态标记测试中验证,未在真实桌面客户端、DSH 界面或真实读屏器(NVDA / VoiceOver)中逐一点击验证。
  • 损坏或截断的 M4A 音频不再触发内存溢出崩溃或未捕获的越界异常。 parseM4a 现会在分配采样数组前校验各 atom 盒长度、版本化头部长度(mvhd、mdhd)、采样表边界(hdlr、stsd、stsz、stts、stco/co64、stsc)及固定帧大小 stsz 的帧数上界,统一抛出可读的 M4aError(M4A_UNREADABLE)。未验证:完整全量测试套件(npm test)及真实宿主端到端音频导入(npm run qa:dsh)。

这版尚未完成体验通道一整天的实测,原 agy 环境中的真实模型恢复也尚未验证。Windows 桌面端首次扫描 CLI 时,模型设置区仍可能暂时空白。从 agy 切换到 Codex 时,「一键启用」仍可能持续转圈。#2116