@adhdev/daemon-standalone 0.9.76-rc.28 → 0.9.76-rc.29

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/index.js CHANGED
@@ -45608,9 +45608,11 @@ ${effect.notification.body || ""}`.trim();
45608
45608
  }
45609
45609
  const sessionLookupFailed = !!targetSessionId && !session;
45610
45610
  const managerKey = this.extractIdeType(args, sessionLookupFailed);
45611
- let providerType;
45611
+ let providerType = args?.agentType || args?.providerType;
45612
45612
  if (!sessionLookupFailed) {
45613
- providerType = session?.providerType || args?.agentType || args?.providerType || this.inferProviderType(managerKey);
45613
+ providerType = session?.providerType || providerType || this.inferProviderType(managerKey);
45614
+ } else if (!providerType) {
45615
+ providerType = this.inferProviderType(managerKey);
45614
45616
  }
45615
45617
  return { session, managerKey, providerType, sessionLookupFailed };
45616
45618
  }
@@ -45690,7 +45692,8 @@ ${effect.notification.body || ""}`.trim();
45690
45692
  "pty_resize",
45691
45693
  "invoke_provider_script"
45692
45694
  ]);
45693
- if (this._currentRoute.sessionLookupFailed && sessionScopedCommands.has(cmd)) {
45695
+ const allowsInactiveReadChatFallback = cmd === "read_chat" && !!this._currentRoute.providerType && (typeof args?.providerSessionId === "string" && args.providerSessionId.trim().length > 0 || typeof args?.historySessionId === "string" && args.historySessionId.trim().length > 0);
45696
+ if (this._currentRoute.sessionLookupFailed && sessionScopedCommands.has(cmd) && !allowsInactiveReadChatFallback) {
45694
45697
  const result2 = {
45695
45698
  success: false,
45696
45699
  error: `Live session not found for targetSessionId: ${String(args?.targetSessionId || "").trim() || "unknown"}`