Skip to content

Conversation

@HoBeedzc
Copy link

No description provided.

Haleclipse and others added 9 commits October 8, 2025 21:12
…nding

API returns UTC timestamps but status bar should display local time.
Changes:
- Convert UTC timestamp to user's local timezone using chrono::Local
- Round up to next hour when minutes > 45 (e.g., 04:59 displays as 5)
- Use Duration::hours(1) for proper date rollover handling (23:50 -> next day 00:50)

Fixes timezone display issue where Shanghai timezone (UTC+8) was showing
incorrect hours in the status bar.
- Add --no-optional-locks flag to all git commands to prevent
  .git/index.lock conflicts with concurrent git operations (fixes Haleclipse#46)
- Skip disabled segments in collect_all_segments to avoid
  unnecessary API requests (fixes Haleclipse#50)
…it -m "chore: update version to 1.0.12 and adapt to new API wrapper response format

   - Update version from 1.0.11 to 1.0.12
   - Add ApiWrapper<T> struct to handle wrapped API responses
   - Adapt usage API response parsing to new format
   - Adapt subscription API response parsing to new format
   - Maintain backward compatibility with existing functionality
- Update version from 1.0.12 to 1.0.13 in Cargo.toml and Cargo.lock
- Add model parameter to endpoint detection and API requests
- Implement load_model() function with priority: environment variable > settings.json > default
- Support ANTHROPIC_MODEL environment variable for model configuration
- Read model from ~/.claude/settings.json if environment variable not set
- Use claude-sonnet-4-5-20251022 as default model fallback
- Pass model parameter to try_endpoint() and detect_endpoint() methods
- Include model in URL query parameters for API calls
- Update fetch_subscription_info() to accept and use model parameter
- Clean up whitespace formatting in quota segment code
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.

2 participants