Skip to content

Refresh slash commands for linked directories#170

Merged
natllian merged 3 commits into
mainfrom
nathan/claude-add-dir
Apr 21, 2026
Merged

Refresh slash commands for linked directories#170
natllian merged 3 commits into
mainfrom
nathan/claude-add-dir

Conversation

@natllian
Copy link
Copy Markdown
Collaborator

What changed

  • propagate workspace linked directories into slash-command discovery and cache keys so command lists refresh when /add-dir changes
  • prepend linked-directory context to Claude prompts using the shared helper, and pass linked directories through Claude slash-command listing with the required env flag
  • invalidate the frontend slash-command query when linked directories change and add coverage for the new request parsing and sidecar behavior

Why

Previously slash-command results could stay stale after linked directories changed, and Claude handled linked-directory context differently from Codex. This makes linked directories affect command discovery consistently and keeps the UI in sync.

Follow-up / test notes

  • pre-commit hooks passed during commit: biome check --write, cargo fmt, cargo clippy -- -D warnings
  • I did not run the full test suite separately before opening this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
helmor-marketing Ready Ready Preview, Comment Apr 21, 2026 11:01am

Request Review

@natllian natllian merged commit feb38f6 into main Apr 21, 2026
10 checks passed
@natllian natllian deleted the nathan/claude-add-dir branch April 28, 2026 01:18
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.

1 participant