Remote hosts: run the stage 0 tests against a real devbox

Open
#164 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
swift

Research direction

Start by reading the eight Stage 0 checks in the issue and identify the existing remote-host and devbox entry points in the repository. Run each check against a real PostHog devbox and record its pass condition, including timings and behavior across reconnects. Done means all checks have results and the Unix socket forwarding fallback is documented if needed.

Written by the indexing model from the issue text.

Description

enhancement

Stage 0 of remote hosts. Each test needs a real PostHog devbox and has a pass condition.

  1. A control master to the box stays up for an hour idle and across a Mac sleep, or reconnects within 10 s. tmux capture-pane through it takes under 150 ms at the median.
  2. ssh -R forwards a Unix socket through Coder's ssh server, a stale socket file doesn't block the next forward, and a client on the box reaches sbd.
  3. A box claude with the shim as its hook command reaches a private sbd. A PermissionRequest holds for 10 minutes. Dropping the link mid-hold leaves the dialog in the terminal, and sbd answers it by typing after the link returns.
  4. claude --session-id, --resume, and claude agents --json work from a login shell. Does --model override the managed opus setting? Does the token's use show in the Mac account's /usage?
  5. A SwiftTerm pane running ssh -t … tmux attach echoes without noticeable lag, resizes, and passes mouse and extended keys.
  6. Find Coder's idle stop schedule, and whether an idle control master or an attached tmux client counts as activity.
  7. git worktree add from ~/posthog gives a usable checkout. Record how long Flox and the dependency install take. Commit signing through the forwarded agent works from inside tmux after a reconnect, and the husky post-checkout hook doesn't try to create a devbox from the box.
  8. hogli devbox:start <label> creates a labeled box without a terminal. Record the time until claude can start. coder delete --yes removes it.

If a forwarded Unix socket doesn't work (test 2), the fallback is a relay on the box.

Dominant language
Swift
Stars
0
Forks
0
Avg merge
6h 15m
Merged PRs (30d)
308

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haacked/switchboard

All issues in haacked/switchboard

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.