fix(coding-agent/session): resolved local:// files for streaming edit cache operations

- Added a shared session path resolver that maps local:// URLs through local-protocol options, skips other internal schemes, and returns an absolute filesystem path for real files.
- Updated streaming-edit pre-cache and post-edit cache invalidation to use the shared resolver, preventing internal-scheme assertions while keeping filesystem-based flow for local plan files.
- Extended streaming-edit tests to confirm local:// plan edits complete without panicking and that auto-generated checks receive resolved absolute paths.
This commit is contained in:
can1357
2026-04-30 03:48:36 +02:00
parent 90fabf6d4f
commit fd44728d6e
3 changed files with 80 additions and 40 deletions
@@ -15,8 +15,8 @@ import {
} from "@oh-my-pi/pi-ai";
import type { Component, SlashCommand } from "@oh-my-pi/pi-tui";
import {
clearRenderCache,
Container,
clearRenderCache,
Loader,
Markdown,
ProcessTerminal,