You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needs a design session. Visual badge is not the hard part; staged-vs-applied semantics are.
Problem
ast_edit (and preview-mode edit) can stage a proposal. TUI shows ⟨proposed⟩ and prepends PREVIEW_PENDING_NOTICE ("files NOT modified yet… write xd://resolve / xd://reject"). Dashboard EditToolRenderer paints the same diff as an applied edit.
Apply/discard is a laterwrite xd://resolve|reject, not a button on the edit card. Wrong product pick: making the edit card itself Approve/Reject vs treating resolve/reject as the only action surface.
Design questions
Badge-only (⟨proposed⟩ + notice) vs interactive Apply/Discard on the originating card?
If interactive: how does the card invoke resolve/reject without a second agent turn?
How are stacked previews associated (pending-invoker id / label)?
Does a staged ast_edit stay visually distinct after a later resolve/reject in the same turn?
Child of #135
Needs a design session. Visual badge is not the hard part; staged-vs-applied semantics are.
Problem
ast_edit(and preview-modeedit) can stage a proposal. TUI shows⟨proposed⟩and prependsPREVIEW_PENDING_NOTICE("files NOT modified yet… write xd://resolve / xd://reject"). DashboardEditToolRendererpaints the same diff as an applied edit.Apply/discard is a later
write xd://resolve|reject, not a button on the edit card. Wrong product pick: making the edit card itself Approve/Reject vs treating resolve/reject as the only action surface.Design questions
⟨proposed⟩+ notice) vs interactive Apply/Discard on the originating card?ast_editstay visually distinct after a later resolve/reject in the same turn?Out of scope
Pointers
PREVIEW_PENDING_NOTICE+queueResolveHandler:@oh-my-pi/pi-coding-agent/src/tools/resolve.tssrc/tools/ast-edit.ts~432–456, ~524 (⟨proposed⟩ TUI-only)packages/client/src/components/tool-renderers/EditToolRenderer.tsx