Skip to content

fix(interp): remove special case for help builtin command#176

Merged
matt-dz merged 2 commits intomainfrom
matt-dz/remove-help-special-case
Apr 7, 2026
Merged

fix(interp): remove special case for help builtin command#176
matt-dz merged 2 commits intomainfrom
matt-dz/remove-help-special-case

Conversation

@matt-dz
Copy link
Copy Markdown
Collaborator

@matt-dz matt-dz commented Apr 7, 2026

Summary

  • Remove the implicit allowlisting of help — it must now be explicitly included in AllowedCommands like any other command
  • Removed 4 special-case checks: 2 in command allowlist enforcement, 2 in CommandAllowed callbacks
  • Deleted always_available.yaml scenario test
  • Updated restricted_commands.yaml to include rshell:help in allowed commands

Closes #175

Test plan

  • Full test suite passes (interp, tests, analysis)
  • CI passes

🤖 Generated with Claude Code

The help command is no longer implicitly allowed — it must be
explicitly included in the AllowedCommands list like any other
command. Removes the name != "help" checks from the command
allowlist enforcement and the CommandAllowed callback.

Closes #175

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt-dz matt-dz marked this pull request as ready for review April 7, 2026 14:34
@matt-dz matt-dz added this pull request to the merge queue Apr 7, 2026
@matt-dz matt-dz removed this pull request from the merge queue due to a manual request Apr 7, 2026
Tests that restricted commands but expected help to be implicitly
available now explicitly include rshell:help. TestHelpAlwaysAvailable
replaced with TestHelpNotAllowedWhenNotInList that verifies help is
blocked when not in the allowlist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt-dz matt-dz added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit 06b4de0 Apr 7, 2026
34 checks passed
@matt-dz matt-dz deleted the matt-dz/remove-help-special-case branch April 7, 2026 14:43
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.

Remove special case for help builtin command

2 participants