Skip to content

v0.22.1

Choose a tag to compare

@Kaiji-Z Kaiji-Z released this 22 Aug 13:34
· 34 commits to main since this release

v0.22.1 is a polish and hardening round. The companion gets a clearer thinking pose, formula fonts render with the right typeface again, startup loads noticeably less, and every high-severity dependency advisory in the production tree is cleared.

The companion now rests its chin when thinking. While the AI is writing a streaming answer, the companion used to tilt its whole body by a few degrees, and floating in mid-air that tilt read like it had drifted off course. It now props its chin on one hand with a slow, small head sway, body level, hover animation untouched. The "right here" gesture it makes at your friction spots uses the same pose. The banking lean it does while flying keeps its old meaning, so the two no longer mix.

Formula fonts are back to the math typeface. A missing font-src entry in the content security policy was quietly blocking the fonts KaTeX bundles into its CSS. Formulas still rendered, but in a system serif instead, on desktop and in phone web mode alike. The policy now allows those inline fonts, and a regression test locks this together with the older inline-image rule.

Startup loads about 30% less. The renderer entry chunk went from 397KB to 276KB gzipped. Screens you will not open at launch, such as settings, exams, course search, mind maps, and the blackboard canvas, now load the first time you open them. The math rendering stack, the single heaviest library in the entry, only loads for content that actually contains formulas. The always-on companion, the interface dictionary, and the base markdown pipeline stay resident as before, and the phone web mode benefits from the same diet.

Dependency advisories cleared. All four high-severity findings in the production dependency tree are fixed without a single breaking upgrade, covering drizzle-orm, undici, and the PDF engine bundled inside the document parser. A handful of low-severity findings remain upstream in the AI SDK line this project is locked to, and they will follow once upstream ships the fix.


v0.22.1 是一轮打磨与加固。伴学想事情的样子更清楚了,公式的字形修好了,启动少加载三成,生产依赖里的高危通告全部清零。

思考改托腮。 AI 流式回答期间,伴学原来是整机歪头五度,悬浮在半空时这个角度看着像飞歪了。现在换成一只手托住下巴,头部缓缓小幅摆动,身体保持水平,悬浮浮动照旧。它指着卡点说「就是这里」时也用同一个姿势。飞行动作的倾侧保留原义,两种姿态不再混在一起。

公式字体恢复原样。 安全策略里缺了 font-src 一项,KaTeX 随 CSS 打包的内联字体一直被静默拦下。公式照常显示,只是字形退成了系统衬线体,桌面和手机网页模式都一样。现在放行了这些内联字体,回归测试把这条和更早的内联图片规则一起锁死。

启动少加载三成。 渲染层入口从 gzip 397KB 降到 276KB。设置、考试、课程搜索、脑图、黑板画布这些启动时还用不到的界面,改成第一次打开时才加载。数学渲染那套库是入口里最重的一件,现在只有内容里真有公式才会去拉。常驻的伴学、界面词典和基础 markdown 管线照旧不动,手机网页模式同样受益。

依赖通告清零。 生产依赖树的四条 high 全部修掉,没有一次破坏性升级,涉及 drizzle-orm、undici 和文档解析器内嵌的 PDF 引擎。剩下的几条 low 都在项目锁定的 AI SDK 上游,等上游修复后跟进。