@getpaseo/server 0.1.86 → 0.1.87

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.
@@ -1371,6 +1371,9 @@ function getOpenCodeSubAgentMaps(state) {
1371
1371
  pendingChildToolPartsBySessionId: state.pendingChildToolPartsBySessionId,
1372
1372
  };
1373
1373
  }
1374
+ function isOpenCodeSessionTrackedByParent(sessionId, state) {
1375
+ return (sessionId === state.sessionId || state.subAgentCallIdByChildSessionId?.has(sessionId) === true);
1376
+ }
1374
1377
  function getOpenCodeSubAgentState(callId, state, toolCall) {
1375
1378
  const maps = getOpenCodeSubAgentMaps(state);
1376
1379
  const existing = maps.byCallId.get(callId);
@@ -1738,7 +1741,7 @@ function appendOpenCodeMessagePartDelta(event, state, events) {
1738
1741
  });
1739
1742
  }
1740
1743
  function appendOpenCodePermissionAsked(event, state, events) {
1741
- if (event.properties.sessionID !== state.sessionId) {
1744
+ if (!isOpenCodeSessionTrackedByParent(event.properties.sessionID, state)) {
1742
1745
  return;
1743
1746
  }
1744
1747
  const metadata = readOpenCodeRecord(event.properties.metadata);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/server",
3
- "version": "0.1.86",
3
+ "version": "0.1.87",
4
4
  "description": "Paseo backend server",
5
5
  "files": [
6
6
  "dist/server",
@@ -57,10 +57,10 @@
57
57
  "dependencies": {
58
58
  "@agentclientprotocol/sdk": "^0.17.1",
59
59
  "@anthropic-ai/claude-agent-sdk": "^0.2.133",
60
- "@getpaseo/client": "0.1.86",
61
- "@getpaseo/highlight": "0.1.86",
62
- "@getpaseo/protocol": "0.1.86",
63
- "@getpaseo/relay": "0.1.86",
60
+ "@getpaseo/client": "0.1.87",
61
+ "@getpaseo/highlight": "0.1.87",
62
+ "@getpaseo/protocol": "0.1.87",
63
+ "@getpaseo/relay": "0.1.87",
64
64
  "@isaacs/ttlcache": "^2.1.4",
65
65
  "@modelcontextprotocol/sdk": "^1.20.1",
66
66
  "@opencode-ai/sdk": "1.14.46",