You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Skipped after the runtime 1.0.56 bump. Runtime PR #9040 (commit b8e1220b45) changed
23
-
// SDKServer.handleConnectionClosed to tear down the session when the last RPC client
24
-
// disconnects, so the in-memory pending permission request is gone before the resumed
25
-
// client can satisfy it and HandlePendingPermissionRequest returns success=false. This
26
-
// test models same-process ForceStop+resume; it needs to be redesigned to either keep
27
-
// an owner connected (warm resume) or to model a true process restart against the
28
-
// persisted session state.
29
-
[Fact(Skip="Runtime 1.0.56 cleans up the session on last-client disconnect (copilot-agent-runtime PR #9040), so the in-memory pending request is gone before resume can satisfy it. Test needs redesign.")]
@@ -95,12 +88,7 @@ static string ResumePermissionTool([Description("Value to transform")] string va
95
88
$"ORIGINAL_SHOULD_NOT_RUN_{value}";
96
89
}
97
90
98
-
// Skipped for the same reason as Should_Continue_Pending_Permission_Request_After_Resume:
99
-
// runtime 1.0.56 (copilot-agent-runtime PR #9040) tears down the session when the last
100
-
// RPC client disconnects, so the in-memory pending external tool call is gone before
101
-
// the resumed client can satisfy it. Needs redesign to keep an owner connected (warm)
102
-
// or to model true process-restart resume from persisted state.
103
-
[Fact(Skip="Runtime 1.0.56 cleans up the session on last-client disconnect (copilot-agent-runtime PR #9040), so the in-memory pending tool call is gone before resume can satisfy it. Test needs redesign.")]
t.Run("should continue pending permission request after resume", func(t*testing.T) {
28
-
// Skipped after the runtime 1.0.56 bump. Runtime PR #9040 (commit b8e1220b45)
29
-
// changed SDKServer.handleConnectionClosed to tear down the session when the
30
-
// last RPC client disconnects, so the in-memory pending permission request is
31
-
// gone before the resumed client can satisfy it and HandlePendingPermissionRequest
32
-
// returns Success=false. This test models same-process ForceStop+resume; it
33
-
// needs to be redesigned to either keep an owner connected (warm resume) or to
34
-
// model a true process restart against the persisted session state.
35
-
t.Skip("Runtime 1.0.56 cleans up the session on last-client disconnect (copilot-agent-runtime PR #9040), so the in-memory pending request is gone before resume can satisfy it. Test needs redesign.")
t.Run("should continue pending external tool request after resume", func(t*testing.T) {
150
-
// Skipped for the same reason as "should continue pending permission request
151
-
// after resume": runtime 1.0.56 (copilot-agent-runtime PR #9040) tears down
152
-
// the session when the last RPC client disconnects, so the in-memory pending
153
-
// external tool call is gone before the resumed client can satisfy it. Needs
154
-
// redesign to keep an owner connected (warm) or to model true process-restart
155
-
// resume from persisted state.
156
-
t.Skip("Runtime 1.0.56 cleans up the session on last-client disconnect (copilot-agent-runtime PR #9040), so the in-memory pending tool call is gone before resume can satisfy it. Test needs redesign.")
0 commit comments