Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 2m 14s —— View job PR Review: refactor(core): simplify note write flowTasks:
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
FindingsDesign — StrongThe Removing the Minor Concern:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5171793121
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # truly derived work, like semantic vectors, on the async scheduler. | ||
| write_result = await entity_service.create_entity_with_content(data) | ||
| entity = write_result.entity | ||
| await search_service.index_entity(entity, content=write_result.search_content) |
There was a problem hiding this comment.
Index persisted note text, not pre-format snapshot
This indexes write_result.search_content, which is derived before file_service.write_file runs formatters. When format_on_save is enabled, the on-disk markdown (and checksum) can differ from this in-memory text, so search can return stale snippets/ranking until a later reindex; the same pattern is used in the PUT/PATCH handlers too.
Useful? React with 👍 / 👎.
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 43s —— View job PR Review: refactor(core): simplify note write flowTasks:
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
FindingsLatest Commit: Malformed Frontmatter FixThe third commit ( Design Strengths
Removing the Minor:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc68cebd0f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| result = EntityResponseV2.model_validate(entity) | ||
| if fast: | ||
| result = result.model_copy(update={"observations": [], "relations": []}) | ||
|
|
||
| with telemetry.scope( | ||
| "api.knowledge.create_entity.read_content", | ||
| domain="knowledge", | ||
| action="create_entity", | ||
| phase="read_content", | ||
| source="file" if fast else "memory", | ||
| ): | ||
| if fast: | ||
| content = await file_service.read_file_content(entity.file_path) | ||
| else: | ||
| # Non-fast writes already captured the markdown in memory. Reuse it here | ||
| # instead of re-reading the file; format_on_save is the one config that can | ||
| # still make the persisted file diverge because write_file only returns a checksum. | ||
| content = written_content | ||
| result = result.model_copy(update={"content": content}) | ||
| # The write service already returns the canonical markdown accepted for this request. | ||
| result = result.model_copy(update={"content": write_result.content}) | ||
|
|
There was a problem hiding this comment.
Return persisted markdown instead of pre-write snapshot
The write endpoints now always copy write_result.content into the API response, but EntityService.create/update/edit_*_with_content build that content before FileService.write_file runs formatters. When format_on_save is enabled, the on-disk markdown can differ from this in-memory string, so clients can receive stale content that does not match the file they just wrote. Please populate content from the persisted file (or return the formatter output from the write path) before returning.
Useful? React with 👍 / 👎.
Summary
Testing
Context