fix(agent): profile switch so DeepSQL Agent chat works end-to-end - #21
Merged
Conversation
cursor
Bot
force-pushed
the
cursor/fix-agent-profile-switch-231a
branch
from
August 6, 2026 13:33
7dacaac to
9595e1f
Compare
DeepSQL's Agent tab uses AgentChatPanel + agentClient against the Hermes HTTP API, not the Hermes webui overlay. Bootstrap returns profile u-<user>, but without POST /api/profile/switch Hermes keeps the default profile and session/yolo 404s (UI surfaces as a failed run / 500). Also document local agent provisioner + HERMES_WEBUI_ALLOWED_ORIGINS for native Cloud Agent setups, and add scripts/local-agent-provisioner.py. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Cloud VM gotchas: Vite can bind ::1-only without --host 0.0.0.0, and CORS_ALLOWED_ORIGINS must include both localhost and 127.0.0.1 for Agent. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
Keep DeepSQL Agent branding with Hermes upstream disclosure, plus Vite host bind and Spring CORS loopback notes. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
cursor
Bot
force-pushed
the
cursor/fix-agent-profile-switch-231a
branch
from
August 6, 2026 15:51
7d67106 to
82b876b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DeepSQL's Agent tab is our own React (
AgentChatPanel+agentClient.js). It talks to the DeepSQL Agent HTTP API over/agent-api/*afterPOST /api/agent/session.Agent chat failed because sessions are scoped by the upstream
hermes_profilecookie. Bootstrap returnsprofile: u-<user>, but withoutPOST /api/profile/switchthe API stayed on the default profile andsession/yoloreturned 404 Session not found.Fix
POST /agent-api/api/profile/switchbeforesession/newscripts/local-agent-provisioner.pyfor native (non-Compose) setupsAGENTS.md(Vite host bind, CORS loopback hosts)Status
Merged to
mainafter rebase onto #22 (agent dir rename).