Skip to content

Auto-open browser after docker compose up (detect local vs grid URL) #757

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#757",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

The Problem

npm start auto-opens the browser. docker compose up doesn't. Users stare at logs wondering where to go. This is the single biggest UX gap for Docker adoption.

Expected Behavior

docker compose up
# ... containers start ...
# ✅ Continuum ready at http://localhost:9003
# (browser opens automatically)

For grid mode:

docker compose --profile grid up
# ... containers start, Tailscale connects ...
# ✅ Continuum ready at https://nodename.tailnet.ts.net
# (browser opens automatically)

Implementation

A lightweight post-start script or container that:

  1. Waits for node-server healthy + widget-server healthy
  2. Detects the access URL:
    • No grid profile → http://localhost:9003
    • Grid profile → query Tailscale container for its FQDN: tailscale status --json | jq .Self.DNSName
    • Future: Cloudflare tunnel → https://nodename.continuum.homes
  3. Opens the browser:
    • macOS: open $URL
    • Linux: xdg-open $URL
    • WSL2: cmd.exe /c start $URL
    • Headless: just print the URL
  4. Prints the URL to stdout regardless (for copy-paste)

Where It Runs

Option A: A one-shot browser-open container that depends on widget-server healthy
Option B: A post-start hook script that runs on the host after docker compose up -d
Option C: Part of the install script that wraps docker compose up

Option C is probably right — the install script IS the entry point for users. docker compose up is the mechanism, the script is the UX.

Also Triggers On

  • SSH to grid node → detect remote browser, suggest URL
  • Tailscale connect → node becomes reachable, print/open URL
  • Container restart → re-print URL (user might have closed tab)

Related

🤖 Generated with Claude Code

Activity

  1. added
    airc-queue
    on May 14, 2026
  2. github-actions commented on Aug 18, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  3. github-actions commented on Sep 22, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

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

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions