opencode-subagent-magazine 1.4.0 → 1.4.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.
@@ -1 +1 @@
1
- export declare const PLUGIN_VERSION = "1.4.0";
1
+ export declare const PLUGIN_VERSION = "1.4.1";
package/dist/_version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // auto-generated
2
- export const PLUGIN_VERSION = "1.4.0";
2
+ export const PLUGIN_VERSION = "1.4.1";
package/dist/index.js CHANGED
@@ -614,7 +614,7 @@ function SubAgentPanel(props) {
614
614
  // Background tasks: tool completion ≠ agent completion — keep running until session.idle
615
615
  // Only keep running if state metadata confirms a child session was spawned;
616
616
  // otherwise (failed spawn, invalid agent) mark as done so the entry isn't stuck forever.
617
- if (input?.run_in_background === true && status === "done") {
617
+ if ((input?.run_in_background === true || input?.background === true) && status === "done") {
618
618
  const stMetaCheck = st?.metadata;
619
619
  const hasChild = stMetaCheck?.session_id !== undefined || stMetaCheck?.sessionId !== undefined;
620
620
  if (hasChild)
@@ -1015,7 +1015,7 @@ function SubAgentPanel(props) {
1015
1015
  status = "done";
1016
1016
  // Background tasks: tool completion ≠ agent completion — keep running until session.idle
1017
1017
  // Only keep running if state metadata confirms a child session was spawned.
1018
- if (st?.input?.run_in_background === true && status === "done") {
1018
+ if ((st?.input?.run_in_background === true || st?.input?.background === true) && status === "done") {
1019
1019
  const scanStMeta = st?.metadata;
1020
1020
  const scanHasChild = scanStMeta?.session_id !== undefined || scanStMeta?.sessionId !== undefined;
1021
1021
  if (scanHasChild)
package/dist/tui.js CHANGED
@@ -11,7 +11,7 @@ import { createElement as _$createElement } from "@opentui/solid";
11
11
  import { createMemo, createSignal, createEffect, onMount, onCleanup, untrack, Show, For } from "solid-js";
12
12
 
13
13
  // src/_version.ts
14
- var PLUGIN_VERSION = "1.4.0";
14
+ var PLUGIN_VERSION = "1.4.1";
15
15
 
16
16
  // src/index.tsx
17
17
  var SUBAGENT_TOOLS = /* @__PURE__ */ new Set(["task", "delegate", "call_omo_agent"]);
@@ -634,7 +634,7 @@ function SubAgentPanel(props) {
634
634
  const input = st?.input;
635
635
  let status = "running";
636
636
  if (rawStatus === "completed") status = "done";
637
- if (input?.run_in_background === true && status === "done") {
637
+ if ((input?.run_in_background === true || input?.background === true) && status === "done") {
638
638
  const stMetaCheck = st?.metadata;
639
639
  const hasChild = stMetaCheck?.session_id !== void 0 || stMetaCheck?.sessionId !== void 0;
640
640
  if (hasChild) status = "running";
@@ -1015,7 +1015,7 @@ function SubAgentPanel(props) {
1015
1015
  }
1016
1016
  let status = "running";
1017
1017
  if (rawStatus === "completed") status = "done";
1018
- if (st?.input?.run_in_background === true && status === "done") {
1018
+ if ((st?.input?.run_in_background === true || st?.input?.background === true) && status === "done") {
1019
1019
  const scanStMeta = st?.metadata;
1020
1020
  const scanHasChild = scanStMeta?.session_id !== void 0 || scanStMeta?.sessionId !== void 0;
1021
1021
  if (scanHasChild) status = "running";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-subagent-magazine",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "OpenCode TUI plugin monitoring sub-agent invocation status in real time",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
package/src/_version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // auto-generated
2
- export const PLUGIN_VERSION="1.4.0";
2
+ export const PLUGIN_VERSION="1.4.1";
package/src/index.tsx CHANGED
@@ -665,7 +665,7 @@ function SubAgentPanel(props: {
665
665
  // Background tasks: tool completion ≠ agent completion — keep running until session.idle
666
666
  // Only keep running if state metadata confirms a child session was spawned;
667
667
  // otherwise (failed spawn, invalid agent) mark as done so the entry isn't stuck forever.
668
- if (input?.run_in_background === true && status === "done") {
668
+ if ((input?.run_in_background === true || input?.background === true) && status === "done") {
669
669
  const stMetaCheck = st?.metadata as Record<string, unknown> | undefined
670
670
  const hasChild = stMetaCheck?.session_id !== undefined || stMetaCheck?.sessionId !== undefined
671
671
  if (hasChild) status = "running"
@@ -1057,7 +1057,7 @@ function SubAgentPanel(props: {
1057
1057
  if (rawStatus === "completed") status = "done"
1058
1058
  // Background tasks: tool completion ≠ agent completion — keep running until session.idle
1059
1059
  // Only keep running if state metadata confirms a child session was spawned.
1060
- if ((st?.input as Record<string, unknown> | undefined)?.run_in_background === true && status === "done") {
1060
+ if (((st?.input as Record<string, unknown> | undefined)?.run_in_background === true || (st?.input as Record<string, unknown> | undefined)?.background === true) && status === "done") {
1061
1061
  const scanStMeta = st?.metadata as Record<string, unknown> | undefined
1062
1062
  const scanHasChild = scanStMeta?.session_id !== undefined || scanStMeta?.sessionId !== undefined
1063
1063
  if (scanHasChild) status = "running"