hermes - 💡(How to fix) Fix [Bug]: Desktop App Build Failure: Type error in use-slash-completions.ts

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Description: The desktop app update fails during the npm run build phase with a TypeScript error. This prevents the pack process from completing and blocks the in-app update. Error: src/app/chat/composer/hooks/use-slash-completions.ts:19:3 - error TS2411: Property 'rawText' of type 'string | undefined' is not assignable to 'string' index type 'string'. Error: src/app/chat/composer/hooks/use-slash-completions.ts:19:3 - error TS2411: Property 'rawText' of type 'string | undefined' is not assignable to 'string' index type 'string'.

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Code Example

Main Debug Report: https://paste.rs/8YJfL
Agent.log: https://paste.rs/9mXrQ
Gateway.log: https://paste.rs/NZBMD
Desktop.log: https;//paste.rs/XuXaJ

---
RAW_BUFFERClick to expand / collapse

Bug Description

Description: The desktop app update fails during the npm run build phase with a TypeScript error. This prevents the pack process from completing and blocks the in-app update.

Error: src/app/chat/composer/hooks/use-slash-completions.ts:19:3 - error TS2411: Property 'rawText' of type 'string | undefined' is not assignable to 'string' index type 'string'.

Fix: Change the SlashItemMetadata interface in apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts to make rawText a required string instead of optional:

// From: rawText?: string

// To: rawText: string

Version: v0.15.1

Steps to Reproduce

Run the in-app updater for Hermes Desktop

Expected Behavior

Successful update of the desktop app.

Actual Behavior

Error: src/app/chat/composer/hooks/use-slash-completions.ts:19:3 - error TS2411: Property 'rawText' of type 'string | undefined' is not assignable to 'string' index type 'string'.

Affected Component

Setup / Installation

Messaging Platform (if gateway-related)

No response

Debug Report

Main Debug Report: https://paste.rs/8YJfL
Agent.log: https://paste.rs/9mXrQ
Gateway.log: https://paste.rs/NZBMD
Desktop.log: https;//paste.rs/XuXaJ

Operating System

Windows 11 Pro

Python Version

3.11.15

Hermes Version

v0.15.1 (2026.5.29)

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

Change the SlashItemMetadata interface in apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts to make rawText a required string instead of optional:

// From: rawText?: string

// To: rawText: string

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING