Skip to content

fix(python): preserve security config across Bash.reset()#463

Merged
chaliy merged 1 commit intomainfrom
claude/fix-424-Y2nIj
Mar 2, 2026
Merged

fix(python): preserve security config across Bash.reset()#463
chaliy merged 1 commit intomainfrom
claude/fix-424-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

Summary

  • reset() was creating bare Bash::builder(), discarding all config
  • Now rebuilds with stored username, hostname, max_commands, max_loop_iterations
  • Prevents silent removal of DoS protections after reset

Test plan

  • test_reset_preserves_config — verifies username, hostname, and limits survive reset
  • Rust builds clean, Python lint/format pass

Closes #424

reset() was creating a bare Bash::builder(), discarding max_commands,
max_loop_iterations, username, and hostname. Now rebuilds with the
original configuration stored at construction time.

Closes #424

https://claude.ai/code/session_01WZjYqxm5xMPAEe7FSHJkDy
@chaliy chaliy merged commit fa636e2 into main Mar 2, 2026
17 checks passed
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.

[M-10] BashTool.reset() discards security configuration

2 participants