Skip to content

Land the reviewed release batch: coverage, Analytics fixes, native readiness - #243

Merged
BunsDev merged 94 commits into
mainfrom
release-batch
Oct 15, 2026
Merged

BunsDev merged 94 commits into
mainfrom
release-batch

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Lands the reviewed release batch for v0.1.0 on main. Val decided on 2026-10-15 that the release includes Images and Plugins (#236), which is already on main.

What this adds to main

Source: Codex's reviewed batch #242 (notes-final-review 9322bb2), merged with main at a2140e6. The batch passed build, coverage, 307 desktop E2E tests and 7 website tests on its own tree. Conflicts were resolved in support.ts and docs/status.md. In the four renderer files, main's existing combination of #236 and the notes changes was kept.

Verification here: pnpm install --frozen-lockfile, pnpm typecheck and pnpm build pass. pnpm run test:coverage is running locally; results will be added as a comment.

After this lands, #242, #239, #235, #228 and #216 can be closed as landed here.

Coven-Harness: Claude Code / claude-opus-5-5

BunsDev and others added 30 commits October 14, 2026 21:58
Claude Code refuses Fable with "You're out of usage credits. Switch to
another model..." before running anything. Modex showed that as an
assistant bubble plus an "unknown" failure card and stopped.

Now, when the refusal arrives before any reply, tool or reasoning, the
runner reruns the turn on Opus in the same session, posts a warning
naming both models, and notes it on Auto's route receipt. Later Fable
turns start on Opus for an hour. A refusal after work started keeps its
failure card, so nothing runs twice. If Opus also fails, the card lists
the fallback under recovery.

The Claude backend drops the CLI's synthetic API-error reply, which the
failed result repeats. The classifier reads "out of usage credits" as
rate limited with its own summary. Settings > General can turn the
fallback off; it is on by default.

Coven-Harness: Claude Code / claude-opus-5-5
Exclude fallback notices from empty-reply detection and revise the open Auto route to the model that actually ran, without learning a user override. Verify cancellation and cooldown expiry. Include current main with the iPhone timing-budget fix.

Coven-Harness: Codex / GPT-6
Keep empty fallback replies retryable and record the actual Opus route without a false user override.

Coven-Harness: Codex / GPT-6
Build and full unit suites pass. Focused UI verification still encounters
intermittent native-show launch timeouts; preserved diagnostics show delayed
actual event delivery under high host load. Keep existing assertions intact
and require fresh CI before landing. Independent integration review cleared.

Coven-Harness: Codex / GPT-6
Each turn that calls a model, Auto or not, now adds one row to
app/usage.jsonl: tool, model, thread, project, account, and the turn's
input, cache reads and writes (summed over every call by UsageMeter) and
output. Prompts, files and replies are never recorded; costs stay null.
A ledger failure is logged and never changes the turn.

The rail's new Analytics icon opens the existing usage dashboard on
those rows. The dashboard keeps its own global styles, so it runs as a
separate document in a WorkspaceBrowser view served from
modex-analytics://app/ in an in-memory session, with the rows at
usage.json and every other request refused. Its Demo Data wording now
appears only in the standalone preview. Settings > General can hide the
icon; the Store app leaves Analytics out.

Coven-Harness: Claude Code / claude-opus-5-5
# Conflicts:
#	apps/desktop/src/renderer/App.tsx
#	apps/desktop/src/shared/types.ts
#	docs/status.md
Preserve the reviewed fallback fixes while integrating thread deletion and archive behavior. Cover pending credit refusal during owner-removal admission.

Coven-Harness: Codex / GPT-6
Tree-identical to the verified review head 2d05bc9; preserve original branch history for delivery.

Coven-Harness: Codex / GPT-6
Preserve the reviewed fallback, archive, and owner-removal behavior with the
landed Knowledge and Space changes. Independent integration review cleared.

Coven-Harness: Codex / GPT-6
The first slice of notes in folders. NotesStore keeps SpaceStore's page
contract (ids, revisions, 30-second typing checkpoints, cascading trash
and restore, revert, comments, the same error texts) over a folder laid
out Workspace > Project > folders, with Personal > Notes as the default.

Each note carries modex_id frontmatter, so moves, renames and crashes
never lose which page a file is; a page with children is a folder that
holds a folder note of the same name. Version history, comments, trash
batches and a last-seen index live in .modex/. Writes go history, note,
index, and reading finishes whatever a crash interrupted. Edits, moves,
new files and deletions made outside Modex become versions of their
own. Migration builds the folder beside notes/ from app/space.json and
publishes it with one rename, never writes space.json, keeps a backup,
and recovers pages an older build changes later.

Modex does not use it yet; SpaceStore now exports its reader and
validators and a SpacePagesStore interface for the switch.

Coven-Harness: Claude Code / claude-opus-5-5
Retain both reviewed status entries. Combined build and full unit suite pass. Local UI verification remains incomplete after native-show and test timeouts under extreme host load; preserve traces and require fresh CI.

Coven-Harness: Codex / GPT-6
Settings opens on Auto routing, so the rail option was never on screen.

Coven-Harness: Claude Code / claude-opus-5-5
Store now holds a NotesStore over MODEX_HOME/notes instead of SpaceStore
over app/space.json; the space:* commands and the Pages tools keep their
contract. On first use, the pages of app/space.json move into
Personal > Notes and that file is never written again.

A page's file takes its title's name when the title loses focus or
another page opens (notes:settle); typing never renames files. Version
history labels edits made outside Modex "Outside Modex".

The e2e specs that read space.json now read the note files, and the
forced save failures refuse the history folder instead of replacing
space.json with a directory. New notes.spec covers the migration and an
edit made outside Modex.

Coven-Harness: Claude Code / claude-opus-5-5
NotesStore now lists the folder as workspaces, projects, folders, notes
and files (notes:tree, with a version for cheap polling). It can create
workspaces, projects and folders, create a page in a project or folder,
rename any container or file, move notes, folders and files into a
project or folder (projects into a workspace), and delete an empty
container. Workspace and project ids live in their marker files; other
folders and files keep theirs in the index, found again by path or by
inode after a Finder move. A moving page gets a version before its file
moves. Reveal in Finder and Open are local-only commands.

Coven-Harness: Claude Code / claude-opus-5-5
Space's sidebar now lists Workspace > Project > Folder > pages and
files from notes:tree, polled like pages. Space options can create a
workspace; a row's menu creates a project, folder or page in place,
renames (edited inline), moves (Move to... lists only valid places),
reveals in Finder, and deletes what is empty. A page opens as before, a
folder with a folder note opens that page, and a file opens in its
default app. Container rows are named by their name alone so they never
collide with a page of the same title. If the tree cannot load, the
previous page tree remains.

Coven-Harness: Claude Code / claude-opus-5-5
ChatGPT copies its citations as private-use marker characters around
source IDs that only resolve inside that conversation, so pasted and
imported pages showed them as boxes followed by IDs like turn5view0.
Pasting into a block and importing Markdown now drop those markers,
and entity markers keep their visible name.

Pasting a whole report into a page title used to flatten its lines into
one and cut it at 200 characters. The title now keeps the first line,
without a heading marker, and the rest goes to the top of the page.

Coven-Harness: Claude Code / claude-opus-5-5
Adding a project now gives it a notes project in the default workspace
(existing projects get one when notes first open); removing it keeps the
notes, unlinked, and adding the same folder again links them back. The
chat sidebar groups projects under their workspaces once there is more
than one, and a project's menu offers Open notes and Move to <workspace>.
With one workspace the sidebar is unchanged.

The thread's right-hand panel is relabelled "Side panel" (and the Store
app's menu with it), so "workspace" means one thing; internal names and
shortcuts are unchanged.

Coven-Harness: Claude Code / claude-opus-5-5
The Pages tools now resolve the turn's project's notes once, when the
turn starts, and stay inside them: search lists only that project's
notes, reading or changing another project's note is refused, and a new
note goes at the top of the project's notes. New tools list a folder,
create folders, move a note or folder within the project, and read text
files (UTF-8, up to 1 MB). Tools still address notes by ID, never by
path, and there is still no binary write or permanent delete.

Coven-Harness: Claude Code / claude-opus-5-5
The focus effect re-ran whenever the tree changed, and any page save makes a new tree on
the next 1.5-second poll. After Open notes, typing in another project's page kept
re-expanding the requested project and scrolling the tree back to it, and its row stayed
highlighted. Each request is now a new object, applied once, and opening a page clears it.

Coven-Harness: Claude Code / claude-opus-5-5
Each folder and file looked itself up by searching the whole id index, by path and then by
inode, and each sibling group was copied on every insert. A layout runs on Space polls,
at turn start and in the image handler, and with 9,900 files it took 21 to 51 seconds on
the main process. The index is now read into path and inode maps once per layout and
kept current as ids move. The same folder lays out in about 0.25 seconds.

Coven-Harness: Claude Code / claude-opus-5-5
Its tree equals #226's final head 8cdaef5, which this branch already contains.

Coven-Harness: Claude Code / claude-opus-5-5
Record the squash-merged notes tree ancestry while retaining the already verified move, recovery, and creation repairs. The resulting tree is unchanged.

Coven-Harness: Codex / GPT-6
Coven-Harness: Claude Code / claude-opus-5-5
Include native window paint and geometry readiness plus paired iPhone menu recovery. Full build and units passed; 302 desktop E2E cases and 7 website cases passed.

Coven-Harness: Codex / GPT-6
Preserve the Analytics review fixes and current NotesStore source. Full build and unit suite passed.

Coven-Harness: Codex / GPT-6
Files in notes: import, preview, drag to move, page images, and a folder watcher
Coven-Harness: Claude Code / claude-opus-5-5
Full build and unit suite passed. All 303 desktop E2E cases, including real Knowledge, and all 7 website cases passed.

Coven-Harness: Codex / GPT-6
Integrate reviewed notes work and native test readiness. Refuse Pages access for every scope exception shape, consume project focus requests across tree remounts, and cover cached layout identity preservation.

Coven-Harness: Codex / GPT-6
The reviewed native implementation is already present unchanged in this verified integration.

Coven-Harness: Codex / GPT-6
Preserve the reviewed paste source and regression tests while retaining Notes file previews and one-shot project focus.

Coven-Harness: Codex / GPT-6
Retain the exact reviewed coverage configuration, CI gates, and dependency lockfile.

Coven-Harness: Codex / GPT-6
Preserve the reviewed Analytics files exactly, including stale visibility cancellation, narrow CSV downloads, torn ledger recovery and asset link rejection.

Coven-Harness: Codex / GPT-6
Preserve the existing repaired source, expanded regression coverage, and current release documentation.

Coven-Harness: Codex / GPT-6
Brings Codex's reviewed batch (notes-final-review 9322bb2) onto main, where the notes stack
(#227) and Images and Plugins (#236) have already landed. Adds production coverage
reporting (#239, #216), Analytics visibility, export and recovery fixes (#228), and #235's
repair ancestry.

Conflicts:
- e2e/support.ts: kept the batch's waitForWindowReady. Main ran #236's older readiness
  helper and returned early, which left the stronger helper unreachable.
- docs/status.md: kept both sides (Analytics, Images and Plugins, coverage, notes).
- index.html, markdown.ts, App.tsx, SpaceView.tsx: kept main, which already combines #236
  with the notes changes the batch carries.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 15, 2026 7:42pm UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main release-batch e78d43e +/-
— 60% —

Line coverage data for the main branch is not yet available.

View coverage of the 10 most covered files.
File main release-batch e78d43e +/-
apps/desktop/sr.../attachments.ts — 100% —
apps/desktop/sr...shared/types.ts — 100% —
apps/desktop/sr...ate-recovery.ts — 100% —
apps/desktop/sr...engine/store.ts — 100% —
apps/desktop/sr...ngine/runner.ts — 99% —
apps/desktop/sr...nt-documents.ts — 99% —
apps/desktop/sr.../notes-store.ts — 98% —
apps/desktop/sr...kends/claude.ts — 97% —
apps/desktop/sr...gine/plugins.ts — 97% —
apps/desktop/sr...ckends/codex.ts — 95% —

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

This branch was successfully deployed

1 active deployment
Preview — e78d43eb Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant