feat(statusline): show active spec slug instead of disabled active-plan#55
Open
hapo-nghialuu wants to merge 1 commit into
Open
feat(statusline): show active spec slug instead of disabled active-plan#55hapo-nghialuu wants to merge 1 commit into
hapo-nghialuu wants to merge 1 commit into
Conversation
Replace the disabled active-plan indicator with active-spec detection. detectActiveSpec() scans specs/*/spec.json for status in_progress (resolving paths.specs from runtime.json) and renders "📋 <slug>" in the location line; hidden when no spec is active. Removes the unused session temp-file activePlan lookup that fed the disabled display.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mục tiêu
Status line đang hard-code tắt chỉ báo plan (
planPart = ''). Thay bằng chỉ báo spec đang active và hiển thị ra.Thay đổi
detectActiveSpec(baseDir): scanspecs/*/spec.json, lấy slug spec đầu tiên cóstatus: in_progress(hỗ trợ legacyin-progress); đọcpaths.specstừruntime.json(defaultspecs); fail-open.📋 <slug>ở location line; tự ẩn khi không có spec active.ck-session-*.json→session.activePlan(dead code, display vốn đã tắt).ctx.activePlan→ctx.activeSpec.packages/spec/src/claude/status.cjs) và installed copy (.claude/status.cjs).Tái dùng đúng pattern discovery của
hooks/spec-state.cjs(first match wins).Verify
node --check status.cjs✓in_progress→ hiện📋 user-auth; không có → ẩn, không lỗi ✓run-skill-self-tests.mjs: 42 pass / 0 fail ✓Câu hỏi mở
detectActiveSpectrùng ~10 dòng logic vớispec-state.cjs— giữ inline (KISS) hay táchhooks/libdùng chung?