Bug fixes
-
.trellis/workflow.mdis now actually updated bytrellis update. Critical fix for 0.5 upgrades. workflow.md was explicitly excluded fromcollectTemplateFilessince early Trellis versions, under the assumption that it’s “user-customizable documentation, written once at init, never touched by update”. That assumption broke in 0.5.0 because workflow.md started carrying script-parsed structure:## Phase Index— read byget_context.py --mode phase## Phase 1/2/3headings — inlined into the 9.5 KB SessionStart payload[workflow-state:STATUS]tag blocks — consumed by the per-turn breadcrumb hook
get_context.pyreportingPhase Index section not found in workflow.mdand the new/continuecommand unable to resolve step routing. workflow.md is now included in the normal update flow. Unmodified copies auto-update, user-modified copies go through the existing “Modified by you” confirm prompt with diff.workspace/index.mdstays excluded — it’s runtime-appended byadd_session.pyand has no script-parsed structure.
Upgrade path for users stuck on beta.0..beta.3
If you already upgraded to any earlier 0.5 beta and seePhase Index section not found:
- If you never edited workflow.md: it auto-updates (shows in “Template updated (will auto-update)” section)
- If you edited workflow.md: you’ll get a
Modified by youconfirm prompt with diff. Pick[1] Overwriteto get the new 0.5 structure, or pick[3] Skipand merge your edits into the new template manually (the template is atpackages/cli/dist/templates/trellis/workflow.mdinside the globally installed CLI)
npm install -g @mindfoldhq/trellis@beta