Skip to content

fix: render local CLI commands as distinct block type#59

Merged
vtemian merged 1 commit intodevelopfrom
fix/local-commands
Feb 17, 2026
Merged

fix: render local CLI commands as distinct block type#59
vtemian merged 1 commit intodevelopfrom
fix/local-commands

Conversation

@vtemian
Copy link
Copy Markdown
Collaborator

@vtemian vtemian commented Feb 17, 2026

Summary

  • Adds LOCAL_COMMAND block type with its own parser for <local-command-stdout> tags
  • Routes local commands (/clear, /help, /compact) away from the skill parser in the pipeline
  • New ThreadPageConversationLocalCommand component with bash icon and "Command" label
  • Simple pill when no output, accordion with code block when output exists

Closes #41

Session

claudebin.com/threads/AL-X1ypTWK

Test plan

  • Visit /threads/7-WzkqtrK6/clear should render as "Command /clear" pill with bash icon
  • bun check passes
  • bun type-check passes (only pre-existing layout.tsx errors)
  • Sessions with /help, /compact render correctly
  • Skill blocks (/commit, custom skills) still render as before

🤖 Generated with Claude Code

Local commands (/clear, /help, /compact) use <local-command-stdout> tags
instead of <instructions>/<output>. The parser now detects these and emits
a LocalCommandBlock with its own component, icon, and i18n label.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vtemian vtemian merged commit 367a2a8 into develop Feb 17, 2026
2 checks passed
@vtemian vtemian deleted the fix/local-commands branch February 17, 2026 16:28
vtemian added a commit that referenced this pull request Feb 18, 2026
fix: render local CLI commands as distinct block type
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