Cleared legacy TOML settings reappear after restart

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend, cli

調査の方向性

Look at the TOML write path in the settings manager, likely in a file like src/settings/manager.ts. The issue mentions a merge behavior that resurrects cleared nested tables. Start by running the core settings tests to reproduce the bug. Examine how setStepSettings handles undefined and how the TOML serialization merges with the original document. The fix should ensure cleared settings are not written back to disk.

索引モデルが issue の本文から書いたものです。

説明

area/config bug
What happened?

Clearing a nested legacy setting from config.toml updates the in-memory settings, but the old value is written back to disk and returns after reload/restart.

For example, [feedback] enabled = false becomes cleared in the current manager after setStepSettings({ feedbackEnabled: undefined }), but a new manager reads feedbackEnabled: false again. The TOML write path merges the original document back over the cleared state, which resurrects the removed nested table.

I reproduced this on clean main @ adcf37b in the core settings tests, without external extensions. I have a local fix and regression test ready and would like to submit a PR if this direction looks good.

Steps to reproduce
  1. Put this in config.toml:
    [feedback]
    enabled = false
    
  2. Start/load Step settings and confirm feedbackEnabled is false.
  3. Call setStepSettings({ feedbackEnabled: undefined }).
  4. Confirm the current manager now reports the setting as absent.
  5. Reload the settings or restart Step.
  6. feedbackEnabled: false appears again.
Expected behavior

Cleared legacy TOML settings should stay removed after reload/restart, while unrelated TOML fields and mcp_servers remain intact.

Version

main @ adcf37b / @step-harness/coding-agent 0.84.4

主要言語
TypeScript
スター
1k
フォーク
71
平均マージ
13時間 14分
マージ済み PR(30日)
66

環境構築

はじめの一歩

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

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

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

似ている issue

TypeScript の issue をもっと見る

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

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