Skip to content

feat: Tasks pane and MCP tool list_tasks for open checkboxes - #125

Merged
bketelsen merged 2 commits into
mainfrom
irulan/tasks-pane
Nov 3, 2026
Merged

bketelsen merged 2 commits into
mainfrom
irulan/tasks-pane

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Night 11-02 proposal 8 (afternoon shift 2026-11-03, T772).

What

  • note.tasks (RPC, schema/rpc/note.yaml): the vault's open tasks (- [ ]), by path and line, with an optional folder filter. It reads the index's existing tasks table (filled by indexStructure since migration 0001): no new index, no migration, no file in the vault. Files stay the truth.
  • MCP list_tasks (read-only annotations): folder (optional), limit (1–1000, default 200); returns tasks: [{path, title, url, line, text}], total, notice, like list_notes. Offered under every scope, also read-only.
  • Tasks pane (right sidebar, last tab, list-todo icon): open tasks grouped by note with a count; a task opens its note with the cursor at its line (openAtLine), a title opens the note. Reads again when the vault's files change.
  • Mock notesd answers note.tasks.
  • Docs: docs/specs/ui.md, docs/specs/mcp.md, docs/design/app.md; docs/specs/rpc-api.md regenerated.

Tests

  • Go: store (TestListOpenTasks), engine (bad folder, unknown vault, scope table), MCP (TestListTasks: done, nested and fenced tasks, folder, limit/total, bounds; tool lists; urls through lodge; TestEveryTool), notesctl tool counts.
  • UI: TasksPane.test.tsx, the mock's note.tasks, and a container test in panes.test.tsx (click opens the note with the cursor at the task line).

Checks

  • make check: passes (with umask 022; see note).
  • make ui-check in the nsl machine: 102 files, 838 tests pass.

Note: internal/secrets TestFileRefusesReadableFile fails under umask 0077 (the file is written 0644 but gets 0600). That is not this change; CI uses umask 022.

Cross-review

  • Coder: github-copilot/mai-code-2-flash. Reviewer: openai/gpt-6.1-sol.
  • Initial review at 29bc801 (27 files in 2 batches, generated files checked against the schema): Ready, 3 low, non-blocking findings. Fixed in 8f361b4: the mock's CommonMark fence handling, a container test for reloading after a file change, "five read tools" in docs/specs/mcp.md.
  • Re-review 1 of 3 at 8f361b4: Ready, Blocking: none. 1 low finding left as a follow-up: the mock's closing fence accepts trailing spaces but not tabs (test mock only, not notesd). Also no stale-answer test for the container (the mock cannot delay one answer); the guard is the same as useCounts.
  • At 8f361b4: make check and make ui-check (840 tests) pass locally; CI is green.

…_tasks

notesd answers note.tasks from the index's existing tasks table: no new index, no migration. The MCP tool list_tasks (read-only, folder filter, limit and total) calls it, and the app's right sidebar gets a Tasks pane that groups the open tasks by note and opens a note at a task's line.
The mock closes a code fence as CommonMark does, the pane's test reads again after a file changes, and the MCP spec counts five read tools.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 3, 2026
@bketelsen
bketelsen merged commit c9cbb58 into main Nov 3, 2026
9 checks passed
@bketelsen
bketelsen deleted the irulan/tasks-pane branch November 3, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants