Skip to content

Commit 08b0a24

Browse files
authored
Merge pull request #21 from baskduf/release/0.5.1
fix: clarify update release checkout output
2 parents f360a73 + b22a3d5 commit 08b0a24

9 files changed

Lines changed: 31 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ This project uses a lightweight changelog format:
99
- `Fixed` for bug fixes.
1010
- `Security` for vulnerability-related changes.
1111

12+
## 0.5.1 - 2026-06-18
13+
14+
### Fixed
15+
16+
- Clarified `codex-fable5 update` output by showing the target ref, warning when release-tag checkout may detach HEAD, and printing post-update version details.
17+
1218
## 0.5.0 - 2026-06-18
1319

1420
### Added

README.ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ FableCodex は、Codex の作業に Fable 風の運用習慣を追加する Code
4040
安定版をインストールします。
4141

4242
```bash
43-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
43+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
4444
codex plugin add codex-fable5@fablecodex
4545
```
4646

@@ -219,7 +219,7 @@ plugins/codex-fable5/bin/codex-fable5 status
219219
安定版:
220220

221221
```bash
222-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
222+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
223223
codex plugin add codex-fable5@fablecodex
224224
```
225225

README.ko.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ FableCodex는 Codex 작업에 Fable식 운영 습관을 더하는 Codex 플러
4040
안정 버전을 설치합니다.
4141

4242
```bash
43-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
43+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
4444
codex plugin add codex-fable5@fablecodex
4545
```
4646

@@ -219,7 +219,7 @@ plugins/codex-fable5/bin/codex-fable5 status
219219
안정 버전:
220220

221221
```bash
222-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
222+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
223223
codex plugin add codex-fable5@fablecodex
224224
```
225225

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ It is useful when the cost of a missed step is higher than the cost of a little
4040
Install the stable release:
4141

4242
```bash
43-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
43+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
4444
codex plugin add codex-fable5@fablecodex
4545
```
4646

@@ -219,7 +219,7 @@ plugins/codex-fable5/bin/codex-fable5 status
219219
Stable release:
220220

221221
```bash
222-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
222+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
223223
codex plugin add codex-fable5@fablecodex
224224
```
225225

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ FableCodex 是一个 Codex 插件,用来把 Fable 风格的工作习惯加入
4040
安装稳定版:
4141

4242
```bash
43-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
43+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
4444
codex plugin add codex-fable5@fablecodex
4545
```
4646

@@ -219,7 +219,7 @@ plugins/codex-fable5/bin/codex-fable5 status
219219
稳定版:
220220

221221
```bash
222-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
222+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
223223
codex plugin add codex-fable5@fablecodex
224224
```
225225

README.zh-TW.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ FableCodex 是一個 Codex 外掛,會把 Fable 風格的工作習慣加入 Cod
4040
安裝穩定版:
4141

4242
```bash
43-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
43+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
4444
codex plugin add codex-fable5@fablecodex
4545
```
4646

@@ -219,7 +219,7 @@ plugins/codex-fable5/bin/codex-fable5 status
219219
穩定版:
220220

221221
```bash
222-
codex plugin marketplace add baskduf/FableCodex --ref v0.5.0
222+
codex plugin marketplace add baskduf/FableCodex --ref v0.5.1
223223
codex plugin add codex-fable5@fablecodex
224224
```
225225

plugins/codex-fable5/.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codex-fable5",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Fable-style Codex workflow with source-section coverage, goal and findings gates, verification grounding, VFF routing, and optional provider bridge guidance.",
55
"author": {
66
"name": "Codex Fable5 Maintainers"

plugins/codex-fable5/bin/codex-fable5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ cmd_update() {
128128
fi
129129

130130
if [ "$ref" = "main" ]; then
131+
printf 'codex-fable5: target ref %s\n' "$ref"
131132
current_ref=$(git -C "$REPO_ROOT" rev-parse --abbrev-ref HEAD)
132133
if [ "$current_ref" != "main" ]; then
133134
git -C "$REPO_ROOT" checkout main
@@ -141,6 +142,11 @@ cmd_update() {
141142
fi
142143
current_commit=$(git -C "$REPO_ROOT" rev-parse HEAD)
143144
target_commit=$(git -C "$REPO_ROOT" rev-parse "$ref^{commit}")
145+
target_short=$(git -C "$REPO_ROOT" rev-parse --short "$ref^{commit}")
146+
printf 'codex-fable5: target ref %s (%s)\n' "$ref" "$target_short"
147+
if printf '%s\n' "$ref" | grep -Eq '^v[0-9]+(\.[0-9]+)*$'; then
148+
printf '%s\n' "codex-fable5: checking out a release tag may leave this git checkout in detached HEAD state."
149+
fi
144150
if [ "$current_commit" = "$target_commit" ]; then
145151
printf 'codex-fable5: already up to date at %s\n' "$ref"
146152
else
@@ -149,6 +155,8 @@ cmd_update() {
149155
fi
150156
fi
151157

158+
printf '%s\n' "codex-fable5: post-update version:"
159+
cmd_version
152160
printf '%s\n' "codex-fable5: restart Codex to reload the plugin."
153161
}
154162

tests/test_ci_release.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ def test_update_command_updates_clean_checkout_to_requested_ref(self) -> None:
285285
)
286286
self.assertEqual(update.returncode, 0, update.stderr)
287287
self.assertIn("updates the FableCodex checkout/plugin package only", update.stdout)
288+
self.assertIn("target ref v0.4.4", update.stdout)
289+
self.assertIn("detached HEAD", update.stdout)
290+
self.assertIn("post-update version", update.stdout)
288291
self.assertIn("restart Codex", update.stdout)
289292

290293
head = subprocess.run(
@@ -374,6 +377,9 @@ def test_update_default_ignores_prerelease_tags(self) -> None:
374377
check=False,
375378
)
376379
self.assertEqual(update.returncode, 0, update.stderr)
380+
self.assertIn("target ref v1.0.0", update.stdout)
381+
self.assertIn("detached HEAD", update.stdout)
382+
self.assertIn("post-update version", update.stdout)
377383
self.assertIn("updated to v1.0.0", update.stdout)
378384

379385
head = subprocess.run(

0 commit comments

Comments
 (0)