dsh-plugin-marginalia 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/client.js +4 -3
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -966,9 +966,10 @@ window.__ModuleLoader__.load({
966
966
 
967
967
  function MarginaliaBody(props) {
968
968
  const sessionId = props?.sessionId;
969
- const sessionStatus =
970
- typeof props?.useSessionStatus === 'function' ? props.useSessionStatus() : undefined;
971
- const isMainRunning = Boolean(sessionStatus?.running);
969
+ const isMainRunning =
970
+ typeof props?.useSessionStatus === 'function'
971
+ ? Boolean(props.useSessionStatus((s) => Boolean(s?.running)))
972
+ : false;
972
973
 
973
974
  const [, setLocaleTick] = React.useState(0);
974
975
  React.useEffect(() => ctx.locale.subscribe(() => setLocaleTick((v) => v + 1)), []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-marginalia",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Marginalia: Ask side-channel questions about the main conversation or send prompts directly from the right sidebar.",
5
5
  "type": "module",
6
6
  "license": "MIT",