Skip to content

action: agent action sets up a local sandbox host even when an OpenShell gateway endpoint is configured #9044

Closed

Description

@jctanner

What happens

The agent action (action.yml) turns every runner into a sandbox host
before it runs the agent. These steps have no if: condition on
origin/main:

  • Install Podman (line 390) runs .github/scripts/install-podman.sh.
  • Configure rootless Podman (line 394) requires cgroups v2, runs
    sudo usermod --add-subuids ... when the user has no /etc/subuid entry,
    then podman system migrate, podman info and
    systemctl --user start podman.socket.
  • Configure OpenShell gateway (line 404) writes
    $HOME/.config/openshell/gateway.env and gateway.toml with
    compute_driver = "podman".

That is the right setup for a GitHub-hosted runner, which starts as a fresh
virtual machine with none of it. It is the wrong setup for a runner that
uses an OpenShell gateway running somewhere else. Fullsend already supports
that arrangement: ensureContainerGatewayOverride in
internal/sandbox/gateway_endpoint.go (line 58) respects an explicit
OPENSHELL_GATEWAY_ENDPOINT and does not change it. On such a runner:

  • Sandboxes are created on the remote gateway, so the runner does not need
    Podman. The gateway.toml written on the runner configures a local gateway
    that is not used. It does not reach the gateway it is meant to configure.
  • On a runner that is a container rather than a virtual machine, the Podman
    steps fail because sudo usermod and systemctl --user are not available.
    The job then fails before the agent starts.

What should happen

When the runner is configured for an existing OpenShell gateway
(OPENSHELL_GATEWAY_ENDPOINT is set), the action does not install or
configure a local container runtime or a local gateway. A runner that hosts
its own sandboxes, such as a GitHub-hosted runner, works as it does today.

How to reproduce

  1. Run a self-hosted runner as a container whose user cannot use sudo or a
    systemd user session, for example a Kubernetes pod. Use an image that
    already includes the openshell CLI and jsonschema.
  2. Set OPENSHELL_GATEWAY_ENDPOINT in the runner's environment so that it
    points at a reachable OpenShell gateway.
  3. Run any workflow that uses the agent action on that runner.
  4. The action runs Install Podman and Configure rootless Podman. The job
    fails at Configure rootless Podman before Run fullsend. The run never
    uses the gateway that the endpoint names.

Context

Found while running Fullsend end to end against a local GitHub API emulator.
The emulator's self-hosted Actions runners are containers, and they use an
OpenShell gateway that runs as a separate service.

Related: #5262, which added the OPENSHELL_GATEWAY_ENDPOINT override in
gateway_endpoint.go for a containerised CLI that cannot reach the gateway
on loopback.

Activity

  1. fullsend-ai-triage commented on Nov 3, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:57 AM UTC · Completed 1:59 AM UTC

    Commit: f6e35de · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.09

  2. added
    ready-to-code
    on Nov 3, 2026
  3. fullsend-ai-triage commented on Nov 3, 2026

    @fullsend-ai-triage

    Thanks for the detailed report. The unguarded steps in the root action.yml match your description, and no existing PR or duplicate issue covers this.

    Implementation note: a step-level if: env.OPENSHELL_GATEWAY_ENDPOINT == '' will not work for your container-runner case. The env context only contains variables defined in the workflow, job or step. It does not contain variables set in the runner process's own environment, which is where you set the endpoint. The fix should add a small early bash step that reads the process environment and exports a flag through $GITHUB_OUTPUT or $GITHUB_ENV. The Install Podman, Configure rootless Podman and Configure OpenShell gateway steps would then be gated on that flag. Whether Install OpenShell CLI should stay unconditional (it is presumably safe when the CLI is preinstalled) should be verified against install-openshell.sh.

    Proposed test case:

    Run the gating step in two environments:
    1. OPENSHELL_GATEWAY_ENDPOINT unset or empty -> local-setup flag is true; Podman install/config and gateway.toml steps run as today.
    2. OPENSHELL_GATEWAY_ENDPOINT=https://gateway.example:8080 -> flag is false; those three steps are skipped and ~/.config/openshell/gateway.toml is not written.
    In both cases, Install OpenShell CLI and Run fullsend still execute.
    

    This edits the root composite action.yml, not a file under .github/workflows/, so the code agent should be able to implement it.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-coder commented on Nov 3, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:01 AM UTC · Completed 2:09 AM UTC

    Commit: f6e35de · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.47

  5. added 2 commits that reference this issue on Nov 3, 2026
  6. added 3 commits that reference this issue on Nov 6, 2026
  7. 21 remaining items

  8. added 15 commits that reference this issue on Nov 16, 2026
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

    bugready-to-code

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions