Skip to content

Conversation

@albin-zhu
Copy link

@albin-zhu albin-zhu commented Nov 17, 2025

Summary

This PR upgrades @anthropic-ai/claude-code from 2.0.24 to ^2.0.42 and fixes related type imports in MessageQueue.

Changes

  • Upgrade SDK version: @anthropic-ai/claude-code from 2.0.24^2.0.42
  • Fix type imports: Update MessageQueue to use local SDK types instead of importing from the package
  • Clean up message construction:
    • Replace null with undefined for parent_tool_use_id field
    • Remove unused session_id field from SDKUserMessage construction

Motivation

Following up on #51 which bumped the version to 2.0.24, this continues the upgrade path to the latest 2.0.42 version to stay current with Claude Code SDK improvements.

Related Issues

This upgrade addresses API 400 errors related to invalid beta flags and tool schema issues:

Testing

  • ✅ Local build successful
  • ✅ Type checking passes
  • ✅ MessageQueue works correctly with new types

Type of Change

  • Dependency upgrade (non-breaking)
  • Bug fix (type imports)

🤖 Generated with Claude Code via Happy

- Upgrade @anthropic-ai/claude-code from 2.0.24 to ^2.0.42
- Update MessageQueue type imports to use local SDK types
- Replace null with undefined for parent_tool_use_id field
- Remove unused session_id field from message construction

🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@albin-zhu
Copy link
Author

Closing this PR as testing shows the API 400 error (invalid beta flag) still persists after upgrading to 2.0.42. The issue requires further investigation in the upstream claude-code repository (anthropics/claude-code#11678).

@albin-zhu albin-zhu closed this Nov 17, 2025
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.

1 participant