Summary
In the AI chat drawer, assistant responses can show proposal status text (“Proposed editor update is ready. Review and apply below.”), but no Apply action buttons are rendered. This creates a dead-end UX where the user is told an editor update is ready but cannot apply it.
Current Behavior
- User sends a prompt asking for code changes.
- Assistant response indicates a proposed editor update is ready.
- Message renders without any
Apply update button(s) (Component, Styles, or combined apply).
Expected Behavior
- If a proposal exists, the message should render the corresponding Apply action(s).
- If a proposal cannot be parsed, status text should not claim an update is ready.
- User should never see a “ready to apply” message without an actionable control.
Repro Steps
- Open app with valid GitHub token and writable repo selected.
- Open AI Chat and submit a prompt requesting editor updates.
- Observe a response with “Proposed editor update is ready. Review and apply below.”
- In some runs, no Apply button appears under that assistant message.
Impact
- Blocks primary chat-to-editor workflow.
- Confusing UX and reduced trust in assistant actions.
- Forces manual copy/paste fallback.
Suspected Area
- Proposal extraction / normalization path in:
- Rendering gate for apply actions in:
Likely Root Cause
Mismatch between detected “proposal-ready” state and parsed proposal payload shape. Tool-call payload variations (or partially structured arguments) may pass the “ready” signal but fail proposal extraction, preventing action button render.
Acceptance Criteria
- When proposal-ready status appears, at least one matching Apply button is visible.
- No false-positive proposal-ready messages without actions.
- Handles payload shape variations robustly (or degrades gracefully with clear error/status).
Optional Diagnostics to Add
- Temporary debug logging for parsed proposal targets/content presence.
- Message-level fallback status if proposal parsing fails after tool calls are returned.
Summary
In the AI chat drawer, assistant responses can show proposal status text (“Proposed editor update is ready. Review and apply below.”), but no Apply action buttons are rendered. This creates a dead-end UX where the user is told an editor update is ready but cannot apply it.
Current Behavior
Apply updatebutton(s) (Component,Styles, or combined apply).Expected Behavior
Repro Steps
Impact
Suspected Area
Likely Root Cause
Mismatch between detected “proposal-ready” state and parsed proposal payload shape. Tool-call payload variations (or partially structured arguments) may pass the “ready” signal but fail proposal extraction, preventing action button render.
Acceptance Criteria
Optional Diagnostics to Add