Skip to content

fix(resource): report a queued reason commit as accepted - #6157

Merged
fujiajie666 merged 1 commit into
volcengine:mainfrom
OnePerson2020:feat/reason-commit-queued-status
Oct 16, 2026
Merged

fujiajie666 merged 1 commit into
volcengine:mainfrom
OnePerson2020:feat/reason-commit-queued-status

Conversation

@OnePerson2020

Copy link
Copy Markdown
Contributor

Description

Follow-up to the #6077 review. Since #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 for queued work), and the API docs say to poll commit_task_id through the Task API for the result.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Related Issue

Review suggestion on #6077.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • resource_memory_link_service.py: on_resource_added returns status="accepted" with commit_task_id; docstring says to poll it. on_resource_deleted still waits for its commit and keeps "success".
  • docs/{en,zh}/api/02-resources.md: the memory_linking row explains accepted and polling commit_task_id via /api/v1/tasks/{task_id}.
  • tests/service/test_resource_memory_link_service.py: the three on_resource_added assertions expect accepted.

No code in the repository reads memory_linking.status.

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

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 check is clean; ruff format --check only flags the test file, which is already unformatted on main, so it is left as is.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

🤖 Generated with Claude Code

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
fujiajie666 merged commit f64fb5b into volcengine:main Oct 16, 2026
9 of 11 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants