feat(coding-agent): added resolve-based plan approval flow in coding-agent

- Removed ExitPlanModeTool and deleted exit-plan-mode docs/tests, dropping the old approval contract outputs.
- Replaced plan-mode approval flow from exit_plan_mode to resolve across session, SDK, controllers, and discovery.
- Added standing resolve handler accessors and updated resolve routing for queued or standing approval handlers.
- Added PlanApprovalDetails and enforced normalized, validated approval titles with readable plan-file requirements.
- Extended resolve schema and invocation signatures with optional extra metadata and reason trimming behavior updates.
- Updated plan and resolve prompts and changelog guidance to require resolve action, reason, and extra.title for apply/discard.
This commit is contained in:
can1357
2026-05-14 05:33:30 +02:00
parent 0b62f2971b
commit ef5cbef51f
22 changed files with 257 additions and 394 deletions
File diff suppressed because one or more lines are too long
@@ -1155,16 +1155,6 @@
return html;
}
function renderExitPlanMode(name, args, result, ctx) {
const badges = args.title ? [String(args.title)] : null;
let html = toolHead('exit_plan_mode', '', badges);
if (result) {
const output = ctx.getResultText();
if (output) html += formatExpandableOutput(output, 8);
}
return html;
}
function renderResolve(name, args, result, ctx) {
const action = str(args.action) || '?';
let html = toolHead('resolve', '', [action]);
@@ -1562,7 +1552,6 @@
inspect_image: renderInspectImage,
generate_image: renderGenerateImage,
ask: renderAsk,
exit_plan_mode: renderExitPlanMode,
resolve: renderResolve,
github: renderGh,
render_mermaid: renderMermaid,