Skip to content

fix(plan): allow revision requests from the pending composer - #2581

Merged
vastsa merged 5 commits into
vastsa:mainfrom
Linuxdazhao:codex/plan-revision-2576
Nov 28, 2026
Merged

vastsa merged 5 commits into
vastsa:mainfrom
Linuxdazhao:codex/plan-revision-2576

Conversation

@Linuxdazhao

@Linuxdazhao Linuxdazhao commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #2576.

In a local Plan session, users can now type directly into the existing composer while reviewing a proposed plan. The new Send revision request action rejects the displayed proposal and sends the instructions in a new planning turn in the same session. Typing alone leaves the proposal pending. Each version has its own artifact and still requires explicit approval before execution.

The keyboard send shortcut follows the same path. A stale proposal or a competing approval cannot redirect the revision into an execution turn. Failed submissions preserve the draft. An empty composer keeps Stop available while the original turn finishes. Plain-text paste preserves existing draft references outside the selection.

Screenshots

Before After
Read-only composer below the pending plan Editable composer with a compact revision action below the pending plan

At 640 px and below, the revision button uses a send icon with the full localized tooltip and accessible name. Wider composers display the text label.

Verification

  • macOS arm64, base 649c3456a. Desktop build, renderer typecheck, architecture check and PR-base check passed.
  • 130 focused desktop tests and 31 i18n tests passed. Electron also checks the Portuguese revision action at nine composer widths from 450 to 768 px, including adjacent controls, icon size and accessible name.
  • The full local macOS desktop suite recorded 5,431 passes, four skips and two failures. The file-manager Git timeout and image-model disclosure assertions also failed independently on the clean base.
  • All 7 standard Electron Plan UI cases passed, with zero console diagnostics. The new case uses a loopback model and verifies that typing keeps the first approval pending, the revision is delivered once, the old proposal is rejected without execution, and a separate artifact awaits approval in the same session.
  • An additional run enabled the existing optional E2E-106-live-agent case with a controlled local provider. On both clean base and PR head the approved plan ran and produced the expected marker, then the assertion comparing the runtime object IDs before and after approval failed. The new revision case passed in both runs on the PR head. No external model was used.

Linuxdazhao and others added 5 commits November 25, 2026 15:30
Keep the proposal pending while the user edits their draft. Sending a revision rejects the displayed checkpoint before starting a new planning turn in the same session, preserving the explicit approval boundary.

Closes vastsa#2576
Match the composer and submission guards to the live Plan checkpoint. Keep Stop available for an empty running turn, retain draft references on plain-text paste, and give the revision action a compact accessible control at narrow widths.

Exercise localized toolbar geometry and pending-state regressions.

Refs vastsa#2576
Keep the toolbar button padding independent of the shared button rule and verify the rendered glyph has its full aspect ratio.

Refs vastsa#2576
@vastsa
vastsa merged commit e37cb0f into vastsa:main Nov 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] plan无法通过对话来修改

2 participants