Skip to content

feat: resolve the plan directory from workflow.env and Obsidian vaults - #16

Merged
GuiMoraesDev merged 2 commits into
mainfrom
feat/plan-dir-resolver
Oct 21, 2026
Merged

GuiMoraesDev merged 2 commits into
mainfrom
feat/plan-dir-resolver

Conversation

@GuiMoraesDev

@GuiMoraesDev GuiMoraesDev commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

The panel and the commit reminder find plans in one place: the repo's projectsDir (default docs/projects), or an Obsidian vault when the untracked .claude/workflow.env sets TASKFLOW_PLANS_SOURCE=obsidian.

Acceptance criteria

  • Relative projectsDir lists plans as before — keeps a relative projectsDir under the repo
  • No projectsDir → docs/projects — defaults to docs/projects
  • Vault by folder name via obsidian.json — resolves a vault by folder name
  • TASKFLOW_OBSIDIAN_VAULT_PATH wins over the name — prefers an absolute vault path over the name
  • Missing/ambiguous vault → notice, no plans, no repo fallback — errors on a missing or ambiguous vault
  • Repo unless source is obsidian — uses the repo unless source is obsidian
  • .. / leading / refused — refuses .. and absolute inner paths
  • Other env keys ignored — ignores keys outside the allow-list
  • workflow.env is gitignored — git check-ignore
  • Commit reminder names vault plans with the same label

Notes

  • The panel's default changes from .planning/projects to docs/projects, matching init-workflow and the hook.
  • An unset TASKFLOW_OBSIDIAN_PATH reads the vault root; a relative vault path is an error.

Verification

Tests red against today's behaviour, green after; lint, format:check, typecheck green.

@GuiMoraesDev GuiMoraesDev added the enhancement New feature or request label Oct 21, 2026
@GuiMoraesDev GuiMoraesDev self-assigned this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant