fix: 为 openviking-server 添加 --version 并修复 AGFS 模式判断#358
Merged
Conversation
openviking-server 缺少 --version 导致 agent 误调用时报 option not found 中断安装流程, 现通过 argparse 的 version action 支持 --version 输出版本号。 同时移除 AGFS 初始化中多余的 backend == "local" 条件判断。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
chuanbao666
approved these changes
Feb 28, 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
为
openviking-server命令添加--version参数支持,并修复 AGFS 初始化时多余的条件判断。Related Issue
close #354
Type of Change
Changes Made
openviking/server/bootstrap.py:添加--version参数,通过 argparse 的action="version"实现,版本号从openviking.__version__读取openviking/service/core.py:移除 AGFS 初始化中config.agfs.backend == "local"的多余条件,使 http-client 模式下始终启动 AGFSManagerTesting
openviking-server --version正常输出版本号(openviking-server 0.2.1.dev23)openviking-server --help正常显示--version选项ov --version(Rust CLI)确认已支持(openviking 0.2.0)Checklist
Additional Notes
openviking-server之前缺少--version参数,agent 误调用openviking-server --version时会报 option not found 导致安装流程中断。🤖 Generated with Claude Code