mirror of
https://github.com/kitephp/CLIProxyAPI_Tray.git
synced 2026-04-25 09:05:57 +03:00
[PR #2] [MERGED] fix: 修复自动打开管理页面状态无法落盘 #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CLIProxyAPI_Tray-kitephp#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kitephp/CLIProxyAPI_Tray/pull/2
Author: @neavo
Created: 2/10/2026
Status: ✅ Merged
Merged: 2/11/2026
Merged by: @kitephp
Base:
main← Head:fix/state-persist-autoopen📝 Commits (1)
8c07185fix: 修复自动打开 WebUI 状态无法落盘📊 Changes
1 file changed (+120 additions, -15 deletions)
View changed files
📝
cli-proxy-api.ps1(+120 -15)📄 Description
背景
右键菜单取消勾选“自动打开管理页面 / Auto Open WebUI”后,部分环境下
state.json实际没有更新为false。原因
state.json默认写在脚本目录;当脚本目录不可写(例如放在 Program Files/受控目录)时,写盘会失败且用户侧难以感知。state.json时,启动优先读取旧文件,导致看起来“怎么改都不生效”。修复
%LOCALAPPDATA%\\CLIProxyAPI_Tray\\state.json),并通过气泡提示告知实际写入位置与失败原因。Update-TrayState的频繁写盘:仅在通道实际变化时持久化。验证
autoOpenWebUI字段稳定写入到可写的state.json。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.