Refactor agent-session safe-output parsing to a single shared path#53840
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
PR Triage
Part of the same safe-output parsing refactor cluster. Recommend batch review with the other two PRs.
|
|
@copilot Remove create-agent-task add codemod to migrate |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Implemented in ec94ca5. |
|
Triage: category= Part of the B1-safeoutput-refactor batch (with #53841, #53838). Draft, no CI yet, no reviews. Undraft once ready and review together with the batch.
|
parseAgentSessionConfighad two near-identical branches forcreate-agent-sessionand deprecatedcreate-agent-task, creating drift risk for future field changes. This PR centralizes parsing while preserving key-precedence and deprecation behavior.What changed
parseAgentSessionConfigMap(configData any).parseAgentSessionConfig:create-agent-sessioncreate-agent-taskwith existing warningBehavior preserved
base,target-repo, and base safe-output fields are parsed identically for both keys.target-repostill returnsnil(validation path unchanged).maxto1.Coverage updates
create-agent-sessionwins when both keys are present.