jg-agent-hq 13.3.1 → 13.3.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 +5 -0
- package/api/README.md +2 -0
- package/dist/providers/claude/control/stream.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 13.3.2
|
|
4
|
+
|
|
5
|
+
- Keep Claude's model-setting and local-command user replays from starting phantom turns. Only the exact pending input replay acknowledges an HQ turn; autonomous turns start on model output. Settings notices remain available in saved native history.
|
|
6
|
+
- Preserve message acknowledgement and input provenance after model changes and repeated settings updates, allowing pending, live and saved messages to reconcile without another send or a duplicate bubble. Native skills and genuine background turns retain their existing control paths.
|
|
7
|
+
|
|
3
8
|
## 13.3.1
|
|
4
9
|
|
|
5
10
|
- Document `pnpm install --frozen-lockfile` for development setup so installs use the committed dependency set.
|
package/api/README.md
CHANGED
|
@@ -332,6 +332,8 @@ A deletion whose `delete` step fails reports JG_AGENT_HQ_PROVIDER_FAILED, its me
|
|
|
332
332
|
|
|
333
333
|
### Claude native control
|
|
334
334
|
|
|
335
|
+
Idle local-command and settings user replays do not start inference or acknowledge a pending input. They remain in native saved history. A controlled input starts only on its matching replay or result; an autonomous turn starts on model output. This keeps model changes from introducing a phantom turn that would reject the next input's acknowledgement.
|
|
336
|
+
|
|
335
337
|
Each controlled session has one native `claude` process in the authorized workspace while it is in use. A session idle for 60 minutes since its last turn ended, or since it opened, gives up its process: the runtime reads its native settings once and closes the process, and the session stays idle with no state transition. Its skills and configuration reads answer from what it kept, an interrupt is refused as for any idle session, and stopping or releasing it needs no process. Input and renames first reopen it with `--resume`, or `--session-id` when it never had input, and its kept settings. A parked session keeps its controlled-thread slot, of 32 per runtime, and a runtime restart treats it like any other managed Claude session. A running or waiting session is never stopped, and neither is one with a background command still running, as Claude's `system:background_tasks_changed` list reports it, since closing its process would end the command; it waits another idle period instead. The runtime adds structured input/output, replayed user-message acknowledgements, partial-message output and `--permission-prompt-tool=stdio`. It applies only explicitly selected startup options, including model, instructions or an output schema. It preserves normal native settings, session persistence and permission handling. Native skills remain available. Native idle initialization, session identity and matching acknowledgements establish capability. Version labels and missing diagnostic version metadata do not disable compatible controls or file history.
|
|
336
338
|
|
|
337
339
|
Creation chooses a native UUID without inference, then names that exact session. Resume uses native `--resume` and verifies the session-id fence on the name control before marking the session idle. The operator's handoff confirmation establishes that another CLI controller is closed; file timestamps and file-backed unknown states do not establish this. Independently running CLIs are outside the runtime's state-directory coordination boundary.
|
|
@@ -267,6 +267,9 @@ export const receiveClaudeMessage = (session, raw, events) => {
|
|
|
267
267
|
unavailable();
|
|
268
268
|
acknowledge(session, events);
|
|
269
269
|
}
|
|
270
|
+
// settings and local-command replays are not inference; an autonomous turn starts on output
|
|
271
|
+
if (frame.type === 'user' && getActiveTurn(session) === undefined)
|
|
272
|
+
return;
|
|
270
273
|
const turn = getActiveTurn(session) ?? startNativeTurn(session, events);
|
|
271
274
|
if (frame.type === 'user' &&
|
|
272
275
|
!isReplay &&
|
package/package.json
CHANGED