Skip to content

enhancement: Document and test permissions in a Claude code sandbox #466

Closed as duplicate

Description

@waynehsmith

When modifying a project in Claude Code to enable a sandbox environment, plannotator either throws an error or refuses to connect in the browser.

here is an example of a setting in the settings.local.json in the .claude folder of the project

  "sandbox": {
    "enabled": true,
    "autoAllowBashIfSandboxed": true,
    "filesystem": {
      "allowWrite": [
        ".",
        "/home/<username>/.plannotator"
      ]
    },
    "network": {
      "allowLocalBinding": true
    }

Even with these settings the page fails to connect when using plannotator annotate.

Activity

  1. benrosenblum commented on Apr 23, 2026

    @benrosenblum

    I added this to sandbox. It'll just prompt for permission and still work.

    "sandbox": {
            "excludedCommands": [
                "plannotator *"
            ],
           "...",
    }
  2. Grafikart commented on May 22, 2026

    @Grafikart

    I would add a complete list of permission needed for plannotator to work would be nice. For instance if it's used with bubblewrap or greywall (or any sandboxing app). I got this

    • Read / Write access to ~/.plannotator
    • Allow network access on :35747

    But I'm missing pieces

    • "Code review opened. You can keep chatting while it runs." doesn't work, is there a command called to for this, something I need to allow
    • The server is listening on localhost, could I make it listen to 127.0.0.1 ?
  3. backnotprop commented on Jun 13, 2026

    @backnotprop
    Owner

    Thanks for the report. I am consolidating the older backlog so related work has one current tracking issue.

    This specific request is now tracked in #902 as part of the installer, update, package manager, and sandbox docs work. During the June 13, 2026 older-than-two-month triage, I copied the relevant requirement from this issue into #902 and explained why it belongs with the related work.

    I am closing this older issue so the backlog points at the current tracking issue. If there is a newer reproduction or a detail that is missing from #902, please comment there.

  4. schallerala commented on Sep 3, 2026

    @schallerala

    I also encounter this issue after the organization I'm part of deployed a new policy for Claude with the following ~/.claude/remote-settings.json: { "sandbox": { "enabled": true, "failIfUnavailable": false } }.

    After that change, when I was trying to use /plannotator-* ... skills inside Claude, I ended up with an error like:

    error: Port 0 in use after 5 retries
               at startBunServerOnAvailablePort (/$bunfs/root/plannotator-darwin-arm64:53615:15)
               at async startAnnotateServer (/$bunfs/root/plannotator-darwin-arm64:106608:54)
    

    I iterated with Claude to find the right combinaison of settings to use those skills again and ended-up with the following ~/.claude/settings.json:

    {
      "sandbox": {
        "network": {
          "allowLocalBinding": true
        },
        "filesystem": {
          "allowWrite": [
            "/home/MYUSER/.plannotator"
          ]
        },
        "excludedCommands": [
          "plannotator",
          "plannotator *"
        ]
      }
    }

    Hope this help others.


    Details of the investigation and only setting `sandbox.network.allowLocalBinding`

    When only setting allowLocalBinding to true, it avoided the error: Port 0 in use after 5 retries error, however, it opened the browser but without the active plannotator session. I had to open the session with the plannotator sessions --open <N> in a different shell... Which is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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