Skip to content

Conversation

@kfiramar
Copy link
Owner

@kfiramar kfiramar commented Feb 3, 2026

Problem

Multiple issues with Kiro provider integration affecting CodeWhisperer compatibility, region handling, sync operations, and error handling.

Fix

  • CodeWhisperer Alignment: Remove modelId/tools from request shape to match API expectations
  • Region Handling: Base region detection on profileArn with regex extraction for better accuracy
  • Sync Improvements: Enhance sync operations and refresh token handling for reliability
  • Account Management: Add account cleanup functionality and profileArn extraction from state
  • Error Handling: Improve request error logging for better debugging
  • Provider Options: Inject fetch into provider options for better compatibility
  • IDC Region Support: Add dedicated IDC region handling module

Key Changes

  • Align CodeWhisperer API requests with expected format
  • Improve region detection using profileArn parsing
  • Enhance sync stability and token management
  • Add comprehensive error logging
  • Support IDC-specific region handling

Verification

  • All existing tests pass
  • New region handling logic tested
  • Account cleanup functionality verified
  • Error logging improvements validated

This is an enhanced version of the original baseURL injection fix with additional stability and compatibility improvements.

kfiramar and others added 9 commits February 2, 2026 20:15
…n handling and sync

- Remove modelId/tools from CodeWhisperer request shape for alignment
- Base region handling on profileArn with regex extraction
- Improve sync operations and refresh token handling
- Add account cleanup and profileArn from state
- Enhance request error logging
- Inject fetch into provider options
- Add IDC region handling module

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- Fix claude-haiku-4-5 model ID to use correct backend format
- Add claude-haiku-4-5-thinking, claude-sonnet-4-5-1m, claude-sonnet-4-5-1m-thinking
- Add non-Claude models: nova-swe, gpt-oss-120b, qwen3-coder-480b, minimax-m2, kimi-k2-thinking
- Rename model aliases for cleaner naming (remove date suffixes)
- Update README with new model examples
@kfiramar kfiramar changed the title Fix/kiro provider baseurl fix(kiro): align CodeWhisperer requests, improve region handling and sync Feb 3, 2026
tickernelz and others added 3 commits February 3, 2026 14:56
@kfiramar kfiramar force-pushed the fix/kiro-provider-baseurl branch from 27c38ea to d6e9320 Compare February 3, 2026 08:52
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.

3 participants