Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
215 changes: 0 additions & 215 deletions apps/cptr/cptr/services/command_sandbox.py

This file was deleted.

18 changes: 0 additions & 18 deletions apps/cptr/cptr/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
preexec_for,
)
from cptr.services.execution_manager import command_session_registry
from cptr.services.command_sandbox import SandboxUnavailable, sandbox_command
from cptr.utils.runtime import Runtime, FileError

try:
Expand Down Expand Up @@ -1727,23 +1726,6 @@ async def run_command(
env = {**os.environ, "PAGER": "cat", "GIT_PAGER": "cat"}
preexec = None

if __context__.get("direct_coding"):
try:
sandboxed = sandbox_command(
command=command,
argv=__argv,
workspace=workspace,
work_dir=work_dir,
allow_network=bool(__context__.get("allow_network")),
profile=__context__.get("sandbox_profile"),
)
except SandboxUnavailable as e:
return f"Error: direct coding sandbox unavailable: {e}"
__argv = sandboxed.argv
if sandboxed.shell_command is not None:
command = sandboxed.shell_command
__use_pty = False

master_fd = None

try:
Expand Down
65 changes: 0 additions & 65 deletions apps/cptr/tests/test_command_sandbox.py

This file was deleted.

Loading
Loading