From edd0da5770f09dc8ce80ea93fd6da8d710be0f2b Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 12 May 2026 06:00:19 +0100 Subject: [PATCH] DRAFT-1: fix labels --- ...t.ts-to-run-on-files-modified-via-Backlog-MCP-tools.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backlog/drafts/draft-1 - Extend-format-on-edit.ts-to-run-on-files-modified-via-Backlog-MCP-tools.md b/backlog/drafts/draft-1 - Extend-format-on-edit.ts-to-run-on-files-modified-via-Backlog-MCP-tools.md index 3739bf8e..6e60411d 100644 --- a/backlog/drafts/draft-1 - Extend-format-on-edit.ts-to-run-on-files-modified-via-Backlog-MCP-tools.md +++ b/backlog/drafts/draft-1 - Extend-format-on-edit.ts-to-run-on-files-modified-via-Backlog-MCP-tools.md @@ -3,11 +3,9 @@ id: DRAFT-1 title: Extend format-on-edit.ts to run on files modified via Backlog MCP tools status: Draft assignee: [] -created_date: '2026-05-10 06:59' +created_date: "2026-05-10 06:59" labels: - - pi-extension - - tooling - - backlog + - pi dependencies: [] references: - .pi/extensions/format-on-edit.ts @@ -17,7 +15,9 @@ priority: low ## Description + The pi extension `.pi/extensions/format-on-edit.ts` currently formats files (Elixir via `mix format`, markdown via `prettier`) only when the `edit` or `write` tools are used. When Backlog MCP tools (`backlog_task_edit`, `backlog_document_create`, etc.) modify files under `backlog/`, no formatting is triggered. The `tool_result` event fires for the `mcp` tool with `event.input.tool` set to the Backlog tool name, so it's technically possible to hook into these calls. The main challenge is mapping MCP tool calls to the specific files that were modified. +