Skip to content

Bump embedded worktrunk to 0.27.0 and auto-upgrade managed installs#15

Merged
nicosuave merged 1 commit intomainfrom
nicosuave/bump-ghostrunk
Feb 26, 2026
Merged

Bump embedded worktrunk to 0.27.0 and auto-upgrade managed installs#15
nicosuave merged 1 commit intomainfrom
nicosuave/bump-ghostrunk

Conversation

@nicosuave
Copy link
Member

@nicosuave nicosuave commented Feb 26, 2026

Summary

  • Updates the pinned worktrunk version from 0.22.0 to 0.27.0
  • Adds a .worktrunk-version marker file so Ghostree-managed installs get upgraded automatically on next launch
  • External installs (Homebrew, GHOSTTY_WORKTRUNK_BIN, system paths) are completely unaffected

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2cec77e9de

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

enum WorktrunkInstaller {
private struct Release {
static let version = "0.22.0"
static let version = "0.27.0"

Choose a reason for hiding this comment

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

P2 Badge Reinstall pinned worktrunk when an older binary exists

Updating Release.version to 0.27.0 does not actually upgrade existing installs because installPinnedWorktrunkIfNeeded() still exits as soon as wt and git-wt are present (WorktrunkInstaller.swift:50-52), without checking their version. In the common upgrade path (user already has 0.22.0 installed), this leaves stale binaries in place, so the new pinned version is never applied and any 0.27.0-dependent behavior will not take effect.

Useful? React with 👍 / 👎.

Reinstall when an older Ghostree-managed binary is detected by
tracking the installed version in a .worktrunk-version marker file.
Non-managed installs (Homebrew, custom path) are unaffected.
@nicosuave nicosuave force-pushed the nicosuave/bump-ghostrunk branch from 2cec77e to bda762d Compare February 26, 2026 16:02
@nicosuave nicosuave changed the title Bump embedded worktrunk from 0.22.0 to 0.27.0 Bump embedded worktrunk to 0.27.0 and auto-upgrade managed installs Feb 26, 2026
@nicosuave nicosuave merged commit 82ae6d2 into main Feb 26, 2026
115 of 117 checks passed
@nicosuave nicosuave deleted the nicosuave/bump-ghostrunk branch February 26, 2026 17:17
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