fix(#3533): effort inherit — expressible, omitted at writers, never re-added (#3541)

This commit is contained in:
Tom Boucher
2026-08-15 07:00:44 -04:00
committed by GitHub
parent 500df8e37f
commit 50d5368add
10 changed files with 284 additions and 8 deletions

View File

@@ -325,6 +325,13 @@ export function renderEffortArgv(
* Render a universal effort string for a specific runtime.
*/
export function renderEffortForRuntime(runtime: string, universalEffort: string): RenderedEffort {
// #3533 (10d): 'inherit' is not a wire level on ANY runtime — it means
// "omit the key / pass no argument and follow the session/host default".
// Renderers must never emit it as a literal; null param/channel tells
// resolve-execution consumers there is no propagation.
if (universalEffort === 'inherit') {
return { value: 'inherit', param: null, channel: null };
}
const spec = EFFORT_RENDERING[runtime];
if (!spec) {
return { value: universalEffort, param: null, channel: null };