fix(coding-agent): declared restricted slate in local image read test

- The inspect_image availability contract treats a session with neither
  isToolActive nor xdevRegistry as mode-resolved (auto + unknown model =>
  metadata-only reads); the local:// image stub must report the tool
  inactive so the read keeps inlining image blocks.
This commit is contained in:
can1357
2026-07-27 23:53:47 +02:00
parent be98b64529
commit e54757f307
@@ -32,6 +32,9 @@ function makeSession(testDir: string): ToolSession {
getSessionFile: () => sessionFile,
getArtifactsDir: () => artifactsDir,
getSessionSpawns: () => null,
// A restricted slate without inspect_image (and no xdev mount) must keep
// inlining images — metadata-only guidance would point at an absent tool.
isToolActive: () => false,
settings: Settings.isolated({ "images.autoResize": false }),
} as unknown as ToolSession;
}