From 9b3151d3eee1dd534f990e5fb0e3151d383fd393 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 20 Nov 2025 13:59:39 -0500 Subject: task: prettier tree visualization and flag ordering fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Implement box-drawing characters (├──, └──, │) for task tree visualization - Fix 'task create' flag ordering by using [options] in docopt (same as 'task list') - Document TASK_TEST_MODE environment variable in AGENTS.md Testing section - Add test case for multi-flag ordering on 'task create' - Clean up test tasks polluted in production database All 29 tests passing. Amp-Thread-ID: https://ampcode.com/threads/T-4e6225cf-3e78-4538-963c-5377bbbccee8 Co-authored-by: Amp --- AGENTS.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index b668758..6ff1ebf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -435,7 +435,7 @@ Each line in `tasks.jsonl` is a JSON object representing a task. ### Testing and Development -**IMPORTANT**: When writing or testing code that modifies tasks, use the test database: +**CRITICAL**: When manually testing task functionality (like tree visualization, flag ordering, etc.), you MUST use the test database: ```bash # Set test mode to protect production database @@ -444,6 +444,7 @@ export TASK_TEST_MODE=1 # Now all task operations use .tasks/tasks-test.jsonl task create "Test task" --type=task task list +task tree # Unset when done unset TASK_TEST_MODE @@ -451,7 +452,7 @@ unset TASK_TEST_MODE **The test suite automatically uses test mode** - you don't need to set it manually when running `task test` or `bild --test Omni/Task.hs`. -**Never run destructive tests against the production database** (`.tasks/tasks.jsonl`) as this will delete real task data. +**NEVER run manual tests against the production database** (`.tasks/tasks.jsonl`). This pollutes it with test data that must be manually cleaned up. Always use `TASK_TEST_MODE=1` for experimentation. ## Integration with Git -- cgit v1.2.3