Skip to content

Preserve task Notes moved across project boundaries - #363

Merged
BunsDev merged 2 commits into
mainfrom
cf7-note-scope
Oct 21, 2026
Merged

BunsDev merged 2 commits into
mainfrom
cf7-note-scope

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Updating a saved task Note could overwrite it after a Finder move or containing-folder move into another project, because those moves can retain its revision. An initial caller-side scope check also reused the Notes watcher's stale location snapshot.

The Notes store now checks the associated Note's revision and current project against freshly loaded mutation state, then saves using that same state. A moved or edited Note is preserved; the task saves a replacement in its original project and updates its association. Same-project moves continue to update the associated Note.

For #280. This fixes moved/cross-project save behavior; read-only task-view reopening and the remaining acceptance criteria stay open.

Validation:

  • Finder and containing-folder cross-project regressions failed before the fix.
  • A watched, synchronously moved Note reproduced the stale-cache hole in the initial repair.
  • All 81 focused task/Notes tests passed after the final repair.
  • pnpm build, pnpm typecheck, and pnpm test passed: 1,911 passes, 16 skips.
  • Focused task-to-Notes Electron E2E: three passes.
  • Independent review found no remaining blockers.

No renderer change. Logs are retained outside disposable worktrees under Codex/artifacts/modex-land-and-prune/cf7-*.

Required-CI follow-up

The initial required run39525423522 passed build/unit checks but failed one unrelated full-log E2E (375 desktop passes, 3 skips). Its setup could click a live turn-label span after observing the sidebar's initial idle state; completion then folded the tool history and hid Show full log. The test now waits for the completed turn's actual button and asserts it expanded before opening the tool. No product behavior or log assertions were weakened.

The original timing-dependent test passed three local repetitions; the corrected two-test file passed three repetitions (6 checks). Independent review found no blockers. Fresh pnpm build && pnpm test passed: 1,911 passes and 16 skips across all suites. Required CI must run again on the new head. Logs and failure trace are retained outside the worktree in modex-land-and-prune/pr363-* artifacts.

@vercel

vercel Bot commented Oct 21, 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 21, 2026 2:23am UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 3e416ab cf7-note-scope 6e4e2c4 +/-
64% 64% 0%
View coverage of the 5 most impacted files.
File main 3e416ab cf7-note-scope 6e4e2c4 +/-
apps/desktop/sr...task-context.ts 100% 99% -1%
apps/desktop/sr...ckends/codex.ts 97% 97% 0%
apps/desktop/sr.../notes-store.ts 98% 98% 0%
apps/desktop/sr...red/evidence.ts 99% 99% 0%
apps/desktop/sr...ation-events.ts 98% 98% 0%

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

This branch was successfully deployed

1 active deployment
Preview — 6e4e2c43 Deployed Oct 21, 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