Profile UI listed from outside the profile folder fails silently

Abierto
#8 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli, tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
44
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de githubnext/superego

Todos los issues de githubnext/superego

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.