Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(hld): use correct path for global slash commands#875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
testower wants to merge1 commit intohumanlayer:main
base:main
Choose a base branch
Loading
fromtestower:fix/global-slash-commands-not-found

Conversation

@testower
Copy link

@testowertestower commentedNov 27, 2025
edited
Loading

What problem(s) was I solving?

Fixes#841

Global slash commands from~/.claude/commands were not being discovered in CodeLayer. Users saw "Failed to load commands" when typing/.

The root cause was that hld was looking for global commands at~/.config/claude-code/commands instead of~/.claude/commands where Claude Code actually stores them.

What user-facing changes did I ship?

Global slash commands now appear correctly when typing/ in CodeLayer.

How I implemented it

Changed the default global commands path inhld/api/handlers/sessions.go from:

  • ~/.config/claude-code/commands (incorrect default)

To:

  • ~/.claude/commands (matching Claude Code's actual location)

CLAUDE_CONFIG_DIR is still respected as an override when set, providing flexibility for non-standard configurations.

Updated tests to use the correct default path.

How to verify it

  • I have ensuredmake check test passes
  • Place a.md file in~/.claude/commands/ and verify it appears when typing/ in CodeLayer
  • (Optional) SetCLAUDE_CONFIG_DIR to a custom path and verify commands are discovered from$CLAUDE_CONFIG_DIR/commands

Description for the changelog

Fixed global slash commands not being discovered from~/.claude/commands

A picture of a cute animal (not mandatory but encouraged)

🦔

ellipsis-dev[bot] and eibakke reacted with rocket emoji
@CLAassistant
Copy link

CLAassistant commentedNov 27, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

@testowertestower marked this pull request as draftNovember 27, 2025 07:47
Copy link
Contributor

@ellipsis-devellipsis-devbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Important

Looks good to me! 👍

Reviewed everything up to4934db4 in 45 seconds. Click for details.
  • Reviewed26 lines of code in1 files
  • Skipped0 files when reviewing.
  • Skipped posting2 draft comments. View those below.
  • Modify yoursettings andrules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1.hld/api/handlers/sessions.go:1622
  • Draft comment:
    Good fix – global slash commands now correctly use ~/.claude/commands. Removing the CLAUDE_CONFIG_DIR fallback resolves the discovery issue.
  • Reason this comment was not posted:
    Confidence changes required:0% <= threshold50% None
2.hld/api/handlers/sessions.go:1624
  • Draft comment:
    Consider logging or handling the error case when os.UserHomeDir() fails so that issues with resolving the user’s home directory aren’t silently ignored.
  • Reason this comment was not posted:
    Confidence changes required:33% <= threshold50% None

Workflow ID:wflow_AwYtZ7lcSNPmMwUf

You can customizeEllipsis by changing yourverbosity settings, reacting with 👍 or 👎,replying to comments, or addingcode review rules.

@testower
Copy link
Author

testower commentedNov 27, 2025
edited
Loading

I don't know if this is the correct solution, as I'm new to this codebase, but it works (tm).

Global slash commands were not being discovered because hld waslooking in ~/.config/claude-code/commands instead of ~/.claude/commandswhere Claude Code actually stores them.CLAUDE_CONFIG_DIR is still respected as an override when set.🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude <noreply@anthropic.com>
@testowertestowerforce-pushed thefix/global-slash-commands-not-found branch from4934db4 to9524458CompareNovember 27, 2025 09:07
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ellipsis-devellipsis-dev[bot]ellipsis-dev[bot] left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Getting "Failed to load commands" running the latest

2 participants

@testower@CLAassistant

[8]ページ先頭

©2009-2025 Movatter.jp