[Kalamos Devlog] After Open-Sourcing: v0.2 to v0.7 Feature Evolution and Using Multi-Agents to Review External PRs
DEV Community

[Kalamos Devlog] After Open-Sourcing: v0.2 to v0.7 Feature Evolution and Using Multi-Agents to Review External PRs

Recap

In the previous dev log, I used Herdr with Claude Code as PM and two worktree coder Panes on the right to build Kalamos, a Typora-style Markdown editor, from scratch in three days - completing milestones M1-M3, open-sourcing it under MIT, and shipping the first official release, v0.1.1.

I originally thought that after open-sourcing it, I would just slowly patch and polish things on my own.

Unexpectedly, just one day after making the repo public, not only did I start using Kalamos for daily writing - filling in everyday essentials as I went (search, menus, tabs, quick open) - external contributors from the community showed up right away: @mingchuanhuang-xpc submitted a Windows port PR, and @narumiruna sent a rapid-fire series of PRs covering Biome, Changesets, Issue/PR templates, AGENTS.md, Ctrl+scroll zoom, YAML document info, a multilingual UI, and even a web version prototype.

In just a few days, the project moved from v0.1.1 all the way to v0.7.0.

The development rhythm after open-sourcing is completely different from building behind closed doors: on one hand, you have to maintain your own product pace; on the other, you need a PR workflow that upholds quality and security while treating external contributors well.

This post focuses on three topics:

  • The feature evolution timeline from v0.2 to v0.7, along with interesting bugs caught during review and hands-on testing for each major feature.
  • The review and takeover workflow for external contributor PRs (the centerpiece of this post): how to use Claude Code for review, have the maintainer make the call, let a Gemini coder take over while fully preserving original author attribution, and why we decided not to build the web version for now (#114).
  • Evolution of the release process and toolchain: adopting Biome (and hitting the Windows CRLF trap), Changesets automated version PRs, fixing sync-version breaking JSON formatting (#110), and stripping redundant commit hashes from CHANGELOG.md.

I'm splitting this update into three posts: this one covers feature evolution, external PR collaboration, and the release workflow; the next two will dive deep into Things to Watch Out for in the Windows Implementation (corresponding to v0.4.0) and Things to Watch Out for with In-App Auto-Updates (corresponding to v0.8.x).

1. Post-Open-Source Feature Evolution: Timeline from v0.2 to v0.7

Let's start with a timeline showing how Kalamos grew step by step after v0.1.1 from "something I can write articles in" into "a desktop editor I can't live without every day":

Version Date (Taiwan Time) Core Features & Related Issue / PR Representative Issues Caught in Review / Testing v0.2.0 2026-11-22 Single-file find & replace (#73 / #76), folder search (#77), native macOS menu bar & preferences (#74 / #78) #76 In-table search couldn't rely solely on CodeMirror native decorations; #78 Preferences display: flex overrode the hidden attribute v0.3.0 2026-11-23 (UTC 11-22) Multi-document tabs (#81, split into #82 A and #83 B) #83 Cmd+Q interception: switched to a custom action + quit_app, but tao cannot intercept right-click Quit from the Dock v0.4.0 2026-11-23 (UTC 11-22) Windows 10/11 support (#94, #97, taking over @mingchuanhuang-xpc's #79) & cross-platform tag auto-release (#93) See details in the next dedicated post on the Windows implementation v0.5.0 2026-11-23 Cmd+P quick open & recently opened list (#104 / #106), workflow hardening, Biome & Changesets (#99-#102) Lightweight list_markdown_paths avoids reading file contents, keeping fuzzy search under 16ms across 10k files; Biome clashed with Windows CRLF v0.6.0 2026-11-24 Ctrl + scroll wheel zoom (took over @narumiruna's #112 β†’ #116; not released separately, shipped together with v0.7.0) Stepping one zoom level per wheel event caused trackpads and high-res mice to jump straight to 50% / 300% v0.7.0 2026-11-24 YAML document info preview (took over #123 β†’ #126), Traditional Chinese & English UI (took over #125 β†’ #128) #126 Backspace eating a hidden newline; #128 supply chain risk of i18next released just one day prior; follow-up #131 error toast cleared by setTimeout

Every release had fascinating engineering details. Here are a few of the most memorable moments from the review trenches.

v0.2.0: Find & Replace (#73) + Native Menus & Preferences (#74)

As soon as I started using Kalamos for daily writing after open-sourcing it, two glaring gaps stood out immediately: no Cmd+F search, and no native macOS top menu bar or Cmd+, preferences.

As usual, we split #73 into two PRs - "single-file find & replace (#76)" and "sidebar folder search (#77)" - while #74 (#78) added the native menu bar, a dispatcher preventing duplicate shortcut triggers, and a four-tab preferences window with live updates all in one go.

Interesting issue (#76 Search inside tables): Kalamos's visual tables are custom contenteditable widgets. Highlighting search matches in normal paragraphs works fine with @codemirror/search, but whenever a keyword falls inside a table cell, CodeMirror's native highlight cannot draw into the widget's internal DOM at all.

The final solution combined the CSS Custom Highlight API to independently highlight matching ranges inside table cells, and extended the existing focusTableCell to accept a selection range so jumping to that match moves focus right into the cell and selects the text.

We also disabled search triggers during IME composition and grouped Replace All into a single transaction (so one Cmd+Z undoes everything).

Real-world gotcha caught along the way (#78 Preferences): Unit tests and E2E tests originally only checked the hidden attribute on tab panels. The moment I opened the real app and clicked between tabs, all four panels stacked on top of each other without switching at all!

It turned out .k-pref-panel had display: flex, whose CSS specificity directly overrode the native HTML hidden attribute. After fixing it, we immediately updated the E2E tests to assert actual visibility instead of fooling ourselves by checking attributes.

v0.3.0: Multi-Document Tabs (#81)

Following Typora's convention, the tab bar stays hidden when only one document is open, and appears once you press Cmd+T / Cmd+N to open a second document.

Each tab independently preserves its content, Undo history, cursor, scroll position, and search state, supporting drag-to-reorder, middle-click close, and unsaved indicator dots.

This was likewise split into two merges: the core tab model (#82), and file-opening rules, menus, and window-close checks (#83).

Interesting issue (#83 Cmd+Q interception & framework boundary): Once multi-document tabs existed, hitting Cmd+Q while background tabs still held unsaved drafts would silently lose data.

We switched Cmd+Q from the system's predefined quit item to a custom menu action that first scans all tabs on the frontend, lists unsaved documents (offering "Save All / Don't Save / Cancel"), and only calls the new Rust command quit_app once confirmed.

However, digging down during review revealed a framework boundary: Tauri's underlying tao does not expose macOS's applicationShouldTerminate event, meaning right-clicking "Quit" on the Dock icon or logging out/shutting down cannot be intercepted by the app itself.

Instead of pretending it was solved, we documented this limitation honestly in the Release Notes and test checklist, and minimized data loss risk through "auto-save for named files + periodic recovery snapshots for untitled tabs."

v0.5.0: Cmd+P Quick Open (#104 / PR #106)

Once a blog or notes folder grows large, clicking through nested sidebar folders gets too slow, so we added a VS Code-style Cmd+P / Ctrl+P quick open palette: fuzzy search across Markdown files in the current folder, prioritizing filename matches with highlighted characters; when the input is empty, it immediately lists the 20 most recently opened files (valid across folders, synchronized with the "File > Open Recent" submenu).

The performance design also deliberately sidestepped a common pitfall: the sidebar's existing list_files reads every file's contents to generate snippets, which slows down on large directories.

PR #106 added a lightweight Rust command, list_markdown_paths, that only returns relative paths without reading file contents (skipping hidden folders and node_modules, not following symlinks, capped at 20,000 entries).

The frontend caches the list and only rescans when opening a new folder or receiving a filesystem watch event - keeping every fuzzy search across 10,000 files within ~16ms, and ensuring pressing Enter during Chinese Zhuyin IME composition won't accidentally open a file.

v0.6.0 / v0.7.0: Scroll-Wheel Zoom, YAML Document Info & Bilingual Chinese/English UI

All features across these two versions (v0.6.0 wasn't released standalone; its changes shipped together in v0.7.0) were originally proposed and implemented by external contributor @narumiruna, then reviewed, taken over, and refined by us before merging into main.

Review caught some remarkable subtleties in every single one:

  1. Ctrl + Scroll-Wheel Zoom (#112 β†’ #116): Trackpads & High-Res Mice Shooting Straight to the Extremes

    The original PR had a clean architecture, reusing the existing zoom state and ZOOM_LEVELS (50%-300%) while keeping the preventDefault() conditions tight. Yet as soon as the Reviewer looked at onZoomWheel, an issue jumped out: it stepped a full zoom level on every single wheel event.

    That works fine on a traditional notched scroll wheel, but on macOS trackpads, Magic Mouse, high-resolution / free-spinning mice, and Windows Precision Touchpad pinch-to-zoom gestures (where Chromium / WebView2 synthesizes pinch gestures into dozens of tiny-deltaY ctrl+wheel events), a single gesture fires dozens of events and blasts the screen from 100% straight to 300% or 50%.

    After taking over, we normalized deltas by deltaMode (LINE Γ—40, PAGE Γ—800) and accumulated roughly 100px before stepping one level, resetting on direction reversal or a 300ms pause, plus adding a unit test verifying that "10 consecutive small deltas step only one level."

  2. YAML Document Info Preview (#123 β†’ #126): Backspace Eating an Invisible Newline

    When writing Jekyll, Hugo, or Astro posts, there's always a YAML Front Matter block at the top of the file. This feature renders valid YAML in live preview as a crisp "Document Info" card supporting lists and nested fields; clicking it lets you edit the raw text inline, while saving leaves the original Markdown bytes untouched (including comments and CRLF).

    Interesting issue (#126 Backspace eating a hidden newline): While reviewing #123, the Claude Code Reviewer didn't just eyeball the diff - it wrote 6 temporary Playwright edge-case probe scripts and immediately uncovered an extraordinarily subtle interaction bug: when the first line of body text immediately follows the closing --- (e.g., ---\ntitle: a\n---\n# H), placing the cursor at the start of # H and pressing Backspace once deletes the invisible newline \n behind the card, fusing the source into ---# H - breaking the closing fence and making the entire document info card suddenly vanish into plain text!

    The takeover PR #126 patched this boundary: when pressing Backspace at preview.to + 1 (or pressing Delete inside the hidden range), it intercepts the deletion, expands the block into edit mode, and places the cursor on the closing fence instead of eating the hidden newline.

    While we were at it, we also rendered YAML null values as - (distinguishing them from empty strings "") and switched the yaml package to a lazy import, trimming roughly 33 KB gzip off the main bundle.

  3. Traditional Chinese & English UI (#125 β†’ #128): Supply Chain Risk from a Day-Old i18next Release

    Originally, Kalamos's UI and native menus were hardcoded in Traditional Chinese. With English, Japanese, and Korean READMEs already live, adding a multilingual interface was a natural next step so non-Chinese users could use the app comfortably.

    PR #125 had a very clean overall design: a single flat JSON dictionary shared by frontend and backend, locking the active locale at startup, and separate locking for config file reads/writes.

    Interesting issue (#128 Supply chain risk & over-dependency): Checking package publish dates in package.json, the Reviewer immediately flagged a Blocker: the newly added dependency i18next@^27.2.6 had just been published yesterday (2026-11-23) and used a ^ range - a textbook supply chain risk.

    Moreover, reading through the diff showed that the entire project only needed t() to look up flat keys, interpolation, and fallback - none of i18next's massive plugin or pluralization machinery (the Rust side already did its own dictionary lookup).

    So when taking over in PR #128, we decisively removed i18next and replaced it with a tiny, custom, type-safe t() guarded by keyof typeof zhTW - zero external dependencies, dictionary key typos caught at tsc time, plus a Rust unit test checking that every with_message_key exists in both dictionaries.

    We also took the chance to default the UI language to "follow system language when unset (sys-locale crate: zh* uses Traditional Chinese, all others English)" while keeping backwards compatibility for existing users' saved configs.

  4. Bonus Follow-Up (#131): Error Message Wiped Out in an Instant by setTimeout

    After #128 merged into main, we noticed the E2E test interface-language.spec.ts occasionally turned red (failing roughly 3 out of 25 runs): the test mocked a "failed to save interface language" error and expected the screen to display "η„‘ζ³•ε„²ε­˜δ»‹ι’θͺžθ¨€οΌŒθ«‹ε†θ©¦δΈ€ζ¬‘。" ("Could not save interface language, please try again."), yet read back an empty string.

    The worst thing you can do with a flaky test is bump the timeout or slap a retry on it to hide the symptom. We sent a coder to dig for the root cause and sure enough uncovered a real app race condition: When the Preferences window opens, the app schedules a setTimeout(..., 0) to sync menu state, which calls preferences.sync().

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.