Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

epic: Better Cortex Error Handling and Hardware Compatibility Checks #369

@freelerobot

Description

@freelerobot

Spec

https://www.notion.so/jan-ai/Better-Error-Handling-and-Hardware-Compatibility-Checks-3d6944c3fb7b41429dee3e44432dc3a8?pvs=4

Update:

In Github issues, search Nitro - it is current the number one root cause of a majority of user experience issues when using Jan.

Let's focus on quality improvements to Nitro for a few sprints.


Previous Context

Problem:
Currently, Nitro just fails. The process terminates with no clear reasons.
Debugging entails asking users for 1000 lines of logs, and making a best guess on where we went wrong.

There are 2 failure states:

  1. User system setup/dependencies issues, see bug: error loading model : undefined jan#1683
  2. User input validation error (To alan's pt, this introduces additional logic and latency, so we may choose to prioritize 2)
  3. Esoteric Nitro internal errors from llamacpp, drogon, or any part of its subroutines.

Ideal:

  • Clearly defined error states/types in Nitro
  • Nitro terminates with the correct signals
  • Invocation code gets better errors from Nitro from callback or something...

Tasklist

Context:
Also @alan can you queue up an epic/feat for nitro error handling and graceful failures? i.e. people want Nitro to expect common errors, define clear error enums, and fail gracefully, propagating errors to whatever is dependent on it

Metadata

Metadata

Labels

P1: importantImportant feature / fixtype: epicA major feature or initiative

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions