Align hotfix snapshots with pinned tool descriptions

(cherry picked from commit dfed4e6853)
This commit is contained in:
Alex Kira
2026-11-09 14:30:12 -08:00
committed by Ian MacLeod
parent 6eb875a15f
commit e1835142db
2 changed files with 10 additions and 10 deletions
@@ -1,6 +1,6 @@
---
source: core/tests/suite/scenarios_incremental_tools.rs
assertion_line: 644
assertion_line: 687
expression: "context_snapshot::format_request_history_snapshot(scenario, &requests,\n&ContextSnapshotOptions::default().rewrite_known_segments().include_request_settings(),)"
---
Scenario: MCP refreshes remove one tool, then its whole namespace, before restoring both tools. Removal notices append alone; restoration appends one developer notice before both namespace declarations. Unchanged turns do not repeat updates.
@@ -19,8 +19,8 @@ Settings:
tools (1; hash=f359ca6f02a419d6):
- web_search; hash=f103e327c6870a46
-- request 1 (turn) --
00:additional_tools/developer (3; hash=c6476125e1d67bb3):
- namespace/functions; hash=6475578c7f948d18
00:additional_tools/developer (3; hash=7748a53142f449b7):
- namespace/functions; hash=124fee69a69ed6b2
- function/exec_command
- function/write_stdin
- function/list_mcp_resources
@@ -1,6 +1,6 @@
---
source: core/tests/suite/scenarios_incremental_tools.rs
assertion_line: 399
assertion_line: 435
expression: "context_snapshot::format_request_history_snapshot(if\nsuppress_model_change_announcements == Some(true)\n{\n \"A model switch suppresses the model ID announcement while appending changed tools and replacement instructions. Repeated turns preserve the prefix; compaction starts a new window with the updated base.\"\n} else if incremental_tools\n{\n \"Tool definitions precede the initial base instructions. A model switch appends one developer notice, changed tools, and replacement instructions without rewriting the prefix; compaction starts a new window with the updated base.\"\n} else\n{\n \"Regular Responses requests carry the full current tool catalog without an incremental notice; changed execution instructions replace the catalog on subsequent requests.\"\n}, &requests,\n&ContextSnapshotOptions::default().rewrite_known_segments().include_request_settings(),)"
---
Scenario: Tool definitions precede the initial base instructions. A model switch appends one developer notice, changed tools, and replacement instructions without rewriting the prefix; compaction starts a new window with the updated base.
@@ -19,8 +19,8 @@ Settings:
tools (1; hash=16d317804b13dd3d):
- web_search; hash=e214d4db1bc49e89
-- request 1 (turn) --
00:additional_tools/developer (2; hash=019c865b71a05fec):
- namespace/functions; hash=f3355f5705e28592
00:additional_tools/developer (2; hash=b07492b5514a41d0):
- namespace/functions; hash=cc6e8cf0e5405f3a
- custom/exec
- function/wait
- function/exec_command
@@ -49,8 +49,8 @@ Settings:
Settings: relative to window 1
model: "updated-tools-model"
-- request 3 (turn) --
00:additional_tools/developer (2; hash=019c865b71a05fec):
- namespace/functions; hash=f3355f5705e28592
00:additional_tools/developer (2; hash=b07492b5514a41d0):
- namespace/functions; hash=cc6e8cf0e5405f3a
- custom/exec
- function/wait
- function/exec_command
@@ -96,8 +96,8 @@ Settings: relative to window 1
## Window 3 (after request 5: input diverged at item 00)
Settings: same as window 2
-- request 6 (turn) --
00:additional_tools/developer (2; hash=7df544e43dd38360):
- namespace/functions; hash=1e51a9a9273be2f8
00:additional_tools/developer (2; hash=f9f0840b2e42f7f5):
- namespace/functions; hash=9d5d7a0adab05fef
- custom/exec
- function/wait
- function/exec_command