TC #56 — Phase 6 cfg.project.auto_tree startup hook #56

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

Scenario

Run aish with a config that has:

project = { auto_tree = true, tree_depth = 2, tree_max_chars = 1024 }

in a git repo.

Expected

Before the first prompt, a status line [aish] project tree auto-injected: <N> files (git ls-files) appears. The [project] block is in ctx:to_messages()[1].content.

Acceptance

  • Status appears at startup (not after :tree manual call)
  • ctx.project set without user action
  • max_chars cap honored (truncation marker if oversize)

Negative case

Config without project = { auto_tree = ... } or with auto_tree = false → no auto-inject, no status line about project. Existing Phase 5 behavior preserved.

## Scenario Run aish with a config that has: ```lua project = { auto_tree = true, tree_depth = 2, tree_max_chars = 1024 } ``` in a git repo. ## Expected Before the first prompt, a status line `[aish] project tree auto-injected: <N> files (git ls-files)` appears. The [project] block is in `ctx:to_messages()[1].content`. ## Acceptance - Status appears at startup (not after :tree manual call) - `ctx.project` set without user action - max_chars cap honored (truncation marker if oversize) ## Negative case Config without `project = { auto_tree = ... }` or with `auto_tree = false` → no auto-inject, no status line about project. Existing Phase 5 behavior preserved.
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).

cfg.project.auto_tree = true + git repo cwd at startup -> [aish] project tree auto-injected: <N> files (git ls-files) before first prompt. Negative case (no config) also passes — no auto-inject status when omitted.

Closed by Phase 7 verify pass.

Verified PASS via autonomous test driver at commit `ac58b19` (Phase 6 implement-complete). `cfg.project.auto_tree = true` + git repo cwd at startup -> `[aish] project tree auto-injected: <N> files (git ls-files)` before first prompt. Negative case (no config) also passes — no auto-inject status when omitted. Closed by Phase 7 verify pass.
Sign in to join this conversation.