Visitar URL original
paseo kit: opencode with no arguments prints Paseo's connect banner instead of starting OpenCode on msb · Issue #548 · GSA-TTS/agentic-coding-patterns · GitHub
Skip to content

paseo kit: opencode with no arguments prints Paseo's connect banner instead of starting OpenCode on msb #548

Open

Description

@basiliskus

The paseo kit drops a wrapper at ~/.local/bin/opencode, first on the guest PATH, that passes any arguments through to the real OpenCode but, with no arguments, execs paseo-agent-shim. The shim was designed for a backend where the bare opencode is the sandbox entrypoint (PID 1): it pins Paseo's worktree root, prints the host-connect instructions, and holds PID 1 so the sandbox stays up.

On msb that assumption doesn't hold. acq run <sandbox> runs msb exec -t ... -- opencode (acq.backends/msb.sh), and a typed opencode in acq shell does the same, so neither is PID 1. The shim prints the banner, says "This command is exiting and returning your terminal", and exits. A user who installed the paseo kit can't open OpenCode's TUI with the bare command, and nothing tells them to pass an argument.

Reproduce (msb 0.7.11, quickstart main b433a61, paseo kit at 94f807a, devenv-shell:1.0.0):

acq run <sandbox>          # from the host
# or, inside `acq shell <sandbox>`:
opencode

Both print the "Paseo daemon + web UI are up on 127.0.0.1:6767" banner and return to the prompt instead of opening OpenCode. command -v opencode resolves to /home/agent/.local/bin/opencode; opencode . or /usr/local/bin/opencode opens the TUI.

A second concern, from reading the shim, not reproduced: its worktree-root step uses its own cwd, so a bare opencode typed in a repo other than the primary workspace would repoint worktrees.root and restart the daemon worker (paseo daemon restart), which may interrupt running agents.

Ask: on the no-argument path, run the shim only when the wrapper is PID 1 (the case it exists for), and otherwise exec the real opencode. #535 now seeds worktrees.root from ACQ_WORKSPACE at startup, so the non-PID-1 path may not need the shim's worktree step at all. Alternatively, drop the wrapper on backends where the agent isn't the entrypoint.

Activity

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