Kyon
Contents

Updates and troubleshooting

Keeping Kyon up to date, where it keeps your settings and logs, and what to do when something looks wrong.

Keeping Kyon up to date

A released Kyon is updated the way it was installed. Install Kyon gives the steps for each system:

  • Homebrew (macOS): brew upgrade --cask kyon-sh/kyon/kyon. Give the full name: with the short one, Homebrew may not look for a newer Kyon for up to a day after it last checked.
  • apt (Debian and Ubuntu, with Kyon's repository added): sudo apt update && sudo apt upgrade.
  • A download (the disk image, the Debian package, the tarball or the Windows zip): download the new release and put it where the old one is.

About Kyon, in the Kyon menu, shows the version and update channel you are on. To find out whether there is a newer release, run Check for updates from the command palette (⌘P) or the Kyon menu, or press it on the About page. Kyon asks only when you do, never on its own schedule. The About page then says whether you have the latest release. If you don't, it names the new version, says what to do for the way your copy was installed, and offers one button for it:

  • Copy the command, for a copy that Homebrew or Kyon's apt repository keeps up to date: paste the command in a terminal and run it.
  • Download with the version, for a copy installed from a download: it opens that release's file for your system in the browser.

Kyon tells installs apart by what each leaves behind. A Mac copy counts as Homebrew's when Homebrew holds the Kyon cask. A Linux copy in /opt/kyon counts as the apt repository's when the repository's list is in /etc/apt/sources.list.d/kyon.list; otherwise it was installed from the Debian package.

Release channels

Settings › General › About shows which channel you are on, and Which releases to offer in Settings › Terminal › General chooses it: stable, beta or nightly. Stable is what most people should use. Moving back from beta or nightly to stable does not undo a newer build already installed; you go back to stable releases from the next one that is newer.

What changed

After an update, the first window says once that Kyon was updated, with a link to what changed. View latest changelog (⌥⇧⌘O) opens it at any time, as does What's new on the About page. To stop the notice, turn off Show changelog toast after updates in the same place.

Where Kyon keeps your files

WhatmacOSLinuxWindows
Settings, key bindings, saved commands, launch configurations~/Library/Application Support/com.ryowave.kyon~/.config/kyon%APPDATA%\Ryowave\Kyon
Restored sessions and other data~/Library/Application Support/com.ryowave.kyon~/.local/share/kyon%LOCALAPPDATA%\Ryowave\Kyon
Logs~/Library/Logs/com.ryowave.kyon~/.local/state/kyon%LOCALAPPDATA%\Ryowave\Kyon\logs
Caches~/Library/Caches/com.ryowave.kyon~/.cache/kyon%LOCALAPPDATA%\Ryowave\Kyon\cache

On Linux, the XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME and XDG_CACHE_HOME variables move these folders where they are set.

The settings are in settings.toml and the key bindings in keybindings.toml. Run Open settings file (⌥⌘,), Open keybindings file or Show the settings folder from the palette to reach them, and View Kyon logs to open the folder of logs.

When the settings file has a mistake

Kyon re-reads the settings file within a second of it changing. If a value in it cannot be used, Kyon sets that value aside, keeps the rest, and says so in a band at the top of the window and at the foot of the Settings window. From there you can open the file, or, with AI on, ask an agent to fix it. Re-read the settings file applies the file again after you have edited it elsewhere.

When something looks wrong

  • A message went by too fast. What this window has said lists the window's recent notices, newest first, each as one line. Choose one to read all of it in the editor, where you can select and copy it; Clear messages at the top empties the list. Error notices are also written to kyon.log.
  • A hint you dismissed is gone. Show the hints again brings them back, and Show the introduction again runs the first-run introduction once more.
  • An agent is not recognised in a terminal. See Coding agents for how Kyon recognises one, and install Kyon's plugin for it when offered.
  • A server can't be reached. See Working on a server. Kyon connects with your own SSH configuration, so check that ssh to the host works in a terminal first.
  • Kyon quit unexpectedly. Start it again: your tabs, splits and sessions come back as they were.

When the saved session will not open

If Kyon fails to start twice in a row while bringing your last session back, the third start opens an empty window instead, so you are never locked out. Your session is not lost: Kyon sets it aside before anything can be saved over it, and the window says so until you dismiss it. Shells you kept running are still running and are listed in the Connections dropdown, where you can open each one again.

To open the set-aside session again, quit Kyon and start it from a terminal with --restore-kept set-aside. On macOS:

/Applications/Kyon.app/Contents/MacOS/kyon --restore-kept set-aside

Kyon also keeps a copy of the saved session from each of the last 10 starts. --kept-sessions lists every copy with why it was kept, and --restore-kept followed by a copy's path puts that one back. Whatever was in place is kept in turn, so putting a copy back never loses anything either. The copies are in the recovery/sessions folder beside the restored sessions (see Where Kyon keeps your files).

Telling us about it

Run Feedback from the palette or the menu behind the button at the right of the title bar; Feedback says where reports go and what makes one easy to act on. The version on the About page (its copy button copies it) and the log from View Kyon logs help most.

Removing Kyon

With Homebrew, run brew uninstall --cask kyon; otherwise move Kyon from Applications to the Bin. Your settings and sessions stay in the folders above, so a later install picks up where you left off. Delete those folders as well to remove everything.

© Ryowavefor Kyon 0.2.35