Remove the retention question from onboarding; pathway defaults (30d team / 120d local)#397
Conversation
…ad (LLP 0137) Onboarding no longer asks "Cache retention (days)". The wizard's pathway fork decides the default: 30 days on the team pathway (and a managed machine's scoped re-entry), where the org server holds the durable copy; 120 days on a local-only install, where the local cache is the only copy of history. The orchestrator threads the local default into the pick phase as retentionDefault; hyp init --retention-days is unchanged (flag default stays 30) as the explicit override. The retention prompt factories (TUI text input + legacy readline) are deleted, along with the retentionPrompt seams in the walkthrough and wizard option types. The superseded programmatic walkthrough keeps the flat 30-day default without prompting. Docs: mints LLP 0137 (decision, Active) and amends LLP 0011's walkthrough transcript and defaults prose. Co-Authored-By: Claude Fable 5 <[email protected]>
neutral review (adopted PR, full-heal authorized) - reviewed at head 36d3aa0Verdict: CLEAN. No actionable findings. Held for the maintainer to merge (neutral does not ready/merge a contributor PR). What the change doesRemoves the free-text "Cache retention (days)" question from onboarding (LLP 0137, amends LLP 0011) and replaces the flat 30-day default with a pathway-scoped default: 30 days on team/scoped installs, 120 days on local-only installs. Correctness - verified end to end
Tests - updated and adequateNew/updated coverage in Style / LLPNo semicolons, no U+2014 em dashes in the changed files. Checks run (worktree, node_modules linked from main)
No code changes were needed; nothing pushed to the branch. |
What
Removes the "Cache retention (days)" question from interactive onboarding. The wizard's pathway fork now decides the retention default instead of asking:
hyp init --retention-days <n>is unchanged (flag default stays 30) and remains the explicit override, as does editingquery.cache.retentionin the written config.How
wizard/index.jspassesretentionDefault: LOCAL_INSTALL_RETENTION_DAYS(new, 120) to the pick phase only on the local pathway; team/scoped runs fall through to the pick phase's 30-dayDEFAULT_RETENTION_DAYS.wizard/pick.jsno longer prompts:retentionDays = opts.retentionDefault ?? DEFAULT_RETENTION_DAYS.walkthrough.jsdeletes the retention prompt factories (TUI text input + legacy readline) and theretentionPrompt/AsyncRetentionPromptseams; the superseded programmatic walkthrough keeps the flat 30-day default without prompting.Docs
onboarding-retention-defaults.decision.md, Active) with the choice and rationale;@ref LLP 0137#pathway-defaultsannotations at the three code sites.Tests
retentionDefault, pre-baked picks win) and orchestrator threading assertions (local passes 120, team passes nothing).npm test(2639 pass),npm run typecheckclean; smokeswalkthrough_picker_to_first_queryandwalkthrough_backfill_client_historygreen.walkthrough_to_first_queryfails identically on unmodified master on this machine (missing capture row, unrelated).🤖 Generated with Claude Code