Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(opencode): settle pending requests during teardown #8441

ClosedPranshuRaj1(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/8441/headopened View on GitHub

Showing 6 changed files with 25 additions and 1 deletion (loading 4).

x
0 of 6 viewed, 6 left
22 additions and 0 deletionsapps/mobile/src/lib/threadActivity.test.tsModified
View file
@@ -194,6 +194,28 @@
​
expect(derivePendingApprovals([requested, resolved])).toEqual([]);
});
+​
+ it("derives unknown provider approvals as actionable generic approvals", () => {
+ const activity = makeActivity({
+ id: EventId.make("approval-unknown"),
+ kind: "approval.requested",
+ summary: "Approval requested",
+ createdAt: "2026-08-24T00:00:00.000Z",
+ payload: {
+ requestId: "req-unknown",
+ requestType: "unknown",
+ detail: "addCommentReaction|eyes|'confused'",
+ },
+ });
+​
+ expect(derivePendingApprovals([activity])).toMatchObject([
+ {
+ requestId: "req-unknown",
+ requestKind: "command",
+ detail: "addCommentReaction|eyes|'confused'",
+ },
+ ]);
+ });
});
​
function makeActivity(