Created files command to list file operations.
BuildIdentified missing file paths in tool results.
UnderstandMatched tool calls with results to get file paths.
EditTested command and confirmed correct behavior.
VerifyCommitted and pushed final changes.
Cleanupwe have .pi/extensions/diff.ts, i want a files command in files.ts. it should:
when selecting a file, it should just open straight in vs code
Now I have enough context. Let me create the files.ts extension:
Created .pi/extensions/files.ts. The /files command:
read, write, and edit tool resultsOperations are color-coded: R (muted), W (green), E (yellow).
i just did /reload, and i get No files read/written/edited in this session ...
session file: /Users/badlogic/.pi/agent/sessions/--Users-badlogic-workspaces-pi-mono--/2026-01-29T01-19-15-101Z_6c38fda 3-22df-41f5-a3a5-25eb84998554.jsonl
I see the issue. The tool results don't have details.path. Let me check how the tools store their details:
Let me look at the actual tool implementations to see what they store in details:
I see the issue now. The details field doesn't contain the path. The path is in the tool CALL arguments (in assistant messages), not tool results. I need to match tool calls with their results via toolCallId.
Fixed. The issue was that tool result details don't contain the path. The path is in the tool CALL arguments (in assistant messages). The extension now:
toolCall blocks, extracts path from arguments, stores by idtoolCallId to get the pathTry /reload and /files again.
looking good, commit and push
Done. Committed and pushed f3cfb7e1.