@scotthuang/agent-knock-knock 0.11.1 → 0.11.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.2 - 2026-08-08
4
+
5
+ ### Fixed
6
+
7
+ - Filter Codex resume candidates by workspace, source, archive state, and provider before applying the SQLite result limit, so older same-workspace threads are not dropped by unrelated global history.
8
+ - Keep the current adapter version separate from each candidate's source agent version, allowing historical Codex threads to remain resumable when their rollout metadata agrees while preserving the complete snapshot, ownership, binding, and identity safety fences.
9
+
3
10
  ## 0.11.1 - 2026-08-07
4
11
 
5
12
  ### Fixed
package/dist/src/cli.js CHANGED
@@ -5271,12 +5271,16 @@ function decodeThreadCandidateToken(value) {
5271
5271
  }
5272
5272
  if (!isRecord(parsed) ||
5273
5273
  parsed.schema !== "agent-knock-knock/thread-candidate-token" ||
5274
- parsed.version !== 1 ||
5274
+ !(parsed.version === 1 || parsed.version === 2) ||
5275
5275
  !["codex", "claude"].includes(String(parsed.agent)) ||
5276
5276
  !isExactNativeThreadId(parsed.nativeThreadId) ||
5277
5277
  !stringValue(parsed.cwd) ||
5278
5278
  !["codex_rollout", "claude_transcript"].includes(String(parsed.source)) ||
5279
5279
  !stringValue(parsed.agentVersion) ||
5280
+ (parsed.version === 1
5281
+ ? parsed.sourceAgentVersion !== undefined
5282
+ : (!stringValue(parsed.sourceAgentVersion) ||
5283
+ parsed.sourceAgentVersion === parsed.agentVersion)) ||
5280
5284
  !isRecord(parsed.fileToken) ||
5281
5285
  !stringValue(parsed.fileToken.path) ||
5282
5286
  !stringValue(parsed.fileToken.device) ||