fix: update altimate.ai/zen URLs to opencode.ai/zen#348
fix: update altimate.ai/zen URLs to opencode.ai/zen#348gautamdoulani wants to merge 1 commit intoAltimateAI:mainfrom
Conversation
Replace all references to https://altimate.ai/zen with https://opencode.ai/zen across UI messages, error strings, and test fixtures. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
📝 WalkthroughWalkthroughThis pull request updates domain references across three files, changing instructional and endpoint URLs from Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use your project's `biome` configuration to improve the quality of JS/TS/CSS/JSON code reviews.Add a configuration file to your project to customize how CodeRabbit runs |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
packages/opencode/test/tool/fixtures/models-api.json (2)
20981-20982: Consider updating the provider name for consistency.The provider name remains "Altimate Code Zen" while the URLs now point to
opencode.ai. This inconsistency might confuse users. Consider whether the name should be updated to reflect the new domain (e.g., "OpenCode Zen" or "OpenCode AI Zen").🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/opencode/test/tool/fixtures/models-api.json` around lines 20981 - 20982, Update the provider "name" field in the models API fixture so it matches the opencode.ai domain; locate the JSON entry where "name": "Altimate Code Zen" (in packages/opencode/test/tool/fixtures/models-api.json) and change it to a consistent brand such as "OpenCode Zen" or "OpenCode AI Zen" (or another approved canonical provider name), ensuring the "doc" URL remains unchanged and that any tests or references to the old name are updated accordingly.
20980-20982: Consider adding URL validation tests.Since these API and documentation URLs are critical for the provider configuration and are loaded directly into production code, consider adding tests to verify URL validity. This would help catch broken links early before they impact users.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/opencode/test/tool/fixtures/models-api.json` around lines 20980 - 20982, Add unit tests that validate the "api" and "doc" URL values for the "Altimate Code Zen" provider in models-api.json: implement a test (e.g., test_models_api_urls or validate_provider_urls) that loads the JSON, extracts the "api" and "doc" fields for the provider name "Altimate Code Zen", asserts they are well-formed URLs (use URL parser/validator) and optionally performs a lightweight reachability check (HTTP HEAD or fetch with a short timeout) to ensure they return a 2xx/3xx status; fail the test with a clear message if parsing or the reachability check fails.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/opencode/test/tool/fixtures/models-api.json`:
- Around line 20980-20982: The "api" property in the models-api.json entry where
"name" is "Altimate Code Zen" currently points to the broken URL
"https://opencode.ai/zen/v1"; update that "api" value to the correct, verified
endpoint (or null/empty if there is no production API) and ensure the config
consumer validates the endpoint before using it; locate the JSON object with
keys "name": "Altimate Code Zen", "api": "https://opencode.ai/zen/v1", and
"doc": "https://opencode.ai/docs/zen" and either replace the "api" value with
the confirmed working URL or remove/disable it and add runtime validation that
checks the endpoint returns 200 before loading.
---
Nitpick comments:
In `@packages/opencode/test/tool/fixtures/models-api.json`:
- Around line 20981-20982: Update the provider "name" field in the models API
fixture so it matches the opencode.ai domain; locate the JSON entry where
"name": "Altimate Code Zen" (in
packages/opencode/test/tool/fixtures/models-api.json) and change it to a
consistent brand such as "OpenCode Zen" or "OpenCode AI Zen" (or another
approved canonical provider name), ensuring the "doc" URL remains unchanged and
that any tests or references to the old name are updated accordingly.
- Around line 20980-20982: Add unit tests that validate the "api" and "doc" URL
values for the "Altimate Code Zen" provider in models-api.json: implement a test
(e.g., test_models_api_urls or validate_provider_urls) that loads the JSON,
extracts the "api" and "doc" fields for the provider name "Altimate Code Zen",
asserts they are well-formed URLs (use URL parser/validator) and optionally
performs a lightweight reachability check (HTTP HEAD or fetch with a short
timeout) to ensure they return a 2xx/3xx status; fail the test with a clear
message if parsing or the reachability check fails.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 25f86da8-8db0-45be-9791-c94064a30473
📒 Files selected for processing (3)
packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsxpackages/opencode/src/session/retry.tspackages/opencode/test/tool/fixtures/models-api.json
| "api": "https://opencode.ai/zen/v1", | ||
| "name": "Altimate Code Zen", | ||
| "doc": "https://altimate.ai/docs/zen", | ||
| "doc": "https://opencode.ai/docs/zen", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify the new opencode.ai URLs are accessible
echo "Testing API endpoint accessibility..."
curl -I -s -o /dev/null -w "%{http_code}" "https://opencode.ai/zen/v1" | grep -E "^(200|301|302|401|403)" && echo " ✓ API endpoint is accessible" || echo " ✗ API endpoint may not be accessible"
echo "Testing documentation URL accessibility..."
curl -I -s -o /dev/null -w "%{http_code}" "https://opencode.ai/docs/zen" | grep -E "^(200|301|302)" && echo " ✓ Documentation URL is accessible" || echo " ✗ Documentation URL may not be accessible"Repository: AltimateAI/altimate-code
Length of output: 225
🏁 Script executed:
#!/bin/bash
# Get detailed HTTP status for the API endpoint
echo "API Endpoint HTTP Status:"
curl -I -s "https://opencode.ai/zen/v1" | head -1
echo ""
echo "Full response headers for API endpoint:"
curl -I -s "https://opencode.ai/zen/v1" | head -5
echo ""
echo "Documentation URL HTTP Status:"
curl -I -s "https://opencode.ai/docs/zen" | head -1Repository: AltimateAI/altimate-code
Length of output: 316
The API endpoint is broken and must be fixed before merging.
The verification reveals that the API endpoint https://opencode.ai/zen/v1 returns HTTP 404 (Not Found), making it inaccessible. The documentation URL https://opencode.ai/docs/zen is accessible (HTTP 200), but the broken API endpoint is a critical blocker since this URL is loaded in production code without validation.
Do not merge until the API endpoint URL is corrected or confirmed to be working.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@packages/opencode/test/tool/fixtures/models-api.json` around lines 20980 -
20982, The "api" property in the models-api.json entry where "name" is "Altimate
Code Zen" currently points to the broken URL "https://opencode.ai/zen/v1";
update that "api" value to the correct, verified endpoint (or null/empty if
there is no production API) and ensure the config consumer validates the
endpoint before using it; locate the JSON object with keys "name": "Altimate
Code Zen", "api": "https://opencode.ai/zen/v1", and "doc":
"https://opencode.ai/docs/zen" and either replace the "api" value with the
confirmed working URL or remove/disable it and add runtime validation that
checks the endpoint returns 200 before loading.
Summary
Replace all references to https://altimate.ai/zen with https://opencode.ai/zen across UI messages, error strings, and test fixtures.
https://altimate.ai/zenlink is brokenWhat changed and why?
Test Plan
NA
How was this tested?
NA
Checklist
Summary by CodeRabbit