Profile UI listed from outside the profile folder fails silently

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, tooling

Direzione di ricerca

Start with the check that emits "is outside the profile" when a profile's ui entries resolve outside its folder, and compare it with the path rule that already lets daemon extensions load from outside. Reproduce with a profile like chief-of-staff/profile.ts listing ui: ['../default/run/ui.tsx']. Done means either the UI loads, or the refusal appears in superego extensions and extension reload output; the maintainers must first decide which of the two the fix should be.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A profile that lists a UI file outside its own folder (e.g. chief-of-staff/profile.ts with ui: ['../default/run/ui.tsx']) has its whole UI rejected: the daemon refuses with "../default/run/ui.tsx is outside the profile", and that error only shows in the window's dev-tools console. Daemon extensions from outside the folder load fine, so the profile looks half-working (tools work, header views and panes from other UI files in the profile never appear).

superego extension test can't catch it because its test window takes the UI code directly instead of loading it from the profile's files.

Suggestions: allow UI paths outside the profile the same way daemon extensions are allowed (or within the user's profiles dir), and surface the refusal in superego extensions / extension reload output and the window. Workaround used: a symlink chief-of-staff/run -> ../default/run.

Lingua principale
TypeScript
Stelle
44
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di githubnext/superego

Tutte le issue di githubnext/superego

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.