Skip to content

fix(agent): profile switch so DeepSQL Agent chat works end-to-end - #21

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/fix-agent-profile-switch-231a
Aug 6, 2026
Merged

fix(agent): profile switch so DeepSQL Agent chat works end-to-end#21
cursor[bot] merged 3 commits into
mainfrom
cursor/fix-agent-profile-switch-231a

Conversation

@venkateshsakamuri-lab

@venkateshsakamuri-lab venkateshsakamuri-lab commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

DeepSQL's Agent tab is our own React (AgentChatPanel + agentClient.js). It talks to the DeepSQL Agent HTTP API over /agent-api/* after POST /api/agent/session.

Agent chat failed because sessions are scoped by the upstream hermes_profile cookie. Bootstrap returns profile: u-<user>, but without POST /api/profile/switch the API stayed on the default profile and session/yolo returned 404 Session not found.

Fix

  • After Spring bootstrap, call POST /agent-api/api/profile/switch before session/new
  • Add scripts/local-agent-provisioner.py for native (non-Compose) setups
  • Document native gotchas in AGENTS.md (Vite host bind, CORS loopback hosts)

Status

Merged to main after rebase onto #22 (agent dir rename).

Open in Web Open in Cursor 

@cursor
cursor Bot force-pushed the cursor/fix-agent-profile-switch-231a branch from 7dacaac to 9595e1f Compare August 6, 2026 13:33
@cursor cursor Bot changed the title fix(agent): switch Hermes profile so Agent tab chat works end-to-end fix(agent): Hermes profile switch so DeepSQL Agent chat works end-to-end Aug 6, 2026
@cursor cursor Bot changed the title fix(agent): Hermes profile switch so DeepSQL Agent chat works end-to-end fix(agent): profile switch so DeepSQL Agent chat works end-to-end Aug 6, 2026
cursoragent and others added 3 commits August 6, 2026 15:51
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
cursor Bot force-pushed the cursor/fix-agent-profile-switch-231a branch from 7d67106 to 82b876b Compare August 6, 2026 15:51
@cursor
cursor Bot merged commit 82b876b into main Aug 6, 2026
2 of 7 checks passed
@cursor
cursor Bot deleted the cursor/fix-agent-profile-switch-231a branch August 6, 2026 15:52
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.

2 participants