Repository navigation
Preserve Notes hierarchy through collisions and interrupted writes - #231
Merged
Merged
Conversation
Coven-Harness: Codex / GPT-6
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
…222) * Add NotesStore: Space pages as Markdown files under MODEX_HOME/notes 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 * Keep Space pages as Markdown files in the notes folder (#225) * Preserve Notes hierarchy through collisions and interrupted writes (#231) Coven-Harness: Codex / GPT-6
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
* Add NotesStore: Space pages as Markdown files under MODEX_HOME/notes 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 * Keep Space pages as Markdown files in the notes folder 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 * List the notes folder as a tree and manage its workspaces and folders 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 * Show the notes folder as a workspace tree in Space 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 * Keep Space pages as Markdown files in the notes folder (#225) * Compare whole file names when making a name unique uniqueName compared the bare stem against names with their extension, so for any extension but .md a taken name went unseen: renaming or moving a file next to one of the same name failed with EEXIST instead of getting a suffix. A note and a folder of one name still collide. Coven-Harness: Claude Code / claude-opus-5-5 * Preserve Notes hierarchy through collisions and interrupted writes (#231) Coven-Harness: Codex / GPT-6
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
…) (#227) * Fall back from Fable to Opus when Claude is out of usage credits 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 * Record native window show before E2E observers connect Coven-Harness: Codex / GPT-6 * Correct fallback failure detection and Auto history (#212) Keep empty fallback replies retryable and record the actual Opus route without a false user override. Coven-Harness: Codex / GPT-6 * Sync fallback with landed deletion and archive fixes (#214) 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 * Add NotesStore: Space pages as Markdown files under MODEX_HOME/notes 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 * Keep Space pages as Markdown files in the notes folder 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 * List the notes folder as a tree and manage its workspaces and folders 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 * Show the notes folder as a workspace tree in Space 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 * Clean chat citations and split multi-line title pastes in Space 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 * Give each Modex project its own notes and group projects by workspace 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 * Keep each project's agents inside that project's notes 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 * Keep Space pages as Markdown files in the notes folder (#225) * Let the knowledge base be the notes folder Space > Knowledge base offers "Use your Modex notes", which makes the notes folder the Open Knowledge folder, so Space and the knowledge base are one set of files. A page's menu then offers "Open in knowledge base" (the page's own file) instead of a copy, and knowledge:copy refuses. With the notes folder as the knowledge base, each project's agents read, write and search only that project's notes through the knowledge tools as well: paths outside are refused before reaching the companion, and search reads the project's files directly. The routines spec now puts routine output in the routine project's notes. The CLI allowlist tests now expect the Pages folder tools added for project-scoped agents. Coven-Harness: Claude Code / claude-opus-5-5 * Recover ignored workspace-options taps in paired iPhone tests Retry the menu opener once within its existing deadline, retaining the actual menu-item assertion and guarding delayed presentation. Cover ignored taps, delayed opening and deadline overruns. Coven-Harness: Codex / GPT-6 * Compare whole file names when making a name unique uniqueName compared the bare stem against names with their extension, so for any extension but .md a taken name went unseen: renaming or moving a file next to one of the same name failed with EEXIST instead of getting a suffix. A note and a folder of one name still collide. Coven-Harness: Claude Code / claude-opus-5-5 * Import files into notes and preview them in Space A project's or folder's menu offers Import files…, and files dropped from Finder onto a project or folder are copied there: regular files only, up to 50 at a time and 100 MB each, never replacing anything (a taken name gets a number). Clicking a file previews it. Images are served by id over modex-notes://file/<id>, which serves only image files of the notes folder, with no scripts or subresources; text files up to 1 MB show as text; anything else offers Open and Reveal in Finder. Coven-Harness: Claude Code / claude-opus-5-5 * Drag rows to move them, show a page's images beside it, and watch the folder Dragging a tree row onto a place it may go moves it there, with the same targets as Move to. A page's image named by a path relative to its file (as Open Knowledge writes them) loads over modex-notes://page/<id>/<path>, only when it is an image inside the page's own project after following links, and outside dot folders. The app now watches the notes folder. Reads reuse the last look until an event arrives, a deletion awaits its second look, or 10 seconds pass; every change looks afresh. With 500 notes a poll went from about 10 ms to 0.1 ms. Coven-Harness: Claude Code / claude-opus-5-5 * Expect focus on the project menu's first item, now Open notes The project menu gained Open notes (and Move to <workspace>) ahead of Remove project, so a newly opened menu focuses Open notes. The keyboard-primitives spec still expected Remove project to take focus and failed on CI. Coven-Harness: Claude Code / claude-opus-5-5 * Preserve Notes hierarchy through collisions and interrupted writes (#231) Coven-Harness: Codex / GPT-6 * Keep note recovery and knowledge search inside project scope Reject cross-project historical parents during page recovery and revalidate knowledge search roots after project or workspace symlink replacement. Include regression coverage and integrate current main. Coven-Harness: Codex / GPT-6 * Fix notes folder moves and default page creation Recover interrupted folder moves without child-name collisions or lost external edits. Preserve default project identity across renames and moves, and expand collapsed containers for child creation. Include current main and reviewed NotesStore repairs in the verified integration. Coven-Harness: Codex / GPT-6 * fix(notes): enforce live file preview boundaries Revalidate cached previews against their original project, reject hidden resolved paths and symlinked workspace/project roots, and bound descriptor reads by current size. Open nonblocking so FIFO replacements cannot freeze the main process. Add regressions for size changes, aliases, and FIFO races. Integrate current main while preserving the notes files feature. Validation: desktop main build and 29 focused notes tests passed; independent review cleared. Full repository verification remains pending. Coven-Harness: Codex / GPT-6 * Handle carriage-return text pasted into Space titles (#229) Normalize carriage-return and mixed line endings before splitting pasted Space title text. Coven-Harness: Codex / GPT-6 * Keep agent turns running when the notes folder cannot be read The runner prepares Pages on every turn, and preparing now links the project's notes. A symlinked notes folder or a corrupt marker made that throw, which failed every turn in every project, even with Agent notes off. Preparing now records the error on the lease; each Pages call refuses with it instead of running unscoped. Coven-Harness: Claude Code / claude-opus-5-5 * Show a project's notes once per "Open notes", not on every poll 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 * Lay out large notes folders in linear time 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 * Refuse Pages for every scope failure and consume Open notes requests Ported from the Codex review branch notes-final-review (caba43e). The earlier fallback kept the error message only, so an exception with an empty message, or a non-Error throw, left the lease without an error and its calls ran unscoped. Every exception shape now records a reason. SpaceView now consumes each Open notes request, so a tree that remounts after a search or filter does not replay it. Adds regressions for both, and for the layout keeping ids from the cached index. Coven-Harness: Claude Code / claude-opus-5-5
BunsDev
added a commit
that referenced
this pull request
Oct 15, 2026
…adiness (#243) * Fall back from Fable to Opus when Claude is out of usage credits 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 * Record native window show before E2E observers connect Coven-Harness: Codex / GPT-6 * Correct fallback failure detection and Auto history (#212) Keep empty fallback replies retryable and record the actual Opus route without a false user override. Coven-Harness: Codex / GPT-6 * Initial plan * Add code coverage (c8 + cobertura) and integrate into CI Co-authored-by: BunsDev <[email protected]> * Show live model usage in an Analytics surface from the rail 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 * Sync fallback with landed deletion and archive fixes (#214) 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 * Add NotesStore: Space pages as Markdown files under MODEX_HOME/notes 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 * Open Settings' General section before toggling Analytics in the spec Settings opens on Auto routing, so the rail option was never on screen. Coven-Harness: Claude Code / claude-opus-5-5 * Keep Space pages as Markdown files in the notes folder 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 * List the notes folder as a tree and manage its workspaces and folders 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 * Show the notes folder as a workspace tree in Space 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 * Clean chat citations and split multi-line title pastes in Space 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 * Give each Modex project its own notes and group projects by workspace 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 * Keep each project's agents inside that project's notes 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 * Keep Space pages as Markdown files in the notes folder (#225) * Let the knowledge base be the notes folder Space > Knowledge base offers "Use your Modex notes", which makes the notes folder the Open Knowledge folder, so Space and the knowledge base are one set of files. A page's menu then offers "Open in knowledge base" (the page's own file) instead of a copy, and knowledge:copy refuses. With the notes folder as the knowledge base, each project's agents read, write and search only that project's notes through the knowledge tools as well: paths outside are refused before reaching the companion, and search reads the project's files directly. The routines spec now puts routine output in the routine project's notes. The CLI allowlist tests now expect the Pages folder tools added for project-scoped agents. Coven-Harness: Claude Code / claude-opus-5-5 * Recover ignored workspace-options taps in paired iPhone tests Retry the menu opener once within its existing deadline, retaining the actual menu-item assertion and guarding delayed presentation. Cover ignored taps, delayed opening and deadline overruns. Coven-Harness: Codex / GPT-6 * Compare whole file names when making a name unique uniqueName compared the bare stem against names with their extension, so for any extension but .md a taken name went unseen: renaming or moving a file next to one of the same name failed with EEXIST instead of getting a suffix. A note and a folder of one name still collide. Coven-Harness: Claude Code / claude-opus-5-5 * Keep Analytics hidden after superseding visibility requests Ignore delayed navigation completions after hide, disposal, or newer bounds. Cover the visibility races and reopening after a hidden load with deferred-browser regressions. Coven-Harness: Codex / GPT-6 * Import files into notes and preview them in Space A project's or folder's menu offers Import files…, and files dropped from Finder onto a project or folder are copied there: regular files only, up to 50 at a time and 100 MB each, never replacing anything (a taken name gets a number). Clicking a file previews it. Images are served by id over modex-notes://file/<id>, which serves only image files of the notes folder, with no scripts or subresources; text files up to 1 MB show as text; anything else offers Open and Reveal in Finder. Coven-Harness: Claude Code / claude-opus-5-5 * Drag rows to move them, show a page's images beside it, and watch the folder Dragging a tree row onto a place it may go moves it there, with the same targets as Move to. A page's image named by a path relative to its file (as Open Knowledge writes them) loads over modex-notes://page/<id>/<path>, only when it is an image inside the page's own project after following links, and outside dot folders. The app now watches the notes folder. Reads reuse the last look until an event arrives, a deletion awaits its second look, or 10 seconds pass; every change looks afresh. With 500 notes a poll went from about 10 ms to 0.1 ms. Coven-Harness: Claude Code / claude-opus-5-5 * Repair Analytics CSV export and usage recovery Confine dashboard assets through directory components and keep valid usage records separate from a torn tail. Coven-Harness: Codex / GPT-6 * Include unexecuted production files in unit coverage (#232) Inventory all eligible production sources before remapping coverage so unexecuted files appear at zero. Full build and coverage tests, independent review, both hosted macOS runs and hosted iPhone acceptance passed. Coven-Harness: Codex / GPT-6 * Expect focus on the project menu's first item, now Open notes The project menu gained Open notes (and Move to <workspace>) ahead of Remove project, so a newly opened menu focuses Open notes. The keyboard-primitives spec still expected Remove project to take focus and failed on CI. Coven-Harness: Claude Code / claude-opus-5-5 * Preserve Notes hierarchy through collisions and interrupted writes (#231) Coven-Harness: Codex / GPT-6 * Keep note recovery and knowledge search inside project scope Reject cross-project historical parents during page recovery and revalidate knowledge search roots after project or workspace symlink replacement. Include regression coverage and integrate current main. Coven-Harness: Codex / GPT-6 * Fix notes folder moves and default page creation Recover interrupted folder moves without child-name collisions or lost external edits. Preserve default project identity across renames and moves, and expand collapsed containers for child creation. Include current main and reviewed NotesStore repairs in the verified integration. Coven-Harness: Codex / GPT-6 * fix(notes): enforce live file preview boundaries Revalidate cached previews against their original project, reject hidden resolved paths and symlinked workspace/project roots, and bound descriptor reads by current size. Open nonblocking so FIFO replacements cannot freeze the main process. Add regressions for size changes, aliases, and FIFO races. Integrate current main while preserving the notes files feature. Validation: desktop main build and 29 focused notes tests passed; independent review cleared. Full repository verification remains pending. Coven-Harness: Codex / GPT-6 * Handle carriage-return text pasted into Space titles (#229) Normalize carriage-return and mixed line endings before splitting pasted Space title text. Coven-Harness: Codex / GPT-6 * Keep agent turns running when the notes folder cannot be read The runner prepares Pages on every turn, and preparing now links the project's notes. A symlinked notes folder or a corrupt marker made that throw, which failed every turn in every project, even with Agent notes off. Preparing now records the error on the lease; each Pages call refuses with it instead of running unscoped. Coven-Harness: Claude Code / claude-opus-5-5 * Show a project's notes once per "Open notes", not on every poll 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 * Lay out large notes folders in linear time 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 --------- Co-authored-by: code-coverage-agent[bot] <295130552+Code Coverage [email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Folder title collisions, restores beside replacement folders, and interrupted migrations could silently change Notes page parentage. This follow-up to #222 reserves folder-note names, restores into a separate sibling folder, and resumes migration using the full parent graph while preserving published note bytes.
Folder settlement now persists rename intent and completes both directory and note renames before scanning the hierarchy. Recovery preserves the exact source filename on case-sensitive filesystems and handles interruptions between linking and unlinking the note.
Validation:
pnpm buildandpnpm testpassed.Targets
notes-storeso the fixes are reviewed and integrated before #222 lands on main.Coven-Harness: Codex / GPT-6