@norman-else/dsh-claude 0.1.14 → 0.1.16

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/lib/client.js CHANGED
@@ -1721,11 +1721,12 @@ window.__ModuleLoader__.load({
1721
1721
  /** Execute through this plugin's injected services rebound to the target
1722
1722
  * session scope; the input-trigger action context does not inject them. */
1723
1723
  async function submitClaudeCommand(ctx, session, command, args) {
1724
- const scoped = ctx.sessions.scope(session.sessionId);
1725
- if (scoped === void 0) return {
1724
+ const sessionCtx = ctx.sessions.scope(session.sessionId);
1725
+ if (sessionCtx === void 0) return {
1726
1726
  kind: "error",
1727
1727
  text: "Claude session is unavailable"
1728
1728
  };
1729
+ const scoped = ctx.extend(sessionCtx);
1729
1730
  const line = `/${command.claudeName}${args.length === 0 ? "" : ` ${args}`}`;
1730
1731
  try {
1731
1732
  await scoped.conversation.send(line);