parallax-opencode 0.3.1 → 0.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/dist/plugin.js
CHANGED
|
@@ -634,6 +634,10 @@ export default {
|
|
|
634
634
|
if (input.event.type === "session.created") {
|
|
635
635
|
const props = input.event.properties || {};
|
|
636
636
|
const info = (props.info || {});
|
|
637
|
+
// Ignore child sessions (subagents, background tasks).
|
|
638
|
+
// They have a parentID and would overwrite the main session's protocol state.
|
|
639
|
+
if (info.parentID)
|
|
640
|
+
return;
|
|
637
641
|
currentSessionId =
|
|
638
642
|
info.id ||
|
|
639
643
|
props.sessionID ||
|
|
@@ -764,6 +764,7 @@ ${s.lastObservation}`
|
|
|
764
764
|
if (input.event.type === "session.created") {
|
|
765
765
|
const props = input.event.properties || {};
|
|
766
766
|
const info = props.info || {};
|
|
767
|
+
if (info.parentID) return;
|
|
767
768
|
currentSessionId = info.id || props.sessionID || info.sessionID || null;
|
|
768
769
|
currentAgentName = info.agent || props.agent || null;
|
|
769
770
|
if (currentSessionId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parallax-opencode",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "PARALLAX ENGINE plugin for OpenCode -- protocol enforcement, friction-loop verification, mode switching (plan/build/debug), trace recording, coherence scoring, CI gate, and PR-ready trace artifacts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.js",
|
|
@@ -62,4 +62,3 @@
|
|
|
62
62
|
"vitest": "^3.2.4"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|