Skip to content

Add Rust low-level tool-definition E2E test [5/6]#1727

Merged
edburns merged 2 commits into
mainfrom
edburns/1682-05-rust-new-test
Jun 18, 2026
Merged

Add Rust low-level tool-definition E2E test [5/6]#1727
edburns merged 2 commits into
mainfrom
edburns/1682-05-rust-new-test

Conversation

@edburns

@edburns edburns commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds Rust low-level tool-definition E2E coverage and includes the session-lifecycle replay prompt alignment fix.

This PR is related to issue #1682 but does not fix #1682.

What changed

  • Adds low_level_tool_definition coverage in:
    • rust/tests/e2e/tools.rs
  • Includes session-lifecycle prompt alignment fix:
    • rust/tests/e2e/session_lifecycle.rs
  • Reuses shared low-level snapshot from PR Add Java low-level tool definition E2E test and skill [1/6] #1721:
    • test/snapshots/tools/low_level_tool_definition.yaml
  • Keeps low-level tool list aligned with snapshot-exercised tools only; leaves dedicated grep-override coverage in the existing override-specific test.

Dependency / sequencing

Related

Related to issue #1682 but does not fix #1682.

Align low_level_tool_definition coverage with PR #1721 snapshot behavior by only defining tools exercised by the shared snapshot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 18, 2026 19:57
@edburns edburns requested a review from a team as a code owner June 18, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Rust E2E coverage for the “low-level tool definition” scenario (shared replay snapshot) and tweaks a Rust session-lifecycle E2E prompt to align with replay expectations.

Changes:

  • Added a new Rust E2E test (low_level_tool_definition) that registers two custom tools, constrains available tools via ToolSet, and asserts both assistant output and handler-side state.
  • Added Rust tool handler implementations for set_current_phase and search_items used by the new E2E test.
  • Updated the session-lifecycle test’s second prompt string.
Show a summary per file
File Description
rust/tests/e2e/tools.rs Adds a new low-level tool-definition E2E test plus new tool handlers used by the test.
rust/tests/e2e/session_lifecycle.rs Changes the second session’s prompt text used by the replay-based lifecycle test.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread rust/tests/e2e/session_lifecycle.rs Outdated
Comment thread rust/tests/e2e/tools.rs
"phase": {
"type": "string",
"description": "Current phase",
"pattern": "^(searching|analyzing|done)$"
The snapshot expects 'Say world' but the branch had changed it to 'Say hi',
causing 'No cached response found' failures across all three OS variants.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edburns edburns merged commit 9b97c2e into main Jun 18, 2026
16 checks passed
@edburns edburns deleted the edburns/1682-05-rust-new-test branch June 18, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Java: Ergonomics: Defining tools

2 participants