Skip to content

Commit b1195fd

Browse files
author
Z User
committed
fix(v7.2.6): double-fork technique — popup survives shell exit
Step 1.5 updated: ( setsid bash $DEV_SH </dev/null >/dev/null 2>&1 & ) & Double-fork makes process orphan (parent=PID 1) → survive shell exit. No restart needed!
1 parent dc2db7e commit b1195fd

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.checksums

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
c23fbce06ef2441ed19203e9ee7e6ada114bd45d6be66e89dba96ae3ee3eba93 skill/stellar-trails/SKILL.md
1+
6a0fa976f1d621073b7055eb74a3db7dddcae47d881032fd3699fba5b5331a64 skill/stellar-trails/SKILL.md
22
bc94ab2e09016f3121a9cff540cf13dec43891e54e4052ab961cce3f6d84dc0a skill/stellar-trails/dev.sh
3-
76c4e5b9f7cd5cf1519e601edc71624f1b341a15cf0ff8908f6ac4313fedae81 skill/stellar-trails/index.html
3+
0ae14b40599e337375ca1bb0a422523f1016b3927fa0cfe3fb39f404150ec143 skill/stellar-trails/index.html
44
7efec5b7b90aa1164965546a58a6b81dc654d876cea10ed30cc9ec6c2a7cb2a3 skill/stellar-trails/CHANGELOG.md
55
88752dd1798dba877cc7b23a71cfeba35424e3101e29f3fab9ad5520757b1765 skill/stellar-trails/README.md
66
d66d9650b2909d1d5fb3b8dbdd43cfccff2a06392a4a1fd6039a00321015f8ea skill/stellar-trails/memory-template.md

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**Universal task workflow for LLM agents**
88

9-
[![Version](https://img.shields.io/badge/version-7.2.5-blue.svg)](skill/stellar-trails/CHANGELOG.md)
9+
[![Version](https://img.shields.io/badge/version-7.2.6-blue.svg)](skill/stellar-trails/CHANGELOG.md)
1010
[![Latest](https://img.shields.io/badge/tag-latest-brightgreen.svg)](https://github.com/hoshiyomiX/stellar-trails/releases/tag/latest)
1111
[![Language](https://img.shields.io/badge/language-Markdown-4EAA25.svg)]()
1212
[![Platform](https://img.shields.io/badge/platform-z.ai-7C3AED.svg)](https://z.ai)
@@ -42,7 +42,7 @@ clawhub install stellar-trails
4242
- ✓ ClawHub handles storage, extraction, and version tracking
4343
- ✓ Moderation status: CLEAN (no suspicious patterns)
4444

45-
**After install:** Invoke via `Skill(command="stellar-trails")` — banner `☄️ STELLAR TRAILS · v7.2.5 · ACTIVE`.
45+
**After install:** Invoke via `Skill(command="stellar-trails")` — banner `☄️ STELLAR TRAILS · v7.2.6 · ACTIVE`.
4646

4747
**Update to latest version:**
4848
```bash

skill/stellar-trails/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ description: "Activates on every task without exception: coding (features, bugs,
66

77
## Metadata
88

9-
- **version**: 7.2.5
9+
- **version**: 7.2.6
1010

1111
## Activation
1212

1313
```
14-
☄️ STELLAR TRAILS · v7.2.5 · ACTIVE
14+
☄️ STELLAR TRAILS · v7.2.6 · ACTIVE
1515
Phase State Machine · Traceability IDs · Phase Gates · Scope Commitment · Adaptive Pivot · SSV · SADC · Memory · Continuity · Universal · Stateless
1616
```
1717

@@ -119,14 +119,14 @@ test -f /home/z/my-project/skills/stellar-trails/SKILL.md \
119119
# v7.2.1: bash /home/z/my-project/.zscripts/dev.sh & → local file, background
120120
#
121121
# Defensive:
122-
# - `nohup ... &` agar tidak terkill saat shell exit
123-
# - `disown` agar tidak muncul di job table
122+
# - Double-fork ( setsid ... & ) & agar process jadi orphan (parent=PID 1) → survive shell exit
123+
# - setsid: create new session (detach dari controlling terminal)
124124
# - `2>/dev/null` suppress output (silent)
125125
# - `|| true` agar skill tetap activates walau dev.sh gagal start
126126
# - Cek port :3000 dulu — jika sudah listening, skip (idempotent)
127127
DEV_SH="/home/z/my-project/.zscripts/dev.sh"
128128
if [ -f "$DEV_SH" ] && ! ss -tlnp 2>/dev/null | grep -q ':3000 '; then
129-
nohup bash "$DEV_SH" >/dev/null 2>&1 & disown 2>/dev/null || true
129+
( setsid bash "$DEV_SH" </dev/null >/dev/null 2>&1 & ) &
130130
fi
131131
```
132132
**v7.2.1 change**: Step 1.5 baru — enforce run `dev.sh` background untuk popup preview auto-start. Defensive: port guard (idempotent), `nohup ... & disown` (non-blocking, survive shell exit), `|| true` (skill tetap activates walau dev.sh gagal). dev.sh sendiri sudah audited clean di v7.2.0 (60 lines, 0 red flag patterns, local file dari trusted ZAI zip extraction).
@@ -139,7 +139,7 @@ Determine: complexity tier (Minimal/Simple/Standard/Complex), task type (Coding/
139139

140140
**Step 4 — Confirm activation:**
141141
```
142-
☄️ STELLAR TRAILS · v7.2.5 · ACTIVE
142+
☄️ STELLAR TRAILS · v7.2.6 · ACTIVE
143143
Phase: IDLE → SPECIFY
144144
Complexity: [tier] | Task Type: [type] | Continuation: [NEW / YES]
145145
```

skill/stellar-trails/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ <h1>Stellar Trails</h1>
508508
</p>
509509
<div class="version-row">
510510
<span class="badge"><span class="dot"></span> Dev server running</span>
511-
<span class="badge">v<span class="badge-version">7.2.5</span></span>
511+
<span class="badge">v<span class="badge-version">7.2.6</span></span>
512512
<span class="badge">☄️ Stateless</span>
513513
</div>
514514
</section>

0 commit comments

Comments
 (0)