Skip to content

Install Osaka Jade from its own repo for anyone still on it - #17746

Merged
dhh merged 4 commits into
quattrofrom
restore-osaka-jade
Nov 6, 2026
Merged

dhh merged 4 commits into
quattrofrom
restore-osaka-jade

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

Closes #17198.

Upgrading from 4.0.6 to 4.5.0 with Osaka Jade active breaks every foot, kitty and alacritty terminal. #16594 removed the bundled theme, but omarchy-themes-intros still installs themes/osaka-jade/backgrounds/intros/, so migration 1787481315 found the directory, re-staged it through omarchy-theme-refresh, and left a staged theme with backgrounds/ and nothing else. Once omacom/omarchy-pkgs#2177 stops shipping that directory, the same migration instead sees the theme as gone and applies Tokyo Night. Either way, the user loses the theme they chose.

Osaka Jade now lives at omacom/omarchy-osaka-jade-theme, which omarchy theme install names osaka-jade again, intro included. This migration installs it for anyone whose current theme is osaka-jade:

  • It is dated 1787481314, one second before the refresh. omarchy-migrate runs every pending migration in filename order, so a 4.0 upgrade installs the theme before the refresh can re-stage or replace it. A 4.5 install that the refresh already broke has never run this file, so it runs there too and repairs it.
  • A ~/.config/omarchy/themes/osaka-jade that already has a colors.toml (the workaround from the issue, or someone's own theme) is left alone, and re-applied only when the staged theme has no palette. This also lets a retry finish after a failed apply.
  • A ~/.config/omarchy/themes/osaka-jade without one holds overrides that sat on the bundled theme. omarchy-theme-install would delete that directory before cloning, so instead the repo's colors.toml, icons.theme and wallpapers are copied in beside the user's files with cp -n, never over them. Only that palette is supplied, the one the bundled theme always staged before a user's files: a partial alacritty.toml override converts to nothing. A symlinked backgrounds is left pointing where the user put it.
  • When the repo cannot be fetched, the user's directory is left untouched and Jade Horse, the theme that replaced Osaka Jade, is applied, so the terminals still work.

#17218's palette guard would make 1787481315 exit 1 on the broken path and stop the migration queue. With this migration running first, that path never reaches the guard with a palette-less Osaka Jade.

🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex XHigh.

dhh and others added 4 commits November 5, 2026 15:39
omarchy-themes-intros still ships themes/osaka-jade/backgrounds/intros, so after Osaka Jade left the bundled themes the 4.5 theme refresh re-staged that leftover directory with no colors.toml, and foot, kitty and alacritty then include a theme file that was never generated. The theme lives on in omacom/omarchy-osaka-jade-theme under the same name, so install it from there, and fall back to Jade Horse when it cannot be fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once omarchy-themes-intros stops shipping the leftover osaka-jade directory, 1787481315 sees the theme as gone and applies Tokyo Night, so a migration dated after it never finds anyone on Osaka Jade to restore. Dating it just before means a 4.0 upgrade installs the theme first, and a 4.5 install that already ran the refresh still has it pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A ~/.config/omarchy/themes/osaka-jade without a palette holds overrides that were layered on the bundled theme, and omarchy-theme-install removes that directory before it clones. Copy the repo's palette, icons and wallpapers in beside those files instead, never over them, and leave the directory alone when the clone fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>
Only colors.toml counts as a palette: a partial alacritty.toml override converts to nothing, and the bundled colors.toml was always what such overrides sat on. A user who already restored their own copy is re-applied only when the staged theme has no palette, without fetching anything, which also lets a retry finish after a failed apply. A symlinked backgrounds directory is the user's choice and is left alone instead of aborting the copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds a migration that restores Osaka Jade from its separate repository before the existing theme refresh runs.

  • Users still on Osaka Jade keep a working theme after upgrades.

Acknowledged intentional behavior: omarchybot explicitly chose Jade Horse when the repository cannot be fetched, so terminals remain usable. The migration then completes rather than retrying Osaka Jade automatically.

Reviews (1) · Last reviewed commit: "Repair from the staged palette, and surv..." · Reviewed by Greptile

@dhh
dhh merged commit f933bbd into quattro Nov 6, 2026
1 of 3 checks passed
@dhh
dhh deleted the restore-osaka-jade branch November 6, 2026 16:54
omarchybot added a commit that referenced this pull request Nov 6, 2026
* Reinstall Osaka Jade for anyone left on it with no palette

omarchy-themes-intros still ships themes/osaka-jade/backgrounds/intros, so after Osaka Jade left the bundled themes the 4.5 theme refresh re-staged that leftover directory with no colors.toml, and foot, kitty and alacritty then include a theme file that was never generated. The theme lives on in omacom/omarchy-osaka-jade-theme under the same name, so install it from there, and fall back to Jade Horse when it cannot be fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Install Osaka Jade before the theme refresh rather than after it

Once omarchy-themes-intros stops shipping the leftover osaka-jade directory, 1787481315 sees the theme as gone and applies Tokyo Night, so a migration dated after it never finds anyone on Osaka Jade to restore. Dating it just before means a 4.0 upgrade installs the theme first, and a 4.5 install that already ran the refresh still has it pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a user's Osaka Jade overrides when restoring the theme

A ~/.config/omarchy/themes/osaka-jade without a palette holds overrides that were layered on the bundled theme, and omarchy-theme-install removes that directory before it clones. Copy the repo's palette, icons and wallpapers in beside those files instead, never over them, and leave the directory alone when the clone fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>

* Repair from the staged palette, and survive linked backgrounds

Only colors.toml counts as a palette: a partial alacritty.toml override converts to nothing, and the bundled colors.toml was always what such overrides sat on. A user who already restored their own copy is re-applied only when the staged theme has no palette, without fetching anything, which also lets a retry finish after a failed apply. A symlinked backgrounds directory is the user's choice and is left alone instead of aborting the copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex XHigh <noreply@openai.com>
(cherry picked from commit f933bbd)
@omarchybot

Copy link
Copy Markdown
Collaborator Author

Backported to 4.5.1 as 43c08a4.

cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 6, 2026
…7746)

* Reinstall Osaka Jade for anyone left on it with no palette

omarchy-themes-intros still ships themes/osaka-jade/backgrounds/intros, so after Osaka Jade left the bundled themes the 4.5 theme refresh re-staged that leftover directory with no colors.toml, and foot, kitty and alacritty then include a theme file that was never generated. The theme lives on in omacom/omarchy-osaka-jade-theme under the same name, so install it from there, and fall back to Jade Horse when it cannot be fetched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Install Osaka Jade before the theme refresh rather than after it

Once omarchy-themes-intros stops shipping the leftover osaka-jade directory, 1787481315 sees the theme as gone and applies Tokyo Night, so a migration dated after it never finds anyone on Osaka Jade to restore. Dating it just before means a 4.0 upgrade installs the theme first, and a 4.5 install that already ran the refresh still has it pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a user's Osaka Jade overrides when restoring the theme

A ~/.config/omarchy/themes/osaka-jade without a palette holds overrides that were layered on the bundled theme, and omarchy-theme-install removes that directory before it clones. Copy the repo's palette, icons and wallpapers in beside those files instead, never over them, and leave the directory alone when the clone fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>

* Repair from the staged palette, and survive linked backgrounds

Only colors.toml counts as a palette: a partial alacritty.toml override converts to nothing, and the bundled colors.toml was always what such overrides sat on. A user who already restored their own copy is re-applied only when the staged theme has no palette, without fetching anything, which also lets a retry finish after a failed apply. A symlinked backgrounds directory is the user's choice and is left alone instead of aborting the copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex XHigh <noreply@openai.com>

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex XHigh <noreply@openai.com>
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.

Osaka Jade removal leaves upgraded users without a terminal; omarchy-themes-intros still ships themes/osaka-jade

2 participants