Skip to content

Overloaded error handling#28

Merged
eyaltoledano merged 5 commits intomainfrom
overloaded-error-handling
Mar 26, 2025
Merged

Overloaded error handling#28
eyaltoledano merged 5 commits intomainfrom
overloaded-error-handling

Conversation

@eyaltoledano
Copy link
Owner

  • Elegantly exits if running into Claude errors like overloadedcloses Error Handling #24
  • Fixed id column width in task-master show sub-task table – closes Subtask ID getting truncated #26
  • Implements the integration tests for setTaskStatus, updateSingeTaskSTatus, listTasks and addTask
  • Enhanced Unit Testing:* Vastly improved unit tests for the module, covering core functions, edge cases, and error handling. Simplified test functions and comprehensive mocking were implemented for better isolation and reliability. Added new section to tests.mdc detailing reliable testing techniques.
  • CLI Kebab-Case Flag Enforcement: The CLI now enforces kebab-case for flags, providing helpful error messages when camelCase is used. This improves consistency and user experience. Commander is very particular about camelCase/--kebab-case
  • AI Enhancements:
    • Enabled 128k token output for Claude 3.7 Sonnet by adding the beta header 'output-128k-2025-02-19' to the request headers in ai-services.js – this provides the full 128k context window (vs 64k) when using claude in task generation.
    • Added a new task (task_029.txt) to document this change and its testing strategy.
    • Added unit tests to verify the Anthropic client configuration we've added to the header
    • Added utility functions.
  • Improved Test Coverage: Added tests for the new CLI flag validation logic.
  • Upversion and publish task-master-ai@0.9.28

This commit introduces several significant improvements:

- **Enhanced Unit Testing:**  Vastly improved unit tests for the  module, covering core functions, edge cases, and error handling.  Simplified test functions and comprehensive mocking were implemented for better isolation and reliability. Added new section to tests.mdc detailing reliable testing techniques.

- **CLI Kebab-Case Flag Enforcement:**  The CLI now enforces kebab-case for flags, providing helpful error messages when camelCase is used. This improves consistency and user experience.

- **AI Enhancements:**
    - Enabled 128k token output for Claude 3.7 Sonnet by adding the  header.
    - Added a new task to  to document this change and its testing strategy.
    - Added unit tests to verify the Anthropic client configuration.
    - Added  and  utility functions.

- **Improved Test Coverage:** Added tests for the new CLI flag validation logic.
@eyaltoledano eyaltoledano self-assigned this Mar 26, 2025
@eyaltoledano eyaltoledano merged commit 75c8192 into main Mar 26, 2025
@eyaltoledano eyaltoledano deleted the overloaded-error-handling branch March 26, 2025 05:21
ProdByBuddha pushed a commit to ProdByBuddha/claude-task-master that referenced this pull request Apr 9, 2025
…-handling

- Elegantly exits if running into Claude errors like overloaded – closes Error Handling eyaltoledano#24
- Fixed id column width in task-master show sub-task table – closes Subtask ID getting truncated eyaltoledano#26
- Implements the integration tests for setTaskStatus, updateSingeTaskSTatus, listTasks and addTask
- Enhanced Unit Testing:* Vastly improved unit tests for the module, covering core functions, edge cases, and error handling. Simplified test functions and comprehensive mocking were implemented for better isolation and reliability. 
- Added new section to tests.mdc detailing reliable testing techniques.
- CLI Kebab-Case Flag Enforcement: The CLI now enforces kebab-case for flags, providing helpful error messages when camelCase is used. This improves consistency and user experience. Commander is very particular about camelCase/--kebab-case
- AI Enhancements:
-- Enabled 128k token output for Claude 3.7 Sonnet by adding the beta header 'output-128k-2025-02-19' to the request headers in ai-services.js – this provides the full 128k context window (vs 64k) when using claude in task generation.
-- Added a new task (task_029.txt) to document this change and its testing strategy.
-- Added unit tests to verify the Anthropic client configuration we've added to the header
-- Added utility functions.
- Improved Test Coverage: Added tests for the new CLI flag validation logic.
- Upversion and publish task-master-ai@0.9.28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subtask ID getting truncated Error Handling

1 participant