@coda-console/claude 1.7.0 → 1.7.1

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.
package/agent/session.mjs CHANGED
@@ -452,7 +452,8 @@ export class ClaudeSession {
452
452
  this.update(this.sessionId, { sessionUpdate: 'config_option_update', configOptions: this.options() });
453
453
  }
454
454
  if (m.status === 'compacting' && !this.compaction?.active) this.compaction = { id: m.uuid ?? randomUUID(), active: true };
455
- if (m.status === 'compacting' || m.subtype === 'compact_boundary' || this.compaction?.active) {
455
+ // Success is the boundary: the status can finish first, before the boundary carrying the same compaction arrives.
456
+ if (m.status === 'compacting' || m.subtype === 'compact_boundary' || (this.compaction?.active && m.compact_result === 'failed')) {
456
457
  this.compaction ??= { id: m.uuid ?? randomUUID(), active: false };
457
458
  this.compaction.active = m.status === 'compacting';
458
459
  this.update(this.sessionId, { sessionUpdate: 'compaction_update', compactionId: this.compaction.id,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "id": "claude",
4
4
  "displayName": "Claude",
5
5
  "description": "Claude SDK Agent:Coda 基于 Claude Agent SDK 写的 ACP 入口,一个进程一个 SDK 会话;资源页的「Claude」面板显示会话报告的额度,可从 Coda 登录。",
6
- "version": "1.7.0",
6
+ "version": "1.7.1",
7
7
  "categories": ["Agent"],
8
8
  "dependencies": {
9
9
  "@agentclientprotocol/sdk": "1.4.0",