Skip to content

fix: use LocalShellBackend for core backend to satisfy SandboxBackendProtocol - #675

Merged
avoidwork merged 1 commit into
mainfrom
fix/core-backend-sandbox-protocol
Aug 2, 2026
Merged

fix: use LocalShellBackend for core backend to satisfy SandboxBackendProtocol#675
avoidwork merged 1 commit into
mainfrom
fix/core-backend-sandbox-protocol

Conversation

@avoidwork

@avoidwork avoidwork commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Description

Replace FilesystemBackend with LocalShellBackend in createCoreBackend() so the core backend satisfies SandboxBackendProtocolV2. FilesystemBackend only implements BackendProtocolV2 — it lacks the execute() method and id property required by the sandbox protocol. LocalShellBackend extends FilesystemBackend and adds both.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)
  • Performance improvement
  • CI / build / tooling

Testing

  • All 1054 tests pass (npm run test)
  • LocalShellBackend is a drop-in replacement for FilesystemBackend — same constructor options, extended with execute() and id

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

…Protocol

Replace FilesystemBackend with LocalShellBackend in createCoreBackend()
to provide execute() and id() required by SandboxBackendProtocolV2.
Context backend remains FilesystemBackend (read-only, no execution needed).
@avoidwork avoidwork added the bug Something isn't working label Aug 2, 2026
@avoidwork avoidwork self-assigned this Aug 2, 2026
@avoidwork avoidwork added the bug Something isn't working label Aug 2, 2026
@avoidwork
avoidwork merged commit 4798cda into main Aug 2, 2026
3 checks passed
@avoidwork
avoidwork deleted the fix/core-backend-sandbox-protocol branch August 2, 2026 16:57
@avoidwork avoidwork mentioned this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant