Command, agent and memory listings show a folder's project items when its project settings are not loaded

Abierto
#9,268 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
backend

Línea de trabajo

Start with computeSlashCommands and computeAgents in packages/server/src/ws-file-ops/browser.js and the memory listing in packages/server/src/ws-file-ops/memory.js, then look at getFolderTrustStateForDisplay and how launchedWithProject is recorded for claude-cli/claude-tui sessions. The issue leaves four decisions open (omit vs. mark, which trust check, running processes, Control Room scope), so agree on those before editing either client. Done means untrusted folders hide or mark project commands, agents and memory, the lists follow the trust toggle live and match the running process for launched sessions, with new tests on the server listing functions and a smoke run on an isolated daemon.

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

Descripción

app dashboard enhancement server

Context

Split from blamechris/chroxy#9250 (the second half of its last item), so that #9250 can close with mobile app support for the folder trust banner.

Description

For a session folder that is not trusted, Claude sessions load user settings only. The daemon's listings still include the folder's project entries, and both clients present them as available:

  • list_slash_commands: computeSlashCommands in packages/server/src/ws-file-ops/browser.js scans <cwd>/.claude/commands as source project.
  • list_agents: computeAgents in the same file scans <cwd>/.claude/agents.
  • memory_stack_result (dashboard Memory panel): packages/server/src/ws-file-ops/memory.js lists <cwd>/CLAUDE.md and CLAUDE.local.md with their imports.

The mobile app shows them in its slash-command and agent lists; the dashboard shows them in its command picker, agent list and Memory panel. A listed project command does nothing useful in an untrusted folder, and the Memory panel describes files the session does not load.

Decisions to make

  1. Omit or mark. Omitting project entries is server-only. Keeping them marked as not loaded needs a protocol field and UI in both clients. The Memory panel probably wants "not loaded" rather than hidden.
  2. Which trust check. Listings are requested often, so the cached display state (getFolderTrustStateForDisplay, 2 s cache) fits better than a launch-lane scan.
  3. Running processes. claude-cli and claude-tui sessions launched with project settings keep them until they restart (launchedWithProject). Their listing should follow the running process.
  4. Scope. Only Claude-family providers are affected. The Control Room skills inventory (the projectOnly survey, #5555) is a host survey of what exists and should not change.

Acceptance Criteria

  • For an untrusted folder, a Claude session's command and agent lists and the Memory panel no longer present project items as loaded.
  • Trusting the folder brings them back without a reconnect; stopping trusting removes them again.
  • A claude-cli / claude-tui session launched with project settings lists what its running process has.
  • Tests on the server listing functions; a smoke run on an isolated daemon.
Lenguaje dominante
JavaScript
Estrellas
7
Forks
1
Merge medio
2 h 3 min
PR fusionados (30 d)
333

Preparar el entorno

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 blamechris/chroxy

Todos los issues de blamechris/chroxy

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.