Skip to content

OPE-51: File change tool cards #565

Closed

Description

@ivanfenenko

Parent

OPE-46 — Assistant Tool Parts

What to build

Specialize file-change tools (edit, write, apply_patch) as collapsed Tool Call Cards: verb title (Edit / Write / Patch), path or multi-file subtitle, optional +/− from metadata. Tap opens a full-screen owning-turn Changes flow. Do not expand the card inline, and do not use a Bottom Sheet or nested per-file accordion for the diff.

Acceptance criteria

  • Edit / Write / Patch cards use specialized titles; single-file subtitle = path from metadata.filediff.file (or single metadata.files entry / input-key fallbacks).
  • +/− counts come from metadata.filediff (or per-file entries) when present; omit nil/zero sides.
  • Multi-file apply_patch (metadata.files length > 1): title Patch, subtitle N files (optional summed +/−); tap opens owning-turn Changed Files list (no File Viewer deep-link, no nested accordion).
  • Single-file tap (completed, or error with a resolvable path) opens Changes with owning-turn messageID + LastTurn and deep-links the File Viewer when that path is in the snapshot; otherwise lands on the Changed Files list.
  • ChangesNavigationTarget (or equivalent) supports an optional initial file path for single-file deep-link.
  • Pending/running use static status chrome only (no shimmer); display-only until tap rules apply.
  • Missing single-file path → specialized title, no subtitle/counts, no tap.
  • No consecutive file-change grouping; no inline expand; no Bottom Sheet for file-change diffs.
  • Errors keep specialized title/subtitle/+/- when present and use the shared error slot.
  • No Tool Call Card API reshape beyond wiring existing additions/deletions; tap is Changes/File Viewer navigation (not the OPE-50 detail sheet).
  • Parity on iOS and Android with chrome + single-file vs multi-file navigation tests.

Out of scope

  • Inline accordion expand in the chat timeline (web pattern not mirrored).
  • Nested per-file accordion for multi-file apply_patch.
  • Bottom Sheet for file-change diffs.
  • Tool-local before/after renderer separate from the existing File Viewer.
  • Shimmer / animated pending chrome.

Blocked by

OPE-50 — Lightweight tool chrome (reuse specializedChrome + feature-owned tap patterns).

Docs: docs/features/assistant-tool-parts/

Research: docs/research/opencode-web-edit-tool-expand.md

Decisions: OPE-51 grilling section in docs/features/assistant-tool-parts/decisions.md


Imported from Linear OPE-51. Linear status: Done. Priority: High. Created 2026-07-15. Completed 2026-07-16.
Parent: OPE-46.
Related: OPE-52, OPE-50.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    enhancement
    ios
    android
    shared
    priority: high
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

androidenhancementiospriority: highready-for-agentshared

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions