Skip to content

[Bug]: Ghostty theme paths containing a literal hash are truncated #50540

Description

@Afloat16

Where were you using Orca?

Other

Operating system

Linux

Remote host operating system

None

Orca version

Source checkout at 9890ea1

Details

Ghostty comments are valid only on their own lines. Orca treated a whitespace-prefixed hash as an inline comment, truncating legitimate unquoted theme file paths and making theme imports fail.

Reproduction:

Create a real theme file whose pathname contains ' # ', put that unquoted path in a Ghostty theme setting, and run parseGhosttyConfig followed by the existing theme resolver. Keep a whole-line comment and an ordinary font-size setting in the same config.

Reproducible fixture on the proposed branch: https://github.com/Afloat16/orca/blob/afloat16/orca50-20261127-ghostty-literal-hash/src/main/ghostty/parser.test.ts

Observed before: New real-file parser/theme-resolution regression failed: expected background/foreground colors, got null because the parsed path stopped before #.

Proposed behavior: Remove unsupported inline-comment stripping while retaining whole-line comments. A theme path containing a literal space followed by # now reaches the existing real-file theme loader unchanged.

Evidence: The same regression passes, with ordinary font-size and whole-line comment controls.

Locally exercised on Linux with Node 24.22.3. External API cases use protocol fixtures; no live provider account, graphical desktop, macOS, Windows or remote SSH execution is claimed.

Primary protocol references:

Related work reviewed for scope:

Activity

  1. added
    bug
    on Nov 27, 2026
  2. added theissue type on Nov 27, 2026
  3. added
    os:linux
    on Nov 27, 2026
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

    bugos:linux

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions