Skip to content

t3code: app-name mismatch breaks access to existing encrypted data #575671

Closed

Description

@merrkry

Nixpkgs version

  • Unstable (26.11)

Describe the bug

The nixpkgs t3code build copies the source package.json and launches its directory with Electron, preserving top-level productName: historically T3 Code (Alpha), now T3 Code (Beta) in 0.1.0.

The official release script instead writes name: "t3code" without a top-level productName, keeping the name stable.

Electron prefers productName, then name, and captures the application name in Linux's encryption configuration.

This could lead to different safeStorage/keyring identities and decryption failure after upgrading to 0.1.0, or when switching between nixpkgs packaging and official binaries.

Related upstream issue: pingdotgg/t3code#20906.

Given that we already shipped 0.1.0, users would need a manual migration anyways. I suggest we patch it to t3code.

Steps to reproduce

  1. Using disposable data and a test keyring on Linux, save safeStorage-encrypted data with the Alpha source build.
  2. Upgrade to the 0.1.0 source build, or switch to an official binary, keeping the same data and keyring.
  3. Attempt to read the existing encrypted data.

Expected behaviour

Existing encrypted data remains readable after upgrades or switching packages.

Additional context

Investigated and drafted with Codex (GPT-6.1). Rewritten by human for reading less painfully.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.55, NixOS, 26.11 (Zokor), 26.11.20261015.6bacccf
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Determinate Nix 3.23.2) 2.35.3
  • nixpkgs: /nix/store/5j3f0cml21hkng9qs8nxphskd2df1pbp-source

Notify maintainers

@iamanaws @qweered


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Oct 18, 2026
  2. changed the title [-]t3code: source/release app-name mismatch breaks access to existing encrypted data[/-] [+]t3code: app-name mismatch breaks access to existing encrypted data[/+] on Oct 18, 2026
  3. iamanaws commented on Oct 18, 2026

    @iamanaws
    Member

    Thanks for the heads up
    #575686

  4. MaxWipfli commented on Nov 13, 2026

    @MaxWipfli
    Contributor

    I've noticed that the decryption failure leads to t3code-desktop not reading any of the existing settings (while the web version launched with t3 still works).

    A partial migration is to simply delete (or rename) $HOME/.t3/userdata/connection-catalog.json. This will allow all the remaining settings/data to still be read. Remote connections have to be set up manually again, but the data (e.g., existing threads) on the remotes show up again once the connection have been set up again.

    I hope this is helpful to anyone in the same situation.

    Researched with Codex (GPT-6.1-Sol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions