Skip to content

Unset TLS vars in dispatch-dev for plain HTTP dev servers#49

Merged
selfcontained merged 2 commits into
mainfrom
fix/dispatch-dev-focus
Mar 13, 2026
Merged

Unset TLS vars in dispatch-dev for plain HTTP dev servers#49
selfcontained merged 2 commits into
mainfrom
fix/dispatch-dev-focus

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Unset TLS_CERT and TLS_KEY before starting the API server in dispatch-dev
  • Dev servers inherit these from the production environment via the agent's shell, causing them to serve HTTPS with self-signed certs that browsers refuse to connect to

Test plan

  • npm run check + npm test pass
  • Manually verified the dev server process had inherited TLS vars from prod

🤖 Generated with Claude Code

selfcontained and others added 2 commits March 12, 2026 21:25
The orphan session cleanup was killing any dispatch_agt_* tmux session
that had no matching record in the current database. This caused dev
server instances (running against isolated databases) to kill the
production agent's tmux session on startup — because the dev DB was
empty and had no record of that agent.

Now we only kill sessions for agents in terminal states (stopped/error)
that the database definitively knows about. Unknown sessions are left
alone since they may belong to another server instance.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Dev server processes inherit TLS_CERT/TLS_KEY from the production
environment via the agent's shell. This causes dev servers to serve
HTTPS with self-signed certs that browsers refuse to connect to.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@selfcontained
selfcontained merged commit 1a76a83 into main Mar 13, 2026
1 check passed
@selfcontained
selfcontained deleted the fix/dispatch-dev-focus branch March 13, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant