Skip to content

feat: reopen a saved task note as a read-only task view (#280) - #375

Merged
BunsDev merged 1 commit into
mainfrom
cf7-reopen
Oct 23, 2026
Merged

BunsDev merged 1 commit into
mainfrom
cf7-reopen

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Slice 1 of CF-7 (#280): a saved task note reopens as the task it saved. Supersedes #374, at Val's request; Val will close #374.

What it does

  • Save keeps the record. Save to Notes also writes the structured record it rendered to notes/.modex/tasks/<page id>.json, next to the note's history. Saving again replaces it.
  • Task view. A task note in Notes gets a Task view button. It shows the request, clarifications, plan, files touched and verification as saved, read-only. It reuses the plan card's status words and the footer's verification line. It never parses the note's Markdown back into a plan or a verification.
  • What happened since the save. The view says when the note was:
    • edited after it was saved, naming the first version that changed the title or text and whether you, something outside Modex or an agent made it. A move's own "Moved page" version is not an edit;
    • moved from the task's project notes to another project's notes (Preserve task Notes moved across project boundaries #363), including Finder moves that keep the revision;
    • in Trash, saved again to another note (with a link), or left with no linked notes because the project was removed.
  • It only reads. task:note / ThreadRunner.taskNote starts no turn, calls no CLI, and writes nothing to the note, its history, the thread or the transcript. Open thread only navigates; continuing is a new message there.
  • Notes saved before this change have no task view.

Red first

  • Unit (test/task-context.test.ts, 3 new tests): runner.taskNote is not a function.
  • E2E (e2e/task-to-notes.spec.ts, 1 new test, scripted codex-cli 0.163.0 with a plan, clarification, edit and pnpm test): timed out waiting for task-view-open. Everything before it passed: the turn, the clarification card and the save.

Tests (local, on 0e674e7 + this commit)

  • pnpm build: passed.

  • pnpm test: workflow 117/117, core 16/16. Desktop: 1,824 tests, 1,806 passed, 0 failed, 16 skipped, 2 cancelled by their timeouts while the machine was heavily loaded (load average about 40–50):

    • claude-lifecycle: "runner: an unconfirmed stop keeps the worktree…"
    • demo: "demo waits for a slow turn to reach approval…"

    Run in isolation, both passed (1/1 each). Neither touches code changed here. pnpm test exited 1 because of those cancellations.

  • pnpm test:e2e: 389 passed, 6 skipped, plus 7 passed.

  • The new unit tests prove no writes and no calls: the backend's turn and other-call counts, the transcript and the thread record are unchanged, and every file under notes/ has the same bytes and mtime before and after reopening. The e2e counts turn/start calls (still 1 after reopening), compares the note and the transcript before and after, and checks the view has no inputs.

Docs: docs/task-context.md (Reopening a saved note; removed from Not done yet), docs/notes.md (tasks/<id>.json in the layout), docs/status.md.

Waiting for Val's go-ahead before the merge queue.

🤖 Generated with Claude Code

Save to Notes also keeps the structured record it rendered in
notes/.modex/tasks/<page id>.json. A task note in Notes gets a Task view
showing the request, clarifications, plan, files touched and verification
as saved, and says when the note was edited after the save, moved to
another project's notes (#363), trashed or saved again elsewhere.
task:note only reads: no turn, no CLI call, no note or thread write.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 22, 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 22, 2026 9:25pm UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 0e674e7 cf7-reopen 1f0d282 +/-
65% 65% 0%

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

@BunsDev
BunsDev added this pull request to the merge queue Oct 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 23, 2026
@BunsDev
BunsDev added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit 71446cd Oct 23, 2026
13 checks passed
@BunsDev
BunsDev deleted the cf7-reopen branch October 23, 2026 05:38

This branch was successfully deployed

1 active deployment
Preview — 1f0d2829 Deployed Oct 22, 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