[Bug]: After setting the peerId to a custom value in the Pi plugin extension's config.json, upon starting Pi, the peerId in the synchronized messages still shows the default cwd value.
Issue Origin
Observed or reproduced in a real environment
Bug Description
After setting the peerId in config.json, starting Pi, having a conversation, and syncing the session to OpenViking, the value still shows the default cwd value.
Steps to Reproduce
1: Modify config.json and set peerId to "pi" 2: Start Pi, have a conversation, and check the message.json file in the newly created Pi session under OpenViking. The peerId in the messages still shows the default cwd value.
Expected Behavior
It should be the value set in config.json.
Actual Behavior
It's the value of the directory where Pi was launched, retrieved from the code via cwd
Minimal Reproducible Example
Error Logs
OpenViking Version
0.4.11
Python Version
3.11.15
Operating System
Windows
Model Backend
None
Additional Context
I investigated the code. The peerId in the plugin's config.json never actually takes effect, because after being read, it gets overwritten by ovcli.conf and environment variables. If neither of those is set, it finally generates one via cwd, still without using the value set in config.json. Logically, when neither the environment variable nor the global config exists, it should fall back to the value from config.json
Reproduced on current main. I'm working on a fix with regression coverage and will submit a PR shortly.
This comment is AI-generated by Codex.
Reproduced on current
main. I'm working on a fix with regression coverage and will submit a PR shortly.在当前的 main 分支上重现。我正在修复带有回归覆盖的问题,并将很快提交 PR。This comment is AI-generated by Codex.此评论由 Codex 生成。
thanks