jg-agent-hq 13.6.1 → 13.6.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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.6.2
4
+
5
+ - Preserve an initialized Claude connection when the request that reopened its parked process times out waiting for input acknowledgment. A matching late replay confirms the original send without repeating its text.
6
+
3
7
  ## 13.6.1
4
8
 
5
9
  - Confirm Claude steers consumed by autonomous background follow-ups using the saved-history anchor captured by their current controller. Exact input identity, content, workspace and controller checks remain required.
package/api/README.md CHANGED
@@ -115,6 +115,8 @@ Shutdown preserves a quarantined Codex record's uncertain ownership, producing r
115
115
 
116
116
  A failed Claude connection first makes its conversation uncertain. Once the runtime proves the exact owned process group has exited and releases that controller, the matching known conversation becomes managed and inactive in the same runtime. Its producing epoch, active turn and pending action reference clear; pending approvals expire, submitted deliveries stay uncertain and queued entries stay paused. This proof does not complete an acknowledged turn or establish whether uncertain input ran. A stale controller, changed runtime/workspace/native identity, or competing native terminal cannot release a replacement owner. Failed shutdown proof retains uncertainty and prevents runtime ownership release. An explicit `thread-resume` can reopen the inactive conversation under its existing native identity without replaying earlier input.
117
117
 
118
+ An initialized owned Claude connection outlives the request that opened it. An input acknowledgment timeout leaves delivery uncertain and preserves that connection, including after reopening a parked session. A matching late replay confirms the original action without sending its text again. Startup cancellation still closes a process that has not initialized.
119
+
118
120
  Codex approval identities are scoped to their native connection, because a replacement daemon may reuse request IDs. A reissued request opens a new approval; earlier approvals stay expired. A response prepared for an earlier connection cannot write to or decline a request on its replacement. The native response still uses the exact request ID supplied by Codex.
119
121
 
120
122
  ## Providers and capabilities
@@ -217,6 +217,9 @@ export const createClaudeRpc = async (invalidate, control, lane, signal) => {
217
217
  data: { kind: 'agent-unavailable' },
218
218
  cause: initialized.error,
219
219
  });
220
+ // owned sessions outlive the operation that opened them, including a late input replay
221
+ if (control)
222
+ signal?.removeEventListener('abort', cancel);
220
223
  isInitialized = true;
221
224
  return {
222
225
  version: initialized.data.claude_code_version ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jg-agent-hq",
3
- "version": "13.6.1",
3
+ "version": "13.6.2",
4
4
  "description": "Native Claude Code and Codex session control, history, usage and recoverable local storage for Node.js apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",