chatccc 0.2.35 → 0.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/session.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatccc",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "Feishu bot bridge for Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/session.ts CHANGED
@@ -521,11 +521,11 @@ export async function resumeAndPrompt(
521
521
  if (sendInterval) clearInterval(sendInterval);
522
522
  revokeAgentImageGrant(imageGrant.token);
523
523
  revokeAgentFileGrant(fileGrant.token);
524
- clearSessionGrants(sessionId);
525
524
  }
526
525
 
527
526
  const cEntry = chatSessionMap.get(chatId);
528
527
  if (!cEntry || cEntry.gen !== myGen) return;
528
+ clearSessionGrants(sessionId);
529
529
  const wasStopped = cEntry.stopped;
530
530
  const prevTs = lastMsgTimestamps.get(chatId);
531
531
  if (prevTs === undefined || cEntry.msgTimestamp > prevTs) {