Skip to content

fix: filter non-callable commands in agents.go and skill.go#111

Merged
leodido merged 1 commit into
mainfrom
ld/generate-fix-callable
Apr 17, 2026
Merged

fix: filter non-callable commands in agents.go and skill.go#111
leodido merged 1 commit into
mainfrom
ld/generate-fix-callable

Conversation

@leodido
Copy link
Copy Markdown
Owner

@leodido leodido commented Apr 17, 2026

Description

agents.go included all commands (including non-runnable parent commands) in the commands table, flags section, and env vars. skill.go had the same bug in its Available Commands section — it wrote a section for every command without filtering. llmstxt.go already filtered correctly via isCallableCommand.

This applies the same isCallableCommand filter to both files.

How to test

go test ./generate/ -v
@github-actions github-actions Bot added the bug Something isn't working label Apr 17, 2026
@leodido leodido force-pushed the ld/generate-fix-callable branch from c3f4619 to 77aa296 Compare April 17, 2026 20:42
@leodido leodido changed the title fix: filter non-callable commands in agents.go fix: filter non-callable commands in agents.go and skill.go Apr 17, 2026
agents.go included all commands (including non-runnable parent commands)
in the commands table, flags section, and env vars. skill.go had the
same bug in its Available Commands section. llmstxt.go already filtered
correctly.

Apply isCallableCommand filtering in both files, matching llmstxt.go.

Co-authored-by: Ona <no-reply@ona.com>
@leodido leodido force-pushed the ld/generate-fix-callable branch from 77aa296 to 6a635f1 Compare April 17, 2026 20:59
@leodido leodido self-assigned this Apr 17, 2026
@leodido leodido merged commit 011bb62 into main Apr 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

1 participant