Skip to content

Final apply_patch result should keep diff preview after completion #23

@bstncartwright

Description

@bstncartwright

Summary

apply_patch computes and renders a diff preview while the tool is pending, but the final successful tool result only carries the textual summaries (add: ..., update: ..., etc.). Once the tool finishes, the richer diff preview disappears and the rendered result falls back to plain text.

Expected behavior

The final result should retain the computed preview details so the TUI can render the same changed-line preview after completion, similar to the built-in edit tool.

Proposed fix

Carry the pending preview into the final tool result details and render completed patches as Applied patch with the preview diff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions