Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): dismiss orphaned approvals #11839

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/11839/headopened View on GitHub

Showing 11 changed files with 177 additions and 3 deletions (loading 8).

x
0 of 11 viewed, 11 left
25 additions and 0 deletionsapps/server/integration/orphanedProviderSessionStartup.integration.test.tsModified
View file
@@ -1,6 +1,7 @@
import * as NodeServices from "@effect/platform-node/NodeServices";
import {
CommandId,
+ EventId,
DEFAULT_PROVIDER_INTERACTION_MODE,
EnvironmentId,
MessageId,
@@ -194,6 +195,21 @@
createdAt,
});
+ yield* engine.dispatch({
+ type: "thread.activity.append",
+ commandId: CommandId.make("approval-before-restart"),
+ threadId,
+ activity: {
+ id: EventId.make("approval-before-restart"),
+ kind: "approval.requested",
+ tone: "approval",
+ summary: "Command approval requested",
+ payload: { requestId: "approval-before-restart", requestKind: "command" },
+ turnId: null,
+ createdAt,
+ },
+ createdAt,
+ });
yield* directory.upsert({
threadId,
provider: ProviderDriverKind.make("codex"),