Skip to content

feat: get the latest github release tag for codex#2081

Merged
kemingy merged 4 commits intotensorchord:mainfrom
kemingy:get_latest_github_release_tag
Feb 7, 2026
Merged

feat: get the latest github release tag for codex#2081
kemingy merged 4 commits intotensorchord:mainfrom
kemingy:get_latest_github_release_tag

Conversation

@kemingy
Copy link
Member

@kemingy kemingy commented Feb 6, 2026

Priority:

  • use the user specified version
  • use the latest tag
  • fallback to the default one

Priority:

- use the user specified version
- use the latest tag
- fallback to the default one

Signed-off-by: Keming <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to automatically fetch the latest Codex release version from GitHub when no explicit version is specified by the user. The implementation follows a priority system: user-specified version → latest GitHub release → default fallback version.

Changes:

  • Added getLatestVersion function to fetch the latest release tag from GitHub API
  • Updated version resolution logic in installAgentCodex to attempt fetching the latest version when user doesn't specify one
  • Updated default Codex version from "0.92.0" to "0.98.0"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- refact the getLatestReleaseVersion
- cache to the ~/.cache/envd/ dir

Signed-off-by: Keming <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- fix the envd interface args for codex/node/go
- rm user/repo name sanitizer
- fix codex log msg

Signed-off-by: Keming <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (2)

envd/api/v1/install.py:98

  • Changing the signature default from a pinned version to None no longer reflects the implementation: the Go backend still uses a pinned default (golangDefaultVersion) when no version is specified. Either restore the default argument to the pinned version, or update the docstring to explicitly state what version will be installed when version is omitted.
def go(version: Optional[str] = None):
    """Install Go programming language.

    Args:
        version (Optional[str]): Go version, such as '1.25.3'.

envd/api/v1/install.py:106

  • Same issue as go(): the backend uses a pinned default (nodejsDefaultVersion) when version is not provided, but the signature now suggests there is no default. Please align the signature/docstring with the actual defaulting behavior to avoid misleading generated docs and users.
def nodejs(version: Optional[str] = None):
    """Install NodeJS programming language.

    Args:
        version (Optional[str]): NodeJS version, such as '25.1.0'.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kemingy kemingy merged commit 3cac99f into tensorchord:main Feb 7, 2026
11 checks passed
@kemingy kemingy deleted the get_latest_github_release_tag branch February 7, 2026 01:42
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