fix(status): --detailed shows the setup checklist too · Entire
fix(status): --detailed shows the setup checklist too
771036b·
peyton-alt·13h ago·2 files·+25 added/-0 removed
The rung checklist rendered only in the short view; --detailed silently hid remaining onboarding steps.
Trail-Finding: 019f70cb-289
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Sessions
01KXRJ5XEM2F7H39P8N824SCS5View transcript
[?
Fix Onboarding History and Scan Cache IssuesClaude Code·6 steps](/content/gh/entireio/cli/session/4c8ea8be-3447-426e-b8cb-07f2c8a04b71#timeline-01KXRJ5XEM2F7H39P8N824SCS5/index.html)
Changes
2
cmd/entire/cli
Mstatus.go+5
- Mstatus_test.go+20
154 unmodified lines
155
156
157
158
159
160
161
162
163
164
165
154 unmodified lines
if effectiveSettings.Enabled {
writeActiveSessions(ctx, w, sty)
// Same setup checklist the short view shows — --detailed must not
// hide remaining onboarding steps.
if results := onboardingStatusResults(ctx); len(results) > 0 {
fmt.Fprint(w, renderOnboardingChecklist(results, sty))
}
}
writeAgentHelpHint(w, sty)
Mcmd/entire/cli/status.go+5
2024 unmodified lines
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2024 unmodified lines
}
}
// --detailed must not hide remaining onboarding steps: the same rung
// checklist the short view shows renders there too.
func TestRunStatus_DetailedShowsSetupChecklist(t *testing.T) {
setupTestRepo(t)
writeSettings(t, testSettingsEnabled)
stubOnboardingResults(t, []onboarding.Result{
{Rung: onboarding.Rung{Key: onboarding.KeyHooks, Title: "Agent hooks"}, Check: onboarding.Check{State: onboarding.StateDone, Detail: "Claude Code"}},
{Rung: onboarding.Rung{Key: onboarding.KeyAuth, Title: "Logged in"}, Check: onboarding.Check{State: onboarding.StateMissing, Hint: "entire auth login"}},
})
var stdout bytes.Buffer
if err := runStatus(context.Background(), &stdout, true, false); err != nil {
t.Fatalf("runStatus() error = %v", err)
}
if out := stdout.String(); !strings.Contains(out, "Setup 1/2 complete") {
t.Errorf("expected setup checklist in detailed status, got: %s", out)
}
}
// Fully connected collapses to a single quiet line carrying the repo's
// entire.io overview link. Not parallel: pins the web base via env.
func TestRunStatus_CollapsedChecklistWhenConnected(t *testing.T) {