diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-20 13:59:39 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-20 13:59:39 -0500 |
| commit | 9b3151d3eee1dd534f990e5fb0e3151d383fd393 (patch) | |
| tree | 5d3a76bb795a0387f3f7cc6d0937333693dc856c /AGENTS.md | |
| parent | 0a0ea5a3fec6eae0a4b300918a9a8fc06fcc786f (diff) | |
task: prettier tree visualization and flag ordering fixes
- 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 <amp@ampcode.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
