Skip to content

test(java): re-enable ModeHandlers exit_plan_mode E2E assertions#2032

Open
arimu1 wants to merge 1 commit into
github:mainfrom
arimu1:fix/1547-java-mode-handlers-test
Open

test(java): re-enable ModeHandlers exit_plan_mode E2E assertions#2032
arimu1 wants to merge 1 commit into
github:mainfrom
arimu1:fix/1547-java-mode-handlers-test

Conversation

@arimu1

@arimu1 arimu1 commented Jul 19, 2026

Copy link
Copy Markdown

Summary

Re-enables ModeHandlersTest.shouldInvokeExitPlanModeHandlerWhenModelUsesTool, which was @Disabled in #1548 after the CLI 1.0.57 upgrade.

Shared snapshot work landed in #1639 and the other language SDKs were updated for the canonical action order in #2023; Java was still skipped because this test remained disabled.

This PR:

  • Removes the @Disabled workaround
  • Asserts canonical actions ["autopilot", "interactive", "exit_only"] and recommendedAction == "interactive"
  • Asserts matching event fields / feedback, aligned with the .NET E2E test

Fixes #1547

Test plan

  • cd test/harness && npm ci
  • cd java && mvn verify (local Copilot/GitHub auth as needed for E2E snapshots)
  • Confirm CI Java E2E ModeHandlersTest is green

Made with Cursor

Remove the CLI 1.0.57 @disabled workaround and assert the canonical
action order (autopilot, interactive, exit_only) plus recommendedAction,
matching the other language SDKs after snapshot updates.

Fixes github#1547

Co-authored-by: Cursor <cursoragent@cursor.com>
@arimu1
arimu1 requested a review from a team as a code owner July 19, 2026 14:40
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.

ModeHandlersTest.shouldInvokeExitPlanModeHandlerWhenModelUsesTool fails after CLI 1.0.57 upgrade

1 participant