Skip to content

feat(ux): actionable error messages with fix commands (#278) - #281

Merged
hurttlocker merged 2 commits into
mainfrom
feat/278-error-ux
Mar 1, 2026
Merged

hurttlocker merged 2 commits into
mainfrom
feat/278-error-ux

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

What

Expands remediationHint() with 15 new error categories so every common user-facing error now includes the exact command or env var to fix it. Also improves 5 inline stderr messages during import/enrichment.

New hint categories

Category Example hint
Ollama unreachable ollama serve, then retry
Embed health check Check service or switch --embed
Unknown embed provider Lists supported providers with example
Embed API key missing Which env var to set
Invalid --embed format Correct format with example
Unknown LLM provider Lists supported + example
Invalid --llm format Correct format with example
Rate limit (429) Wait and retry or switch provider
Auth failure (401) Check and update API key
Timeout / deadline Check network or reduce batch
Config not found Run cortex doctor or create config
Config syntax error Check YAML formatting
DNS / network error Check internet
Connection refused Check endpoint URL and port

Inline improvements

5 stderr messages during import now include the specific env var (OPENROUTER_API_KEY) and the flag to silence the warning (--no-enrich, --no-classify).

Testing

All 890+ tests pass, no test changes needed.

Closes #278

LavonTMCQ and others added 2 commits March 1, 2026 09:29
…ve inline messages

Adds actionable fix suggestions for:
- Embed/Ollama: unreachable, unknown provider, API key missing, bad format
- LLM: unknown provider, bad format, rate limits, auth failures, timeouts
- Config: missing file, syntax errors
- Network: DNS failures, connection refused

Also improves 5 inline stderr messages during import/enrichment to
include the exact flag or env var needed to fix or silence the warning.

All 890+ tests pass — no test changes needed.

Closes #278
@hurttlocker
hurttlocker merged commit 400b923 into main Mar 1, 2026
@hurttlocker
hurttlocker deleted the feat/278-error-ux branch March 1, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: better error UX — actionable messages with fix commands

1 participant