Skip to content

Commit 5f27cc8

Browse files
ersinkocclaude
andcommitted
fix(types): make Session.isActive writable and add revokedAt
Required for session revocation fix — close() needs to set isActive=false and revokedAt timestamp on the Session object. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c1250ba commit 5f27cc8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/core/src/services/session-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ export interface Session {
4545
readonly platformChatId?: string;
4646

4747
/** Whether the session is currently active */
48-
readonly isActive: boolean;
48+
isActive: boolean;
49+
50+
/** Timestamp when session was revoked (set by close()) */
51+
revokedAt?: Date;
4952

5053
/** Arbitrary session metadata */
5154
readonly metadata: Record<string, unknown>;

0 commit comments

Comments
 (0)