Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLIPublic
Assigneesstack72

Relationships

#1933 Show local vs remote mode indicator in command output

Opened by stack72 · 9/1/2026· Shipped 9/1/2026

Problem

When a user has SWAMP_SERVE_URL or SWAMP_SERVER_URL set (or uses --server), commands silently run against a remote server. This can lead to unintended consequences — a user working in a local swamp repo may not realize their commands are hitting a remote instance.

There's no visual indicator of which mode a command is running in, so it's easy to accidentally mutate remote state when you meant to work locally, or vice versa.

Proposed Solution

Show a clear local/remote mode indicator as part of command output. For example:

  • In log mode: a line like mode: local or mode: remote (https://serve.example.com) near the top of output
  • In json mode: a "mode" field in the response

The indicator should reflect the resolved connection — whether it came from SWAMP_SERVE_URL, SWAMP_SERVER_URL, or --server.

Why

  • Prevents accidental remote operations when the user intended local work
  • Makes it immediately obvious which environment a command targets
  • Reduces confusion when switching between local and remote workflows

Automoved by swampadmin from https://github.com/swamp-club/swamp/issues/2335

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 9 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/1/2026, 6:00:51 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/1/2026, 5:18:51 PM

Sign in to post a ripple.