Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotnet/test/E2E/ModeHandlersE2ETests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task Should_Invoke_Exit_Plan_Mode_Handler_When_Model_Uses_Tool()
var (request, invocation) = await handlerTask.Task.WaitAsync(TimeSpan.FromSeconds(30));
Assert.Equal(session.SessionId, invocation.SessionId);
Assert.Equal(summary, request.Summary);
Assert.Equal(["interactive", "autopilot", "exit_only"], request.Actions);
Assert.Equal(["autopilot", "interactive", "exit_only"], request.Actions);
Assert.Equal("interactive", request.RecommendedAction);
Assert.NotNull(request.PlanContent);

Expand Down
2 changes: 1 addition & 1 deletion go/internal/e2e/mode_handlers_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestModeHandlersE2E(t *testing.T) {
if request.Summary != planSummary {
t.Fatalf("Expected summary %q, got %q", planSummary, request.Summary)
}
if len(request.Actions) != 3 || request.Actions[0] != "interactive" || request.Actions[1] != "autopilot" || request.Actions[2] != "exit_only" {
if len(request.Actions) != 3 || request.Actions[0] != "autopilot" || request.Actions[1] != "interactive" || request.Actions[2] != "exit_only" {
t.Fatalf("Unexpected actions: %#v", request.Actions)
}
if request.RecommendedAction != "interactive" {
Expand Down
2 changes: 1 addition & 1 deletion nodejs/test/e2e/mode_handlers.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe("Mode handlers", async () => {
expect(exitPlanModeRequests).toHaveLength(1);
expect(exitPlanModeRequests[0]).toMatchObject({
summary: PLAN_SUMMARY,
actions: ["interactive", "autopilot", "exit_only"],
actions: ["autopilot", "interactive", "exit_only"],
recommendedAction: "interactive",
});
expect(exitPlanModeRequests[0].planContent).toBeDefined();
Expand Down
2 changes: 1 addition & 1 deletion python/e2e/test_mode_handlers_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def on_exit_plan_mode_request(request, invocation):
assert len(exit_plan_mode_requests) == 1
request = exit_plan_mode_requests[0]
assert request["summary"] == PLAN_SUMMARY
assert request["actions"] == ["interactive", "autopilot", "exit_only"]
assert request["actions"] == ["autopilot", "interactive", "exit_only"]
assert request["recommendedAction"] == "interactive"
assert request.get("planContent") is not None

Expand Down
4 changes: 2 additions & 2 deletions rust/tests/e2e/mode_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async fn should_invoke_exit_plan_mode_handler_when_model_uses_tool() {
assert_eq!(request.summary, PLAN_SUMMARY);
assert_eq!(
request.actions,
["interactive", "autopilot", "exit_only"].map(str::to_string)
["autopilot", "interactive", "exit_only"].map(str::to_string)
);
assert_eq!(request.recommended_action, "interactive");

Expand All @@ -146,8 +146,8 @@ async fn should_invoke_exit_plan_mode_handler_when_model_uses_tool() {
assert_eq!(
requested_data.actions,
[
ExitPlanModeAction::Interactive,
ExitPlanModeAction::Autopilot,
ExitPlanModeAction::Interactive,
ExitPlanModeAction::ExitOnly,
]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ conversations:
function:
name: exit_plan_mode
arguments: '{"summary":"Greeting file implementation
plan","actions":["interactive","autopilot","exit_only"],"recommendedAction":"interactive"}'
plan","actions":["autopilot","interactive","exit_only"],"recommendedAction":"interactive"}'
- role: tool
tool_call_id: toolcall_0
content: >-
Expand Down
Loading