Skip to content

fix: filter auth_result in sendOneMessage after authentication#3521

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

fix: filter auth_result in sendOneMessage after authentication#3521
siddseethepalli merged 1 commit into
mainfrom
swarm/task-1

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Feb 17, 2026

Summary

When hasSocketOverride() is enabled, the server auto-authenticates the socket and sends an auth_result. If the client also sends an auth message (because it has a local token), the server responds with a second auth_result. After the first auth_result sets authenticated = true, the second one falls through to the response handler in sendOneMessage and gets resolved as the command response — breaking all CLI subcommands (sessions list, session_create, etc.) in forwarded-socket environments.

Fix: Filter auth_result messages in the authenticated path of sendOneMessage, matching the existing pattern for daemon_status and session_info.

Addresses feedback from Codex and Devin on #3440.


Open with Devin

When hasSocketOverride() is enabled, the server auto-authenticates and
sends an auth_result. If the client also sends an auth message (because
it has a local token), the server responds with a second auth_result.
After the first auth_result sets authenticated=true, the second one
falls through to the response handler and gets resolved as the command
response, breaking CLI subcommands.

Filter auth_result messages in the authenticated path of sendOneMessage,
matching the existing pattern for daemon_status and session_info.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

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