fix(#3801): register inline_plan_threshold in the defaults manifest and correct the docs (#4019)

* fix(#3801): register inline_plan_threshold in the defaults manifest (default 2) and correct settings-advanced

* chore(#3801): changeset fragment (pr number backfilled after PR creation)

* chore(#3801): backfill changeset PR number (4019)

* test(#3801): parse the defaults table with the shared markdown-table parser

---------

Co-authored-by: sim <sim@local>
This commit is contained in:
Tom Boucher
2026-08-28 23:48:42 -04:00
committed by GitHub
parent ac7587287b
commit 51ca9f39ba
8 changed files with 82 additions and 2 deletions

View File

@@ -134,6 +134,7 @@ const CONFIG_DEFAULTS = {
security_block_on: _getNestedConfigDefault('workflow', 'security_block_on'),
post_planning_gaps: _getNestedConfigDefault('workflow', 'post_planning_gaps'),
smart_zone_tokens: _getNestedConfigDefault('workflow', 'smart_zone_tokens'),
inline_plan_threshold: _getNestedConfigDefault('workflow', 'inline_plan_threshold'), // #3801
max_prompt_tokens: _getNestedConfigDefault('review', 'max_prompt_tokens'),
};

View File

@@ -111,6 +111,11 @@ const SCHEMA_DEFAULTS: Record<string, unknown> = {
// manifest default rather than "Key not found". Derived from the defaults manifest so
// the manifest stays the single source of truth.
'planning.pr_strict': CONFIG_DEFAULTS.pr_strict,
// #3801: execute-plan reads this key on every run; an absent key must resolve
// to the manifest default (2) rather than "Key not Found" — previously the
// effective default existed only as the workflow's shell fallback and the
// docs disagreed (settings-advanced said 3). Manifest stays the one owner.
'workflow.inline_plan_threshold': CONFIG_DEFAULTS.inline_plan_threshold,
};
/**