Commit Graph

2617 Commits

Author SHA1 Message Date
Dustin Byrne
1ebde5701a feat: task_create tool accepts optional dependencies 2026-03-25 21:22:19 -04:00
Dustin Byrne
6a45531a79 feat(HAI-016): complete Step 4 — integrate semaphore into merge path 2026-03-25 21:21:42 -04:00
Dustin Byrne
edb31077d4 feat(HAI-017): complete Step 2 — add defensive JSON parsing with recovery 2026-03-25 21:21:15 -04:00
Dustin Byrne
ab3acd59b5 feat(HAI-017): complete Step 1 — add per-task write lock to TaskStore 2026-03-25 21:19:19 -04:00
Dustin Byrne
d487ebee51 feat(HAI-016): complete Step 3 — integrate semaphore into TaskExecutor 2026-03-25 21:19:07 -04:00
Dustin Byrne
640c288832 feat(HAI-016): complete Step 2 — integrate semaphore into TriageProcessor 2026-03-25 21:17:31 -04:00
Dustin Byrne
6379008a88 feat(HAI-016): complete Step 1 — create shared AgentSemaphore 2026-03-25 21:14:13 -04:00
Dustin Byrne
43cc7e7f05 test(HAI-015): complete Step 3 — add TaskCard agent-active tests 2026-03-25 21:11:07 -04:00
Dustin Byrne
19b12a4770 test(HAI-014): complete Step 2 — add TaskCard tests and vitest config 2026-03-25 21:10:51 -04:00
Dustin Byrne
4777ae5dcb feat(HAI-014): complete Step 1 — reorder JSX and update layout 2026-03-25 21:10:10 -04:00
Dustin Byrne
cf79ae52d4 test(HAI-013): complete Step 2 — add TaskDetailModal tests and vitest config 2026-03-25 21:10:05 -04:00
Dustin Byrne
ebbc6d479a feat(HAI-015): complete Step 2 — apply agent-active class conditionally 2026-03-25 21:09:26 -04:00
Dustin Byrne
97f9dc6dbb feat(HAI-015): complete Step 1 — add agent-active glow CSS 2026-03-25 21:09:16 -04:00
Dustin Byrne
428362a6fd feat(HAI-013): complete Step 1 — drop detail-prompt backdrop and scroll for markdown rendering 2026-03-25 21:09:00 -04:00
Dustin Byrne
b8d4853e85 feat: register task_update, task_log, task_create as agent tools
Replaces CLI-based progress reporting (hai task update/log/create)
with custom tools registered on the worker's pi session. No PATH
dependency, no shell overhead, works in any worktree.

- task_update(step, status) — update step lifecycle
- task_log(message) — log actions and decisions
- task_create(description) — create tasks for out-of-scope work
- review_step unchanged (already a tool)
- System prompt and execution prompt updated to reference tools
2026-03-25 21:04:20 -04:00
Dustin Byrne
06a6046950 feat(HAI-012): add activity timeline to TaskDetailModal
- Add formatTimestamp helper for relative time display
- Add Activity section rendering task log entries in reverse chronological order
- Display log action, timestamp, and optional outcome per entry
- Add timeline-style CSS with scrollable list, dot indicators, and styled outcome blocks
2026-03-25 21:04:03 -04:00
Dustin Byrne
c8aacc3622 feat(HAI-012): complete Steps 1-2 — add activity timeline to TaskDetailModal with styling 2026-03-25 21:03:12 -04:00
Dustin Byrne
963bc15e58 fix(HAI-010): serialize auto-merge with queue, startup sweep, and periodic retry
- Add serialized merge queue to prevent concurrent git merge operations
- Enqueue in-review tasks on startup so pre-existing tasks are not missed
- Add periodic retry interval to re-attempt failed merges automatically
- Re-check autoMerge setting and task column before each merge attempt
- Clean up merge retry interval on SIGINT for graceful shutdown
2026-03-25 21:01:30 -04:00
Dustin Byrne
c31893ce18 feat(HAI-011): add progress indicator to TaskCard
- Add step completion progress bar to TaskCard component
- Color progress fill dynamically based on column status
- Add card-progress, card-progress-bar, card-progress-fill, and card-progress-label styles
- Show completed/total step count label beside progress bar
2026-03-25 21:00:36 -04:00
Dustin Byrne
a7b225d096 fix(HAI-010): complete Step 1 — serialize auto-merge, startup sweep, periodic retry
- Add serialized merge queue preventing concurrent git merge operations
- Startup sweep enqueues existing in-review tasks when autoMerge is enabled
- Periodic retry interval catches failed merges on each poll cycle
- All three paths (event-driven, startup, periodic) use the same queue
- Reset task status on merge failure so tasks don't appear stuck
- Re-check autoMerge setting before each dequeue
2026-03-25 21:00:01 -04:00
Dustin Byrne
1d1fc8dbe1 feat(HAI-011): complete Step 1+2 — add progress indicator to TaskCard with styles 2026-03-25 20:59:22 -04:00
Dustin Byrne
32d1210f01 fix(HAI-009): move queued tasks to Up Next group and add tests
- Fix worktreeGrouping to place queued tasks in Up Next group only
- Add unit tests for worktreeGrouping utility (120+ lines)
- Clean up InlineCreateCard component styling
- Remove unused code from triage engine
- Fix TaskCard status display
2026-03-25 20:59:05 -04:00
Dustin Byrne
424cc9acbd test(HAI-009): complete Step 2 — add unit tests for worktreeGrouping 2026-03-25 20:57:20 -04:00
Dustin Byrne
a205674c1a fix(HAI-009): complete Step 1 — move queued tasks to Up Next group only 2026-03-25 20:55:06 -04:00
Dustin Byrne
58bc6a0677 fix(HAI-008): wrap text in inline create card textarea
- Replace input with auto-resizing textarea in InlineCreateCard
- Add dynamic height adjustment on content change
- Style textarea with no resize handle, hidden overflow, and proper line-height
2026-03-25 20:54:24 -04:00
Dustin Byrne
224cbe1c0c fix(HAI-008): wrap text in inline create card textarea 2026-03-25 20:52:52 -04:00
Dustin Byrne
64b28a012e feat(HAI-007): complete Step 1 — set specifying status during triage 2026-03-25 20:52:01 -04:00
Dustin Byrne
f6dc070bd8 feat(HAI-005): add auto-merge functionality for in-review tasks
- Add autoMerge boolean to Settings model with default false
- Add auto-merge toggle UI to the In Review column header
- Implement server-side auto-merge behavior in dashboard command
- Fix pre-existing build errors in types, executor, and dashboard server
- Update README with auto-merge documentation
2026-03-25 20:48:34 -04:00
Dustin Byrne
2713176190 fix: simplify triage testing requirements — rules only, no prereq check 2026-03-25 20:47:39 -04:00
Dustin Byrne
8b94136b37 feat(HAI-005): complete Step 4 — fix typecheck and verify all tests pass 2026-03-25 20:46:59 -04:00
Dustin Byrne
92154b70b6 feat(HAI-006): add groupOverlappingFiles setting for file-scope-aware task scheduling
- Add groupOverlappingFiles toggle to Settings types and store with default enabled
- Parse File Scope sections from PROMPT.md to extract per-task file lists
- Implement overlap detection in scheduler to group tasks sharing files
- Add groupOverlappingFiles toggle to the Settings UI modal
- Update README and remove obsolete triage overlap logic
2026-03-25 20:46:07 -04:00
Dustin Byrne
dbb577ff0d feat(HAI-005): complete Step 3 — implement server-side auto-merge behavior 2026-03-25 20:45:25 -04:00
Dustin Byrne
7c39f325e2 fix: triage agent must require real tests, create test infra task if missing
Triage prompt now explicitly:
- Checks for test framework before writing spec
- Creates a prerequisite task if no test framework exists
- Adds it as a dependency on the current task
- Forbids typecheck-only or manual-only testing steps
2026-03-25 20:45:07 -04:00
Dustin Byrne
12eb31bc0d feat(HAI-006): complete Step 4 — add groupOverlappingFiles toggle to Settings UI 2026-03-25 20:44:38 -04:00
Dustin Byrne
8fcc425433 feat(HAI-005): complete Step 2 — add auto-merge toggle UI to In Review column 2026-03-25 20:43:41 -04:00
Dustin Byrne
c3a785a3fb feat(HAI-006): complete Step 3 — implement overlap detection in scheduler 2026-03-25 20:43:19 -04:00
Dustin Byrne
dd3ebe9148 feat(HAI-005): complete Step 1 — add autoMerge to Settings model 2026-03-25 20:41:43 -04:00
Dustin Byrne
f63e5cb92e feat(HAI-006): complete Step 2 — parse File Scope from PROMPT.md 2026-03-25 20:41:35 -04:00
Dustin Byrne
7f3cf51c19 fix(HAI-005): fix pre-existing build errors in types, executor, and dashboard server 2026-03-25 20:41:06 -04:00
Dustin Byrne
ba95694189 feat(HAI-006): complete Step 1 — add groupOverlappingFiles to Settings 2026-03-25 20:40:21 -04:00
Dustin Byrne
1f31cc22fa feat(HAI-004): complete Step 1 — close modal immediately on merge 2026-03-25 20:35:46 -04:00
Dustin Byrne
e946a34c59 feat(HAI-003): render task descriptions as markdown in dashboard
- Add react-markdown and remark-gfm dependencies
- Replace pre element with ReactMarkdown in TaskDetailModal
- Add markdown prose styles optimized for dark theme
- Regenerate pnpm-lock.yaml to resolve merge conflicts
2026-03-25 20:34:49 -04:00
Dustin Byrne
9988470ac3 feat(HAI-003): complete Step 3 — add markdown prose styles for dark theme 2026-03-25 20:33:41 -04:00
Dustin Byrne
0e18987a70 feat(HAI-001): add API rate limiting and replace emojis with Lucide icons
- Add rate limiting middleware to dashboard API endpoints
- Install lucide-react and replace emoji usage with Lucide icons across dashboard components
- Add rate limiter unit tests
- Document API rate limiting in README
- Refactor engine executor/triage and remove unused reviewer module
2026-03-25 20:33:37 -04:00
Dustin Byrne
1d3e10df27 feat(HAI-003): complete Step 2 — replace pre with ReactMarkdown in TaskDetailModal 2026-03-25 20:33:23 -04:00
Dustin Byrne
5e796383e0 feat(HAI-003): complete Step 1 — add react-markdown and remark-gfm dependencies 2026-03-25 20:33:05 -04:00
Dustin Byrne
6fbf3519b5 feat(HAI-002): add maxWorktrees setting to limit total git worktrees
- Add maxWorktrees field to Settings interface with default of 4
- Enforce worktree limit in Scheduler.schedule() alongside maxConcurrent
- Wire setting through dashboard startup from persisted settings
- Include maxWorktrees in /api/config response
- Add Max Worktrees input to Settings Modal UI
- Backward compatible: existing configs without maxWorktrees use default
2026-03-25 20:32:07 -04:00
Dustin Byrne
d8ac565f85 feat(HAI-001): complete Step 2 — replace emojis with Lucide icons 2026-03-25 20:31:58 -04:00
Dustin Byrne
db2b84c231 feat(HAI-001): complete Step 1 — install lucide-react 2026-03-25 20:30:51 -04:00
Dustin Byrne
93651835b6 fix: executor prompt gives agent concrete CLI examples and review_step instructions
- System prompt explains review_step tool with review level table
- Execution prompt injects real task ID in all CLI examples
- Execution prompt parses review level from PROMPT.md and tells agent exactly when to call review_step
- Removed {TASK_ID} placeholders that agent saw as literal text
2026-03-25 20:24:32 -04:00