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

Open
#9,268 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, node.js
Domain
backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
JavaScript
Stars
7
Forks
1
Avg merge
2h 3m
Merged PRs (30d)
333

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blamechris/chroxy

All issues in blamechris/chroxy

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.