99from copilot import ModelCapabilitiesOverride , ModelSupportsOverride
1010from copilot .session import PermissionHandler
1111
12- from .testharness import E2ETestContext
12+ from .testharness import E2ETestContext , mark_inactive_for_resume
1313
1414pytestmark = pytest .mark .asyncio (loop_scope = "module" )
1515
@@ -217,6 +217,7 @@ async def test_should_forward_custom_provider_headers_on_resume(self, ctx: E2ETe
217217 )
218218 session_id = session1 .session_id
219219
220+ mark_inactive_for_resume (session1 )
220221 session2 = await ctx .client .resume_session (
221222 session_id ,
222223 on_permission_request = PermissionHandler .approve_all ,
@@ -314,6 +315,7 @@ async def test_should_apply_workingdirectory_on_session_resume(self, ctx: E2ETes
314315 )
315316 session_id = session1 .session_id
316317
318+ mark_inactive_for_resume (session1 )
317319 session2 = await ctx .client .resume_session (
318320 session_id ,
319321 on_permission_request = PermissionHandler .approve_all ,
@@ -335,6 +337,7 @@ async def test_should_apply_systemmessage_on_session_resume(self, ctx: E2ETestCo
335337 session_id = session1 .session_id
336338
337339 resume_instruction = "End the response with RESUME_SYSTEM_MESSAGE_SENTINEL."
340+ mark_inactive_for_resume (session1 )
338341 session2 = await ctx .client .resume_session (
339342 session_id ,
340343 on_permission_request = PermissionHandler .approve_all ,
@@ -394,6 +397,7 @@ async def test_should_apply_instruction_directories_on_resume(self, ctx: E2ETest
394397 working_directory = project_dir ,
395398 )
396399
400+ mark_inactive_for_resume (session1 )
397401 session2 = await ctx .client .resume_session (
398402 session1 .session_id ,
399403 on_permission_request = PermissionHandler .approve_all ,
@@ -416,6 +420,7 @@ async def test_should_apply_availabletools_on_session_resume(self, ctx: E2ETestC
416420 )
417421 session_id = session1 .session_id
418422
423+ mark_inactive_for_resume (session1 )
419424 session2 = await ctx .client .resume_session (
420425 session_id ,
421426 on_permission_request = PermissionHandler .approve_all ,
0 commit comments