From ecda4b95dcf8f6cdf6d0853757cd8004379836d0 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Tue, 6 Oct 2026 09:40:31 +0300 Subject: [PATCH] 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 --- src/mcp.rs | 2 +- src/ui/popup/context_menu.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mcp.rs b/src/mcp.rs index dd88a88dc..52a12677c 100644 --- a/src/mcp.rs +++ b/src/mcp.rs @@ -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; diff --git a/src/ui/popup/context_menu.rs b/src/ui/popup/context_menu.rs index 595184c8d..8cb05f85a 100644 --- a/src/ui/popup/context_menu.rs +++ b/src/ui/popup/context_menu.rs @@ -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); }