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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user