forked from 1b-agent/opencadstudio-upstream
test: pin the MCP tool schema and context menu height after Count
Count adds automation actions to the MCP tool surface and a Count row to the idle context menu; update the pinned digest and the expected height. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9b0c726cad
commit
ecda4b95dc
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ const MODERN_PROTOCOL_VERSION: &str = "2026-07-28";
|
||||
/// changes, so schema drift (new params, renamed tools) is always a conscious,
|
||||
/// reviewed edit — and clients can detect a stale bridge by comparing digests.
|
||||
#[cfg(test)]
|
||||
const TOOL_SCHEMA_DIGEST: &str = "bb2640277721f23e08cf17085bd9204753f810ece27abf31402be876e2c4683d";
|
||||
const TOOL_SCHEMA_DIGEST: &str = "537fd4e77a61b9333f21dcd294b6c91b338884acc9cd2964cbb74855821cfa12";
|
||||
const MAX_REQUEST: usize = 1_048_576;
|
||||
const MAX_RESPONSE: u64 = 16 * 1024 * 1024;
|
||||
const CACHE_TTL_MS: u64 = 3_600_000;
|
||||
|
||||
@@ -1076,8 +1076,8 @@ mod tests {
|
||||
assert_eq!(menu.default_row_y(), MENU_PAD_TOP);
|
||||
let menu = build_context_menu(&idle_ctx(false), None);
|
||||
assert_eq!(menu.default_row_y(), MENU_PAD_TOP);
|
||||
// 10 items + 3 submenu headers + 6 separators, plus panel padding.
|
||||
let expected = MENU_PAD_TOP * 2.0 + 13.0 * MENU_ROW_H + 6.0 * MENU_SEP_H;
|
||||
// 11 items + 3 submenu headers + 6 separators, plus panel padding.
|
||||
let expected = MENU_PAD_TOP * 2.0 + 14.0 * MENU_ROW_H + 6.0 * MENU_SEP_H;
|
||||
assert_eq!(menu.height(), expected);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user