Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Discussion: Cortex.cpp Updater Architecture #1041

Closed

Description

@namchuai

Motivation
How should we update cortex binary?

  1. Command to update cortex: cortex update?
  2. Do we use package managers (brew, etc.)
  3. How do we do the update? (via script?)
  4. Some caveats:
  • Cortex can be running as daemon process. So replace it when it's running is not possible (windows for example)
  1. Do we support downgrade or running at a specific version?

Discussion

Resources

Activity

  1. moved this to Planning in Menloon Sep 2, 2024
  2. moved this from Planning to Scheduled in Menloon Sep 3, 2024
  3. changed the title [-]Discussion: Updating UX[/-] [+]Discussion: Cortex Updater Architecture[/+] on Sep 3, 2024
  4. moved this from Scheduled to Need Investigation in Menloon Sep 3, 2024
  5. changed the title [-]Discussion: Cortex Updater Architecture[/-] [+]Discussion: Cortex.cpp Updater Architecture[/+] on Sep 4, 2024
  6. hiento09 commented on Sep 4, 2024

    @hiento09
    Contributor

    Whenever the Cortex CLI is called, a background task checks the latest version from a specific channel (latest release for stable, pre-release for beta, S3 for nightly). If an update is available, it echoes a message to the user's terminal session, such as: 'A new update (version x.y.z) is available. Please run cortex update to update to the latest version.

  7. dan-menlo commented on Sep 5, 2024

    @dan-menlo
    Contributor

    @hiento09 @vansangpfiev Btw, for the Updater UX, I like how Github CLI does it:

    Image

  8. vansangpfiev commented on Sep 5, 2024

    @vansangpfiev
    Contributor

    @dan-homebrew Thanks for your suggestion. I think we can use that pattern

    .\cortex.exe -v
    v0.4.9
    
    A new release of cortex is available: v0.4.9 -> v0.5.0
    To upgrade, run: cortex update
    https://github.com/janhq/cortex.cpp/releases/tag/v0.5.0
    
  9. hiento09 commented on Sep 5, 2024

    @hiento09
    Contributor

    Yeah, this is a nice approach

  10. locked and limited conversation to collaborators on Sep 5, 2024
  11. converted this issue into a discussion #1116 on Sep 5, 2024
  12. moved this from Need Investigation to Completed in Menloon Sep 5, 2024
  13. moved this from Completed to Discontinued in Menloon Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions