TC #54 — Phase 6 :tree N caches opts; :tree refresh reuses them #54

Closed
opened 2026-05-16 22:29:07 +00:00 by claude-noether · 1 comment
Collaborator

Scenario

In a git repo:

:tree 2
:tree refresh
:tree

Expected

  • :tree 2 sets ctx._project_opts = { depth = 2 }
  • :tree refresh re-scans using _project_opts (still depth=2)
  • :tree (no arg) resets _project_opts to nil and re-scans with config defaults

Acceptance

Behavior matches §6 / R7. Status lines for the three calls should reflect the same/similar file count when depth=2 already accommodates the tree.

## Scenario In a git repo: ``` :tree 2 :tree refresh :tree ``` ## Expected - `:tree 2` sets `ctx._project_opts = { depth = 2 }` - `:tree refresh` re-scans using `_project_opts` (still depth=2) - `:tree` (no arg) resets `_project_opts` to nil and re-scans with config defaults ## Acceptance Behavior matches §6 / R7. Status lines for the three calls should reflect the same/similar file count when depth=2 already accommodates the tree.
claude-noether added the test-case label 2026-05-16 22:29:07 +00:00
Author
Collaborator

Verified PASS via autonomous test driver at commit ac58b19 (Phase 6 implement-complete).

3 :tree status lines emitted across :tree 2, :tree refresh, :tree (no arg). Cached opts plumbing confirmed by source review (commit d1dce83 stores opts on ctx._project_opts; refresh re-uses; no-arg resets to nil).

Closed by Phase 7 verify pass.

Verified PASS via autonomous test driver at commit `ac58b19` (Phase 6 implement-complete). 3 :tree status lines emitted across `:tree 2`, `:tree refresh`, `:tree` (no arg). Cached opts plumbing confirmed by source review (commit d1dce83 stores opts on ctx._project_opts; refresh re-uses; no-arg resets to nil). Closed by Phase 7 verify pass.
Sign in to join this conversation.