Plan mode proposes, and you decide whether to carry it out

`plan_submit` records an ordered set of steps and ends the turn. Offered in
Plan mode and nowhere else: it stops the reply, and a model in Auto mode
proposing a plan instead of doing the work would be obeying the wrong
instinct at the worst moment.

The plan is stored on the message rather than parsed back out of the prose,
so the button sends exactly what was proposed. It gets one more request to
say what it proposed and why -- a bubble containing only a card reads as
though the model had nothing to add -- but with the tools withdrawn, so
"one more round" cannot become three rounds of it changing its mind about a
plan somebody is being asked to approve.

Carrying it out switches to Edit, never Auto. The plan was written under a
mode where every command stopped for approval, and a button that also
removed the asking is not the button anybody pressed. It goes back quoted
and attributed, not stated: a plan whose text came out of a file the model
read must not arrive in the most trusted role in the transcript wearing the
reader's authority.

Also closes the rewind gap. Editing or regenerating a turn rewinds the
transcript and not the machine, so `rewound_at` is stamped and the harness
says so. Nothing tries to undo anything out there -- the project directory
is somebody's real working tree, and deleting their work to match a rewound
transcript would be far worse than the inconsistency.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jaroslav Beneš
2026-08-02 00:24:09 +02:00
parent a064407fa7
commit 16e59feab2
7 changed files with 408 additions and 1 deletions
+28
View File
@@ -921,3 +921,31 @@
.composer__kind-agent { display: flex; gap: var(--sp-2); flex: 1 1 18rem; min-width: 0; }
.composer__kind-agent .input { flex: 1; min-width: 0; }
.select--sm, .input--sm { height: calc(var(--control-h) - 0.35rem); font-size: var(--text-xs); }
/* --- A plan, and the way to carry it out ----------------------------------- */
.plan {
margin: var(--sp-3) 0;
padding: var(--sp-4);
border: 1px solid var(--border-strong);
border-left: 3px solid var(--accent);
border-radius: var(--radius-md);
background: var(--surface);
}
.plan__title {
display: flex;
align-items: center;
gap: var(--sp-2);
margin: 0 0 var(--sp-3);
font-size: var(--text-base);
color: var(--ink);
}
.plan__steps {
margin: 0 0 var(--sp-4);
padding-left: var(--sp-5);
display: flex;
flex-direction: column;
gap: var(--sp-2);
color: var(--ink-muted);
line-height: var(--leading-relaxed);
}
.plan__note { color: var(--ink-faint); font-size: var(--text-xs); }