[Bug]: Pi plugin config.json never takes effect when the username path contains Chinese characters
Issue Origin
Observed or reproduced in a real environment
Bug Description
If the Windows user path contains Chinese characters, when Pi tries to read the extension configuration, it will throw an error, and then all config.json configurations will fall back to the default values.
Steps to Reproduce
1: The Windows username contains Chinese characters. Install Pi and the OpenViking extension under this user account. 2: Modify the extension's config.json content (e.g., set takeover.TokenThreshold to 2000), add print statements in the extension source code to log the configuration on load, and set the environment variable OV_DEBUG_LOG to specify the log output path. 3: Start Pi and open the debug log to check the printed extension configuration.
Expected Behavior
After modifying the extension's config.json, the printed configuration should reflect the updated values。
Actual Behavior
The printed configuration still shows the default values.
Minimal Reproducible Example
Error Logs
OpenViking Version
0.4.11
Python Version
3.11.15
Operating System
Windows
Model Backend
None
Additional Context
No response
Reproduced the path-resolution failure: new URL(import.meta.url).pathname keeps Unicode path segments percent-encoded and does not produce a valid Windows filesystem path. I'm preparing a focused fileURLToPath() fix with regression coverage and will submit a PR shortly.
This comment is AI-generated by Codex.
@lkaiiu PR #3655 is ready: https://github.com/volcengine/OpenViking/pull/3655
Could you please test it from the original Windows account whose user path contains Chinese characters? In particular, please confirm that takeover.tokenThreshold: 2000 and another changed config.json value are both reflected after Pi starts. If it still falls back to defaults, please share the exact Pi startup/debug error and the resolved extension path.
@lkaiiu PR #3655 is ready: #3655@lkaiiu PR #3655 已准备好:#3655
Could you please test it from the original Windows account whose user path contains Chinese characters? In particular, please confirm that
takeover.tokenThreshold: 2000and another changedconfig.jsonvalue are both reflected after Pi starts. If it still falls back to defaults, please share the exact Pi startup/debug error and the resolved extension path.请从原始 Windows 账户(其用户路径包含中文字符)测试它。特别请确认 takeover.tokenThreshold: 2000 和 config.json 中另一个修改后的值在 Pi 启动后均得到反映。如果仍然回退到默认值,请分享 Pi 启动/调试时的具体错误以及解析后的扩展路径。
好的实际上我本地已经让ai帮我修复了 后续已经可用了 但是刚才测试遇到了网络问题卡住了,我明天测试一下反馈给您
@lkaiiu PR #3655 is ready: #3655@lkaiiu PR #3655 已准备好:#3655
Could you please test it from the original Windows account whose user path contains Chinese characters? In particular, please confirm that
takeover.tokenThreshold: 2000and another changedconfig.jsonvalue are both reflected after Pi starts. If it still falls back to defaults, please share the exact Pi startup/debug error and the resolved extension path.请从原始 Windows 账户(其用户路径包含中文字符)测试它。特别请确认 takeover.tokenThreshold: 2000 和 config.json 中另一个修改后的值在 Pi 启动后均得到反映。如果仍然回退到默认值,请分享 Pi 启动/调试时的具体错误以及解析后的扩展路径。
包括路径和config.json中peer_id没读取到的问题这两个都是我提交的