Repository navigation
feat: Tasks pane and MCP tool list_tasks for open checkboxes - #125
Merged
Merged
Conversation
…_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.
bketelsen
approved these changes
Nov 3, 2026
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.
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 existingtaskstable (filled byindexStructuresince migration 0001): no new index, no migration, no file in the vault. Files stay the truth.list_tasks(read-only annotations):folder(optional),limit(1–1000, default 200); returnstasks: [{path, title, url, line, text}],total,notice, likelist_notes. Offered under every scope, also read-only.list-todoicon): 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.note.tasks.docs/specs/ui.md,docs/specs/mcp.md,docs/design/app.md;docs/specs/rpc-api.mdregenerated.Tests
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.TasksPane.test.tsx, the mock'snote.tasks, and a container test inpanes.test.tsx(click opens the note with the cursor at the task line).Checks
make check: passes (with umask 022; see note).make ui-checkin the nsl machine: 102 files, 838 tests pass.Note:
internal/secretsTestFileRefusesReadableFilefails under umask 0077 (the file is written 0644 but gets 0600). That is not this change; CI uses umask 022.Cross-review
github-copilot/mai-code-2-flash. Reviewer:openai/gpt-6.1-sol.29bc801(27 files in 2 batches, generated files checked against the schema): Ready, 3 low, non-blocking findings. Fixed in8f361b4: the mock's CommonMark fence handling, a container test for reloading after a file change, "five read tools" indocs/specs/mcp.md.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 asuseCounts.8f361b4:make checkandmake ui-check(840 tests) pass locally; CI is green.