Skip to content

技能设置页可配环境变量与参数(每技能独立落盘) #55

Closed

Description

@FeatherHunter

Problem Statement

作为桌面版用户,我在终端设了 SKILLS_DB_PATH,面板依然报缺环境变量:终端的环境变量只活在该终端进程及其子进程里,早已由快捷方式启动的 Desktop 进程继承不到。现在也没有任何界面能配这些值,换台机器或重装即失忆。

Solution

每个技能设置页可查看与设置自家的环境变量,保存后重启仍在;缺失时给人话指引,不返空数。

User Stories

  1. 作为用户,我想在卡路里页签看到当前 DB 路径,以便知道数从哪来。
  2. 作为用户,我想在面板里改掉 DB 路径并保存,重启后仍生效,以便不依赖终端。
  3. 作为用户,我想配错或缺失时收到明确报错而不是转圈,以便纠错。

待确认的方案(我拟的,你没说过)

  • 落盘在哪、按什么粒度存(我之前写了按技能分文件——已删,等你定要不要隔离)。
  • 读取优先级(我之前写配置文件>进程环境>报错——等你认)。
  • 走哪个通道、端点叫什么(我之前写自有通道加读写端点——等你认)。
  • 测试门与 out of scope(沿用现有门是否够,你定)。

Further Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions