Skip to content

Friction log #262

@threepointone

Description

@threepointone

Tried doing some basic stuff with sandbox, faced some problems and couldn't proceed. Made a repro with the big ones, repo here: https://github.com/threepointone/repro-sandbox-friction

  • using any class that extends Sandbox throws a type error in getSandbox(env.Sandbox, name)
Image
  • ok then I cast it as what I think it should be, but it's not picking up the custom method I've exposed on the class. Not even sure this is a sandbox problem, but I feel stupid for not knowing how to fix this...
Image
  • ok so I expose a methos that runs "echo 123" as a simple process, and add logs on onOutput, onError, onExit, onStart. Only onStart is triggered, but without a process id (because the process dies?) But I'd expect onOutput to show 123

  • or I'd expect await process.getLogs() to show me 123 but apparently that's empty too

Image
  • I tried running opencode on this sanebox and sending it requests, but I don't think it's receiving requests. Or maybe it is! I can't say lol.

(Btw, this is for me running opencode on a sandbox, and I have more questions around proxyToSandbox and passing environment variables, but I'm blocked with the above atm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions