Severity: High · from 2026-05-29 audit.
After #393, agents can read unsaved edits to existing files but new files that exist only in the Files editor buffer (not yet saved to disk) still return file-not-found. readAgentAccessibleFileBytes (utils.ts:479) and readFileRange (readFileRange.ts:40) resolve paths with allowMissing:false, throwing before the dirty-buffer lookup runs.
Fix: resolve agent read paths with allowMissing:true when a dirty-lookup is configured, and map ENOENT back to the file-not-found tool error when no buffer exists (workspace boundary still enforced).
Fixed by PR #397.
Severity: High · from 2026-05-29 audit.
After #393, agents can read unsaved edits to existing files but new files that exist only in the Files editor buffer (not yet saved to disk) still return file-not-found.
readAgentAccessibleFileBytes(utils.ts:479) andreadFileRange(readFileRange.ts:40) resolve paths withallowMissing:false, throwing before the dirty-buffer lookup runs.Fix: resolve agent read paths with
allowMissing:truewhen a dirty-lookup is configured, and map ENOENT back to the file-not-found tool error when no buffer exists (workspace boundary still enforced).Fixed by PR #397.