@mingxy/opencode-mascot 0.4.37 → 0.4.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/opencode-mascot",
3
- "version": "0.4.37",
3
+ "version": "0.4.38",
4
4
  "description": "OpenCode TUI mascot plugin framework - customizable ASCII mascots for your terminal",
5
5
  "author": "mingxy",
6
6
  "license": "MIT",
@@ -44,7 +44,6 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
44
44
  const [posY, setPosY] = createSignal(2);
45
45
  const [containerWidth, setContainerWidth] = createSignal(0);
46
46
  const [zBoost, setZBoost] = createSignal(false);
47
- let firstStatus = true;
48
47
  let dragStartX = 0;
49
48
  let dragStartY = 0;
50
49
  let dragAnchorX = 0;
@@ -147,10 +146,6 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
147
146
  props.api.event.on("session.status", (data: unknown) => {
148
147
  const payload = data as { type?: string; properties?: { sessionID?: string; status?: { type?: string } } } | null;
149
148
  const statusType = payload?.properties?.status?.type;
150
- if (firstStatus) {
151
- firstStatus = false;
152
- renderers[currentName()].scatterIn();
153
- }
154
149
  if (statusType === "busy" || statusType === "retry") {
155
150
  if (hideSide) returnToView();
156
151
  renderers[currentName()].setState("busy");
@@ -194,6 +189,10 @@ export function SidebarMascot(props: SidebarMascotProps): JSX.Element {
194
189
  renderers[currentName()].scatterIn();
195
190
  });
196
191
 
192
+ setTimeout(() => {
193
+ renderers[currentName()].scatterIn();
194
+ }, 2000);
195
+
197
196
  return (
198
197
  <box
199
198
  position="absolute"