Skip to content

fix: auto-authenticate clients on overridden socket paths#3431

Merged
siddseethepalli merged 1 commit into
mainfrom
swarm/task-3
Feb 17, 2026
Merged

fix: auto-authenticate clients on overridden socket paths#3431
siddseethepalli merged 1 commit into
mainfrom
swarm/task-3

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Feb 17, 2026

Summary

When VELLUM_DAEMON_SOCKET is set (e.g. SSH-forwarded sockets), the CLI skips sending an auth message if no local session token is found. However, the server had no corresponding logic — it always required auth within 5 seconds (AUTH_TIMEOUT_MS), causing an infinite reconnect loop.

This fix adds server-side detection of hasSocketOverride() in handleConnection. When true, incoming connections are auto-authenticated immediately, bypassing the auth timeout. Clients that DO have a token still send auth normally, and the message is harmlessly ignored since the socket is already authenticated.

Modified files:

  • assistant/src/daemon/server.ts — import hasSocketOverride, auto-authenticate in handleConnection

Addresses feedback from codex and devin on #3410.


Open with Devin

@siddseethepalli siddseethepalli self-assigned this Feb 17, 2026
When VELLUM_DAEMON_SOCKET is set (e.g. SSH-forwarded sockets), the CLI
skips sending an auth message if no local session token is found. But
the server had no corresponding logic — it always required auth within
5 seconds, causing an infinite reconnect loop.

Now the server detects hasSocketOverride() and auto-authenticates
incoming connections on the overridden path. Clients that DO have a
token still send auth normally and it's harmlessly ignored.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@siddseethepalli siddseethepalli merged commit d849a47 into main Feb 17, 2026
1 check failed
@siddseethepalli siddseethepalli deleted the swarm/task-3 branch February 17, 2026 05:39
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c55ca725d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread assistant/src/daemon/server.ts
Comment thread assistant/src/daemon/server.ts
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment thread assistant/src/daemon/server.ts
@siddseethepalli
Copy link
Copy Markdown
Contributor Author

Addressed in #3440

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