Pi: hashline `edit` registers no renderers, so its call row renders as `…`
Short description
Pi: hashline edit registers no renderers, so its call row renders as …
What happened?
With edit_mode: "hashline", every edit call renders as the icon plus …: no path, no preview. The tool runs fine and the result reaches the model; only the row is empty.
Two things are missing in the hashline branch.
1. No renderCall / renderResult. packages/pi-plugin/src/tools/hoisted.ts has two edit registrations. The non-hashline one supplies both; the hashline one (surface.hoistEdit && ctx.hashlineEffective === true, registering HashlineEditParams) supplies neither. Pi then fills in the built-in edit renderer by tool name (withBuiltInRenderers in core/tools/renderers/index.ts), and that renderer reads args.path ?? args.file_path (core/tools/render-utils.ts:170). A hashline call carries only {patch}, so the path is empty and the row draws the empty-path placeholder. The file header at hoisted.ts:9-13 documents exactly this rule from #15; the hashline branch was added after it without the renderers.
2. details.diff is empty. The hashline transport puts the diff at metadata.diff as a string, plus a top-level filePath (crates/aft/src/hashline/integration/transport.rs:82-113). buildMutationResult builds details.diff only from a top-level diff: { before, after } object (hoisted.ts:1055-1075). So hashline results lose details.diff, and additions / deletions come out as 0. The non-hashline write and edit branches produce that shape.
Impact: the row is unreadable in Pi, and any extension that reframes Pi's tool rows (pi-tidy) shows the same empty box.
Suggested fix: give the hashline branch its own renderers, reading targets from the patch's [path#TAG] headers (plus the MV destination), and map the response diff into details in the same shape the other branch uses, so the structured diff also reaches the agent's message stream.
Diagnostics
npx @cortexkit/aft@latest doctor --issue refuses to collect in a non-interactive shell, so there is no generated report here. Pi 1.5.0, macOS arm64, Node 24.
Plugin version
0.63.5
AFT binary version
Not captured (see Diagnostics).
Platform
macOS arm64
Drafted with an AI assistant; every file and line reference above was checked against the source at HEAD.
Thanks for the detailed report. Both points check out against the source: the hashline edit registration in packages/pi-plugin/src/tools/hoisted.ts has no renderCall/renderResult, so Pi falls back to its built-in edit renderer, which looks for path. And buildMutationResult reads only a top-level diff object, while hashline replies carry the diff in metadata.diff. We'll follow up here.
This shipped in v0.64.0: hashline edit calls in Pi now show the edited file and its diff in the call row. Please reopen if a row still renders as ….