mslxl is Contributing…

Summary
- Keyboard shortcuts for new problem, close/next/previous tab, toggling the Problems/Testcases/Terminal panels and running all testcases. They are listed in the File/View menus and on the welcome page.
- Replace Tauri's default macOS menu with the same menu minus "Close Window", so ⌘W closes the editor tab instead of the whole window.
- Problem list: header toolbar, always-visible search, empty state, inline rename (Enter saves, Escape cancels), confirmation before delete, highlight and auto-expand of the open solution, numbered default names ("Unnamed Problem 2", ...), and no repeated names in tab titles.
- Testcases: compact items with status badges, delete confirmation, compiler errors in a scrollable box, clickable pass summary, clearer Run All controls; the unused Debug button is removed.
- Welcome page: New Problem now creates a problem; adds recent workspaces and a shortcut list.
- Visuals: dark themes add the
darkclass, readable text on light accent colours, active markers on sidebar buttons and tabs, panel minimum sizes, larger default window with a minimum size. - Fixes:
deepenColorcould produce invalid colours, misnameduseTestcaseDeleterhook, "Unamed" typo; resetting the workspace now asks for confirmation.
Test plan
-
tsc --noEmit, ESLint and rustfmt pass - Checked manually in
tauri devon macOS: welcome page, creating a problem, adding and running a testcase, context menu and delete dialog, ⇧⌘E / ⇧⌘T / ⌃` / ⌥⌘N / ⌘W, numbered names and auto-expand - Not yet checked by hand: rename, Exit dialog, View menu, middle-click to close a tab, ⇧⌘↩, ⌃Tab, dark themes, workspace selector page
🤖 Generated with Claude Code

What changed
- Bundle and verify clangd during builds for supported targets.
- Add macOS Terminal.app execution for detached programs.
- Improve macOS JDK discovery and Unix command lookup.
- Keep other language servers on managed installation.
Verification
cargo check --manifest-path src-tauri/Cargo.tomlcargo test --manifest-path src-tauri/Cargo.toml(47 passed)git diff --check

Stabilize UI tests against locale changes by querying semantic business attributes and DOM structure instead of translated labels. Add stable selectors at UI boundaries where needed, and correct portal and hidden-state assertions.\n\nValidation: editor tests (70 Node + 355 browser), lint, and typecheck pass.

Summary
createDesktopPaths
dev: repository/.dev (database, Shelf caches, library, assets, backups)
packaged: Electron userData + platform cache paths
desktop runtime: consumes the resolved path set
Desktop runtime no longer reads MEMORILO_DATABASE_PATH or MEMORILO_SHELF_BOOK_CACHE_PATH.
Evidence
@memorilo/desktop-mainlint and typecheck pass.git diff --checkpasses.
Merge Danger
Door: Two-way
Blast Radius: Desktop storage paths; development Shelf book cache is now kept under .dev.

Involved Issue / 该 PR 相关 Issue
No linked issue
Example for the Proposed Route(s) / 路由地址示例
/github/user_event/mslxl
New RSS Route Checklist / 新 RSS 路由检查表
- New Route / 新的路由
- Follows Script Standard / 跟随 路由规范
- Anti-bot or rate limit / 反爬/频率限制
- If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
- Date and time / 日期和时间
- Parsed / 可以解析
- Correct time zone / 时区正确
- New package added / 添加了新的包
-
Puppeteer
Note / 说明
PushEvent entries now point at the compare view instead of a single commit:
https://github.com/{repo}/compare/{payload.before}..{payload.head}
A push containing several commits used to be linked to its last commit (payload.commits.at(-1)) before, so the linked page only showed that one commit. The changes from the earlier commits in the same push were missing. Now all commit are included

What changed
- Render Todo editor content as inline-styled HTML for
X-ALT-DESC;FMTTYPE=text/html. - Keep
DESCRIPTIONand normalizedSUMMARYas plain-text fallbacks. - Inline managed PNG, JPEG, GIF, and WebP assets as data URIs when available.
- Reject remote image fetching and fall back to alt text for unavailable or oversized assets.
Validation
@memorilo/editortypecheck and lint@memorilo/sync-servertypecheck and lint- Existing editor ICS tests
- Existing sync-server Todo/ICS tests

Old description
When Codex is operated in Lody or other tools using acp-extension-codex, its UA is acp-extension-codex/<version> rather than codex/*.
The main purpose of this PR is to add support for Lody
Description from LLM
Requests with acp-extension-codex as their User-Agent product are now recognized as Codex. This is LodyAI's ACP adapter for the real codex app-server: when the ACP host supplies no clientInfo, the adapter sends its package name, which Codex uses as its originator and User-Agent prefix. The version after / is Codex's version, not the adapter's.
Observable changes:
- Usage and Routing show these requests as Codex.
/v1/modelsapplies the Codex agent's model visibility throughcatalogFor.- An unserved model uses Codex's stand-in rules through
agent.StandIn, reading~/.codex/config.tomlunder magpie's HOME when that config routes Codex through magpie. This fits Lody's default Codex home; a differentCODEX_HOMEis not followed. - Keyed Responses and Chat relays receive the client's own User-Agent, originator and session/thread headers through
codexClientHeader, instead of magpie's User-Agent.fromCodexalso recognizesoriginator: acp-extension-codexwithout a User-Agent; originator alone does not change usage attribution.
Hosts passing their own names, such as JetBrains or Lody's sign-in step (lody), are not covered by the added product name.
Implementation and references: internal/agent/codex.go (codexIn), internal/gateway/gateway.go (agentOf, catalogFor, fromCodex, codexClientHeader), internal/agent/claude.go (StandIn), and docs/subsystems/agent-wiring.md / docs/subsystems/gateway-routing.md.
Verification on the local working tree based on 36a6009, with Go 1.26.8:
- Added the captured Codex 0.160.1 User-Agent to
TestCodexStandIn, plusTestFromCodexcases for that User-Agent and the adapter's originator alone. OpenCode andlodyoriginators remain outside the added recognition. - With both recognition additions removed through a Go overlay,
TestCodexStandInfails with agent"acp-extension-codex"; both adapter cases inTestFromCodexfail withfalse, want true. Restoring the additions passes both tests andTestCodexHeadersReachKeyedRelay. go test -tags nogui ./...andgo vet ./...passed under a temporary HOME with caches pinned to temporary copies. Bun-dependent plugin tests skip because Bun is unavailable.go vet -tags nogui ./internal/agent ./internal/gatewaypassed for Linux and Windows; Darwin is covered by the full vet run.- Darwin
go build, Linuxgo build -tags nogui(CGO disabled for cross compilation), and Windowsgo buildpassed. Darwin emitted C/SDK/linker warnings; no check failed after resolving the test listener restriction and cross-build environment/dependencies. - No GUI browser tests were run; no GUI assets changed. No additional real-client capture was run for this follow-up. The Codex 0.160.1 capture and main-versus-PR relay check are the reviewer's evidence.

Replace the desktop app's placeholder icons with a flat Indexed Journal mark that represents Memorilo's notes, reading, scheduling, TODO, and review workspace.
- Apply the selected artwork to application windows, the macOS Dock, renderer favicons, and platform packaging.
- Add macOS template tray icons with an explicit Retina representation, and use the application icon on other platforms.
- Add PNG support to the renderer protocol so bundled favicons load in production.
- Include the SVG source, generated platform assets, a regeneration script, and the design previews.
Validation completed:
- Desktop production build, targeted lint, and main/renderer type checking.
- Main-process tests: 42 files, 195 tests passed.
- Unsigned macOS directory packaging and hidden-window Electron smoke checks for both the development build and packaged app.
- Verified bundled icon assets, tray image sizes, packaged ICNS, and production favicon decoding.
Windows and Linux assets were generated and inspected; packaged runtime checks were performed on macOS.

Offer Sub2API alongside NewAPI in the custom provider's balance-token hint. Fill /api/v1/user/profile and $data.balance
🎬 界面预览
CI 用这个 PR 的代码构建并真实运行 magpie(沙盒环境,配置了真实的 DeepSeek key),按改动自动操作、截图和录屏 · b438fb2 · 运行记录
改动(按代码):自定义供应商的「余额令牌」提示里,除 new-api 的 /api/user/self 外新增了 sub2api 的 /api/v1/user/profile 快捷按钮:点它会写入余额查询地址,并把余额字段填成该地址对应的表达式($data.balance),提示文案也一并改成同时说明两个接口。
Note
沙盒里看不到:这条提示只在余额令牌缺少可用余额地址、或地址是 …/api/usage/token 时出现;若沙盒里 Sub2API Relay 的余额地址已按自身数据配好,它默认不显示,场景在表单里把地址改成 …/api/usage/token(不保存)才把两个按钮调出来。因此看不到新地址真的去取 sub2api 面板余额的结果(本地 mock 不会按这个地址返回真实数据),也看不到保存后的效果——场景不点保存。
余额令牌提示里的两个快捷地址
展开后的余额查询地址与余额字段
展开后的余额查询地址与余额字段
⚠️ 有 9 步没能照计划执行
- 余额令牌提示里的两个快捷地址 · type .editor .bal-url: nothing visible matches .editor .bal-url (1 in the page)
- 余额令牌提示里的两个快捷地址 · type .editor .bal-url: nothing visible matches .editor .bal-url (1 in the page)
- 余额令牌提示里的两个快捷地址 · type .editor input.bal-url: nothing visible matches .editor input.bal-url (1 in the page)
- 余额令牌提示里的两个快捷地址 · type input[aria-label="名称"]: nothing visible matches input[aria-label="名称"] (0 in the page)
- 余额令牌提示里的两个快捷地址 · type input[aria-label="Base URL"][type="url"]: nothing visible matches input[aria-label="Base URL"][type="url"] (0 in the page)
- 余额令牌提示里的两个快捷地址 · type input[type="password"][aria-label="账户余额"]: nothing visible matches input[type="password"][aria-label="账户余额"] (0 in the page)
- 余额令牌提示里的两个快捷地址 · shot .editor .bal-fix: nothing visible matches .editor .bal-fix (0 in the page)
- 余额令牌提示里的两个快捷地址 · click .editor .bal-fix button: nothing visible matches .editor .bal-fix button with "/api/v1/user/profile" (0 in the page)
- 余额令牌提示里的两个快捷地址 · shot .editor details.more: nothing visible matches .editor details.more (0 in the page)

Summary
- Split the existing Sync Server and P2P settings workflows.
- Add Sync Server setup, status, pairing, and alert UI.
- Refine theme selection, Windows native menu visibility, and settings card spacing.
Validation
- Renderer ESLint
- Renderer typecheck
- Sync Server settings tests
- Settings renderer tests

Summary
- Unify platform sync exchange payloads on Protobuf.
- Add the shared Memorilo sync schema and TypeScript/Rust codecs.
- Update desktop, sync server, provisioning, BLE, serial, MQTT, LAN, and journal paths.
- Preserve existing protocol IDs and framing while dropping legacy JSON wire compatibility.
Verification
- NOTE4C Rust tests: 101 passed.
- Device provisioning tests: 12 passed.
- Desktop renderer tests: 104 passed.
- WebSocket server restart test: passed in 3 consecutive runs with a 90-second test timeout for its bounded reconnect wait.
- Protobuf journal round-trip coverage added.
git diff --checkpassed.
Review
- Claude Opus 5.5 code review: approved.
- Claude Opus 5.5 code quality and reuse review: approved.

Summary
- Add an explicit Typst fallback policy with preserve and throw modes.
- Keep production fallback behavior while making unhandled nodes and marks fail in coverage tests.
- Cover all registered editor schema nodes and marks, including table nodes.
Verification
- Editor Node tests: 65 passed
- Editor TypeScript check passed
- Targeted ESLint passed

Summary
- fix Outline marker alignment for inline math
- center block math rendered through KaTeX MathML
- add Electron E2E reproduction coverage and remove ELECTRON_RUN_AS_NODE from the launch environment
Verification
- @memorilo/editor typecheck
- @memorilo/editor lint
- @memorilo/desktop-e2e typecheck
- @memorilo/desktop-e2e lint
- Electron E2E reproduction confirmed the original regressions; the final packaged rerun was blocked by unavailable GitHub access while downloading the Electron binary.

Summary
- Preserve task metadata when copying editor content between Pages.
- Add a full Electron E2E regression that reads all registered Slash menu components dynamically, includes todo, doing, and done tasks, copies them to another Page, and verifies persistence.
- Recover P2P journals when the local device identity changes.
- Remove Electron run-as-Node inheritance from E2E launches.
Verification
@memorilo/desktop-e2elint passed.@memorilo/desktop-e2etypecheck passed.- Focused Electron E2E was attempted with temporary SQLite and user-data directories; Electron 43 aborted during process launch on the current macOS host before the test ran.

Summary
- expose Todo ICS feeds at
/calendar/<secret>.ics - add device token issuance, rotation, and revocation endpoints
- support timezone, rolling windows, completed/undated filters, recurrence, ETag, and 304 responses
- add end-to-end feed and device Todo integration coverage
Verification
- sync-server tests pass
- sync-server lint passes
- sync-server typecheck passes

Remove 9 test files that provide minimal value to focus on core business logic testing.
Changes
- Removed 3 low-value tests (mock-only, incomplete coverage, trivial logic)
- Removed 6 unnecessary lifecycle/infrastructure tests
Deleted Tests
Low-Value Tests (3)
application-menu.test.ts- Only verified mock calls without testing menu structurenote-learning-cards.test.ts- Incomplete coverage (only tested empty cards scenario)bound-reader-presentation.node.test.ts- Trivial string concatenation test
Unnecessary Tests (6)
panel-toggle-state.test.ts- Unnecessary state machine testtray-controller.test.ts- Unnecessary tray interaction testsettings-window.test.ts- Unnecessary window lifecycle test (393 lines)note-save-coordinator.test.ts- Unnecessary coordinator testbootstrap-renderer.node.test.ts- Unnecessary bootstrap lifecycle testnote-persistence-provider.test.tsx- Unnecessary persistence provider test
Result
- Remaining tests: 112 (down from 121)
- Test quality: 100% focused on core business logic
- Lines removed: ~700+ lines of test code
Impact
- Cleaner test suite focused on valuable coverage
- Reduced maintenance burden
- Faster test execution
🤖 Generated with Claude Code

Summary
- Replace renderer user-agent checks with an Electron platform bridge.
- Align Windows titlebar, sidebar, navigation, and native menu behavior.
- Synchronize sidebar and navigation animations.
- Remove the duplicate Journal title divider.
Verification
- Renderer lint, typecheck, and tests pass.
- Desktop main lint and typecheck pass.
- One existing Windows file-permission assertion remains in the desktop-main test suite.
Supersedes the closed PR #40 after the branch rename.

Summary
This PR contains the complete feat/note4-device-todo-sync branch relative to main, not only the final refactor commit.
Desktop
- Add the unified device settings workflow with automatic discovery and refresh.
- Support both Web Bluetooth and USB serial provisioning through the same UI.
- Add device configuration, Wi-Fi network selection (including hidden SSIDs), Todo synchronization, time-zone/time synchronization, and gallery management.
- Add gallery image conversion, cropping/fit handling, upload progress, idle/fullscreen behavior, and device refresh/error states.
- Add provisioning lifecycle, diagnostics, persistence isolation, and focused renderer/main/preload tests.
Firmware
- Add the Rust ESP32-S3 application, display/input/power lifecycle, persistence, gallery, networking, diagnostics, and provisioning layers.
- Add BLE and USB serial provisioning with shared protocol behavior.
- Add Todo snapshot synchronization and RTC/time-zone synchronization.
- Add device settings, storage handling, gallery transfer, and hardware-facing tooling.
Services and protocol
- Add the shared device-provisioning protocol and serial transport implementation.
- Add sync-server Todo storage, read/update APIs, and notification publishing.
- Add database migrations, schemas, acceptance documentation, and protocol test vectors.
Verification
- Desktop renderer typecheck and lint pass.
- Focused provisioning/device-settings/gallery tests pass.
- Official ESP32-S3 hardware build via
flash-firmware.ps1 -Variant hardware -WhatIfpasses, including image generation, partition capacity validation, and SHA-256 validation. - ESP-IDF 5.5.2 linker/toolchain cache restored and verified.

Linked issue (required)
Fixes #5716
Summary / motivation (required)
During a full download, Anki loads the whole collection into memory before saving it to disk. With a large collection, iOS can kill the app partway through the sync because of OOM. See #5716 for details.
This PR streams the download straight into the temporary file instead, so memory usage no longer grows with the collection size.
Steps to reproduce (required, use N/A if not applicable)
- Set up a self-hosted
anki-sync-server, and put a large enough collection database(My collection is ~3GiB) - On AnkiMobile or Amgi, with an empty local collection, point the client to the self-hosted server
- Start full sync, and then it get killed because of OOM
How to test (required)
- Pointed Amgi's
anki-upstreamsubmodule at this branch, then ran a full download of a ~3 GiB collection from a self-hosted sync server on iOS. The app no longer gets killed for running out of memory, and the sync completes. AnkiMobile is close-source so I can not test it. - Built and ran Anki desktop from this branch. It starts and works normally.
- Ran the
cargo test -p anki --lib sync::
Checklist (minimum)
- I ran
./ninja checkor an equivalent relevant check locally. - I added or updated tests when the change is non-trivial or behavior changed.
Before / after behavior (optional)
Before: A full download loads the whole collection into memory before saving it, so on iOS, syncing a large collection (e.g. ~3 GiB) can get the app killed for running out of memory.
After: The collection is saved to disk as it downloads
Measured peak memory while downloading a 512 MiB collection from a LAN server: it dropped from about 534 MB to about 22 MB with Amgi.
Scope
- This PR is focused on one change (no unrelated edits).

Move the default development database, its assets and backups, configuration, sync journal, sync-server credentials, and shelf image database into repository-local .dev. Preserve packaged application paths and explicit path overrides.
Ignore .dev and clear inherited ELECTRON_RUN_AS_NODE in .envrc. Package scripts, embedding paths, and packaging configuration are unchanged.
Validation: desktop-main typecheck and targeted ESLint passed; existing main-process tests passed (39 files, 177 tests). Development startup with the inherited variable cleared created the database, configuration, journal, and shelf image cache under .dev. Full UI workflows and Electron E2E were not run; automatic direnv loading requires local authorization and remains unverified.

Summary
- Attach inbound libp2p WebSocket upgrades to the existing HTTP server on port 6000.
- Remove the internal peer listener,
peerPort, andMEMORILO_SYNC_SERVER_PEER_PORT. - Document the single-port container configuration and GHCR environment variables.
Breaking Change
Strict JSON configuration containing peerPort and the legacy peer-port environment variable is rejected.
Verification
pnpm --filter @memorilo/sync lintpnpm --filter @memorilo/sync typecheckpnpm --filter @memorilo/sync testpnpm --filter @memorilo/sync-server lintpnpm --filter @memorilo/sync-server typecheckpnpm --filter @memorilo/sync-server test- Full
pnpm typecheckandpnpm test
Full repository lint remains blocked by the pre-existing import-order error in packages/srs/src/optimizer.ts.

Summary
- simplify Effect orchestration, resource lifecycles, and repeated error handling
- replace repetitive branching and defensive wrappers with typed mappings and shared helpers
- consolidate Todo UI metadata, sync object-store validation, periodic workers, and reading-model validation
Verification
pnpm lintpnpm typecheckpnpm test- affected-package TypeScript, ESLint, and focused test suites
git diff --check

SubMiner integrates Yomitan with MPV - featuring one click Anki mining, realtime subtitle annotations, and immersion tracking.
Repo: https://github.com/ksyasuda/SubMiner
Things done
- Built on platform:
- x86_64-linux
- aarch64-linux
- aarch64-darwin
- Tested, as applicable:
- NixOS tests in nixos/tests.
- Package tests at
passthru.tests. - Tests in lib/tests or pkgs/test for functions and "core" functionality.
- Ran
nixpkgs-reviewon this PR. See nixpkgs-review usage. - Tested basic functionality of all binary files, usually in
./result/bin/. - Nixpkgs Release Notes
- Package update: when the change is major or breaking.
- NixOS Release Notes
- Module addition: when adding a new NixOS module.
- Module update: when the change is significant.
- Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.
- Follows the automation/AI policy.

Goal
Introduce a new browser-based frontend that runs against the Java backend (network APIs), while reusing as much of the existing Tauri UI code as possible.
Summary
- Extract shared UI/app logic into packages/app so both Tauri and browser shells use the same code.
- Keep apps/client as the Tauri shell and add apps/web as the browser shell that targets the Java backend.
- Centralize shared Vite plugins/config in @memorilo/vite-config and align both shells to use it.
- Update build/dev scripts and Tauri config to support the split and shared assets.

This PR improves macOS packaging to ensure Tauri bundles are runnable on systems without Nix. It introduces a robust post-build step that copies required dylibs into the app bundle, normalizes install names to @rpath, and patches both the main executable and bundled dylibs. A fail-fast guard prevents shipping artifacts that still reference /nix/store. The dev shell now prioritizes the wrapper to guarantee the fix is applied consistently, and the logic is documented for easier maintenance and future extensions.
- Bundle
libiconv.2.dylibandlibcharset.1.dylibinto Contents/Frameworks - Patch dependencies in both the app binary and bundled dylibs to use
@rpath - Abort the build if any
/nixpaths remain in linked libraries - Ensure the wrapper is used during cargo tauri build in the macOS dev shell
- Add clarifying comments to improve maintainability

This PR adds a local document storage pipeline for Topic notes in the Tauri app, including live update streaming between the native layer and the webview. It also introduces an About page for diagnostics and updates editor build tooling.
Key changes
- Native layer: doc_updates/doc_nodes schema and DocState with LRU caching, watch/broadcast, and debounced topic-tree syncing.
- Tauri commands: doc CRUD, topic creation, watch/unwatch streaming, and topic-specific updates.
- Webview UI: Editor integration and /note/$docId route; Topic nodes open the associated doc.
- UI: About page with app metadata and document stats.
- Tooling: editor build pipeline and dependencies (including loro-prosemirror).


This PR refactors the core syntax highlighting mechanism to strictly use token-based generation, removing the reliance on intermediate HTML strings.
It also brings project dependencies up to date.
I'm not sure if this code snippet covers all edge cases; you might need to review it carefully.






