Repository navigation
fix(resource): report a queued reason commit as accepted - #6157
Merged
fujiajie666 merged 1 commit intoOct 16, 2026
Merged
Conversation
Since volcengine#6077 on_resource_added returns once the reason commit is queued, but memory_linking.status still said "success", which reads as a finished link. It now says "accepted" (the word connector submissions already use), and the API docs say to poll commit_task_id for the result. Follow-up to the volcengine#6077 review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OnePerson2020
pushed a commit
to OnePerson2020/OpenViking
that referenced
this pull request
Oct 16, 2026
…filed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fujiajie666
approved these changes
Oct 16, 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.
Description
Follow-up to the #6077 review. Since #6077,
on_resource_addedreturns once the reason commit is queued, butmemory_linking.statusstill said"success", which reads as a finished link. It now says"accepted"(the word connector submissions already use for queued work), and the API docs say to pollcommit_task_idthrough the Task API for the result.Human Involvement
Related Issue
Review suggestion on #6077.
Type of Change
Changes Made
resource_memory_link_service.py:on_resource_addedreturnsstatus="accepted"withcommit_task_id; docstring says to poll it.on_resource_deletedstill waits for its commit and keeps"success".docs/{en,zh}/api/02-resources.md: thememory_linkingrow explainsacceptedand pollingcommit_task_idvia/api/v1/tasks/{task_id}.tests/service/test_resource_memory_link_service.py: the threeon_resource_addedassertions expectaccepted.No code in the repository reads
memory_linking.status.Testing
tests/service/test_resource_memory_link_service.py: 15 passed. Two tests (test_on_resource_deleted_bridges_through_fixed_session,test_unlink_memory_reference_keeps_visible_text_and_no_schema_metadata) fail identically on main in my environment and are untouched here.ruff checkis clean;ruff format --checkonly flags the test file, which is already unformatted on main, so it is left as is.Checklist
🤖 Generated with Claude Code