Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#164 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
43

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stepfun-ai/Step-Code のほかの issue

stepfun-ai/Step-Code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。