Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[bug] Windows: 修改 ~/.stepcode/config.toml 的 permissionPreset 不生效,重启后仍为 autopilot

未关闭
#164 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
cli

调研方向

Look for the config loading logic, likely in a file like src/config.ts or src/cli/config.ts. Find where permissionPreset is read from the global config file and merged with other sources (project config, environment variables). Test on Windows to see if the file path %USERPROFILE%.stepcode\config.toml is correctly resolved. Verify the parsing and merging order, then check the UI or CLI output for the active preset.

由索引模型根据 Issue 内容生成。

描述

area/config bug
What happened?

在 Windows 上编辑用户目录下的 ~/.stepcode/config.toml,将:

permissionPreset = "bypass"

保存后完全退出并重启 Step Code,权限模式仍显示为 autopilot,bypass 未生效。

Steps to reproduce
  1. 打开 %USERPROFILE%\.stepcode\config.toml(即用户目录下的 .stepcode/config.toml)。
  2. 设置 permissionPreset = "bypass" 并保存。
  3. 完全退出 Step Code 后重新启动。
  4. 查看当前权限预设,仍为 autopilot。
Expected behavior

重启后应读取全局 config.toml 中的 permissionPreset = "bypass",并以此作为生效预设(除非被更高优先级来源覆盖,例如 CLI / STEP_PERMISSION_PRESET / 已信任项目的项目级 config.toml)。

Environment
  • OS: Windows
  • Config path: %USERPROFILE%\.stepcode\config.toml
  • Setting: permissionPreset = "bypass"
  • Observed: still autopilot after restart
Notes

文档将 permissionPreset 放在统一配置 ~/.stepcode/config.toml 根表中。若全局文件已写入 bypass 仍被覆盖,可能与项目级配置、环境变量或启动时预设解析顺序有关,需要确认 Windows 上全局 TOML 是否被正确加载与合并。

主要语言
TypeScript
星标
850
派生
62
平均合并
1 天 12 小时
30 天内合并 PR
43

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stepfun-ai/Step-Code 的其他 Issue

查看 stepfun-ai/Step-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。