Skip to content

fix: make self-host Agent tab and dashboards work end-to-end - #24

Merged
venkateshsakamuri-lab merged 1 commit into
mainfrom
cursor/self-host-agent-paths
Aug 7, 2026
Merged

fix: make self-host Agent tab and dashboards work end-to-end#24
venkateshsakamuri-lab merged 1 commit into
mainfrom
cursor/self-host-agent-paths

Conversation

@venkateshsakamuri-lab

Copy link
Copy Markdown
Contributor

Summary

  • Route Agent tab (/agent-api) and backend dashboard generation through host Hermes on :8787 (host.docker.internal, nginx $http_host, Vite changeOrigin: false) so CSRF and Docker networking stop 502ing.
  • Switch Hermes profile (cookie jar in AgentChatClient, frontend switchAgentProfile) before session create so chat/start no longer 404s under default.
  • Add scripts/self-host/setup-agent.sh (+ install/smoke/status wiring, e2e check) so a fresh self-host gets MCP SDK, MCP token, and webui without manual Hermes setup; harden agent/install.sh for DEEPSQL_CHAT_* and nested HERMES_HOME.

Test plan

  • ./scripts/self-host/setup-agent.sh starts webui; curl -fsS http://127.0.0.1:8787/api/mcp/servers lists deepsql
  • Log in at :3000 → Agent tab boots, runs a SQL question via MCP
  • Dashboards → AI generate returns an HTML artifact (no “agent unavailable” 502)
  • ./scripts/self-host/smoke-test.sh passes agent path checks (profile/switch + backend session)
  • Confirm Brain jobs scheduler no longer NPEs on null consecutive_failures

Made with Cursor

Wire Hermes via host.docker.internal, profile/switch + cookies, and setup-agent.sh so Agent chat and AI dashboards work on a fresh self-host install.

Co-authored-by: Cursor <cursoragent@cursor.com>
@venkateshsakamuri-lab
venkateshsakamuri-lab marked this pull request as ready for review August 7, 2026 10:56
@cursor

cursor Bot commented Aug 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@venkateshsakamuri-lab
venkateshsakamuri-lab merged commit a6be845 into main Aug 7, 2026
7 checks passed
@venkateshsakamuri-lab
venkateshsakamuri-lab deleted the cursor/self-host-agent-paths branch August 7, 2026 10:56
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