fix(cli): read Notion page titles by property type instead of name - #1439
Open
tckaros wants to merge 1 commit into
Open
fix(cli): read Notion page titles by property type instead of name#1439tckaros wants to merge 1 commit into
tckaros wants to merge 1 commit into
Conversation
Pages that are rows of a Notion database name their title property freely (e.g. "Topic"), so matching on a list of conventional names fell back to the raw page ID for the synced file's title and filename. Match on the property type instead — every page has exactly one property of type "title". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Closes #1438
extract_page_titlelooked for titles using a list of conventional propertynames (
title,Title,Name,name, andPage).Notion database entries can name their title property freely—for example,
Topic. The lookup therefore missed custom-named title properties and fellback to the raw page ID for both the filename and frontmatter title.
The content still synced correctly, but the opaque filename made the document
difficult for agents to discover when listing files for relevant context.
Notion pages have a property of type
title, so the lookup now identifies thetitle by property type instead of name. Existing behavior is preserved for
regular pages, and empty titles still fall back to the page ID.
Testing
Topic);ai-agents-karos-basic-knowledge-3ae5f0e8.md, with its actual title in thefrontmatter, instead of
3ae5f0e8…-3ae5f0e8.md.🤖 Generated with Claude Code