Skip to content

[Feature]: add resource file by file do not support when client and server deployed in different instance #331

@ZhangXueOKG

Description

@ZhangXueOKG

Problem Statement

when I try to add ./CONTRIBUTING_CN.md to service side . it told me Path CONTRIBUTING_CN.md does not exist. I dived deep into the code .find the client only pass /CONTRIBUTING_CN.md to server side rather than passing its content to service side.
this is the full log

`(base) ➜ OpenViking git:(main) ✗ openviking add-resource ./CONTRIBUTING_CN.md --reason "openviking project contributing doc cn version"

2026-02-27 18:09:26,118 - openviking_cli.utils.config.storage_config - WARNING - StorageConfig: 'agfs.path' is deprecated and will be ignored. Using './data' from workspace instead of './data'
2026-02-27 18:09:26,118 - openviking_cli.utils.config.storage_config - WARNING - StorageConfig: 'vectordb.path' is deprecated and will be ignored. Using './data' from workspace instead of './data'
2026-02-27 18:09:26,118 - openviking_cli.utils.config.storage_config - WARNING - StorageConfig: 'agfs.path' is deprecated and will be ignored. Using './data' from workspace instead of './data'
2026-02-27 18:09:26,118 - openviking_cli.utils.config.storage_config - WARNING - StorageConfig: 'vectordb.path' is deprecated and will be ignored. Using './data' from workspace instead of './data'
error
Parse error: Path CONTRIBUTING_CN.md does not exist
(base) ➜ OpenViking git:(main) ✗ `

Proposed Solution

keep the same as add dir

Alternatives Considered

No response

Feature Area

Core (Client/Engine)

Use Case

add file to openviking

Example API (Optional)

Additional Context

No response

Contribution

  • I am willing to contribute to implementing this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions