@hatchway/cli 0.50.84 → 0.50.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4443,10 +4443,14 @@ function createNativeClaudeQuery(modelId = DEFAULT_CLAUDE_MODEL_ID, abortControl
4443
4443
  // Use preset tools from Claude Code
4444
4444
  tools: { type: 'preset', preset: 'claude_code' },
4445
4445
  // The claude_code preset now ships built-in task tools (TaskCreate/Update/
4446
- // List). The agent reaches for those instead of TodoWrite but the
4447
- // Hatchway UI renders progress ONLY from TodoWrite, so the checklist
4448
- // vanished and builds looked stuck in "analyzing". Disallow the task tools
4449
- // so the agent uses TodoWrite (which the todo-workflow skill mandates).
4446
+ // List) AND defers TodoWrite behind tool search. The agent reached for the
4447
+ // task tools (which the Hatchway UI doesn't render) and, when those were
4448
+ // disallowed, couldn't even find TodoWrite (3 failed ToolSearches) no
4449
+ // checklist, stuck "analyzing". Fix: SURFACE TodoWrite as a non-deferred,
4450
+ // always-available tool (allowedTools is additive, not restrictive) AND
4451
+ // disallow the task tools — so the agent reliably uses TodoWrite, which the
4452
+ // UI renders and the todo-workflow skill mandates.
4453
+ allowedTools: ['TodoWrite'],
4450
4454
  disallowedTools: ['TaskCreate', 'TaskUpdate', 'TaskList'],
4451
4455
  // Pass abort controller for cancellation support
4452
4456
  // NOTE: There is a known bug in the Claude Agent SDK where AbortController