Repository navigation
Update ensure_note to preserve content when content is omitted during updates
#66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5e1b8d8
feat(notes): preserve existing content when updating with ensure_note
ddutchie 2e51448
Create v2.2.7.md
ddutchie a505ed1
fix(ipc): allow clearing note content with empty string
ddutchie dc5a217
feat(tasks): add bidirectional note-task linking support
ddutchie 5af5cd0
feat(tools): add note management and search enhancements
ddutchie 623c132
refactor(mcp): add safety locks to note linking operations
ddutchie aa0ad77
refactor(notes): improve search validation and rename safety
ddutchie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ## What's new | ||
|
|
||
| ### Features | ||
|
|
||
| - **Bidirectional Link Removal**: Introduced the `unlink_note_from_task` tool to allow bidirectionally removing links between task cards and notes. | ||
| - **Task Dependencies Visibility**: Added `blockingCardIds: string[]` to the output of `get_task` tool, letting the model discover which tasks are blocked by a given card without pulling the entire graph. | ||
|
|
||
| ### Fixes | ||
|
|
||
| - **Note Content Preservation on Update**: Fixed a data loss bug in `ensure_note` where calling the tool to update metadata (such as moving a note to a subfolder, pinning, or tagging) without providing the `content` argument would overwrite the note's existing content with an empty string (`""`). The `ensure_note` tool now preserves the existing note content if the `content` argument is omitted (`undefined`). | ||
| - **Template Literal Escaping in Prompt**: Fixed a syntax error in esbuild packaging where unescaped backticks around the `content` parameter description inside the system prompt builder closed the template literal string prematurely, preventing builds and typescript type checking from passing. | ||
| - **Note-Task Linking File Sync**: Updated `link_note_to_task` to accept `workspacePath` and trigger `writeNoteFile` to keep the frontmatter of notes in the physical file system synchronized with link metadata updates in the database. | ||
|
|
||
| ### Changes | ||
|
|
||
| - **AI Tools Schema Descriptions**: Enhanced the Zod schema and system prompt definitions for `ensure_note` to explicitly instruct the LLM that the `content` parameter is optional and that omitting it preserves the existing note body, enabling the model to perform metadata and folder-reorganization actions efficiently without a read-then-write cycle. |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.