Skip to content

fix(make-bot-ui): wake the agent from a sidecar command - #72

Merged
caelaxie merged 1 commit into
mainfrom
cursor/fix-make-bot-ui-sidecar-265b
Nov 17, 2026
Merged

caelaxie merged 1 commit into
mainfrom
cursor/fix-make-bot-ui-sidecar-265b

Conversation

@caelaxie

Copy link
Copy Markdown
Collaborator

summary

make-bot-ui told an ordinary server process to run agy agentapi. agentapi is a sidecar-runtime CLI. Antigravity puts it on the sidecar's PATH, and a normal server does not get ANTIGRAVITY_LS_ADDRESS or ANTIGRAVITY_CSRF_TOKEN.

The UI server now runs as a sidecar command. From that process it calls agentapi new-conversation --model=flash <prompt> or agentapi send-message <conversation_id> <content>. agy agentapi on this CLI accepts --model only on new-conversation (flash_lite, flash, or pro). send-message does not take a model flag. The user enables the sidecar in ~/.gemini/config/config.json with sidecars.<id>.enabled and projectId. The webhook path stays. HTTP 200 is for the webhook and for probing the page. agentapi success is process exit and output.

Closes #68

harness proof

Head 4809adf4ddb076c40549452da739f69314d56ee8. agy 1.5.9. Commands ran on this commit. agy plugin install . on this branch installed pstack 0.15.42 with the updated make-bot-ui skill. A live agy --print turn needs a Google login this environment does not have. Poteto-mode scripts: 62 pass, 0 fail (this branch still includes check-plan). Statechart: 340 tests, 270 pass, 0 fail, 70 skipped.

$ agy --version
1.5.9

$ agy agentapi new-conversation --help
Usage: agentapi new-conversation [--model=<flash_lite|flash|pro|model_id>] [--title=<title>] [--profile=<profile>] <prompt>

$ agy agentapi send-message --help
Usage: agentapi send-message [--title=<title>] <recipient_id> <content>

$ agy plugin validate --strict .
Validating pstack (.antigravity-plugin/plugin.json)
  skills 61 · agents 2 · rules 0 · hooks 0 · mcpServers 0 · sidecars 0
✔ Validation passed

$ agy plugin install .
  [ok]    pstack (enabled, 0.15.42)
          Installed to ~/.gemini/config/plugins/pstack

$ agy plugin list
- pstack (enabled, 0.15.42)
    Components: 61 skills, 2 agents
Open in Web Open in Cursor 

Run the UI server as a sidecar command and call agentapi from that
process. Enable the sidecar in config.json. Reserve HTTP 200 for the
webhook and for probing the page.

Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>

@caelaxie caelaxie left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

pass on 4809adf. matches #68's smallest fix: run the ui server as a sidecar command, call agentapi from that process (model flag only on new-conversation, confirmed against the cli), tell the user to enable it in ~/.gemini/config/config.json with sidecars.<id>.enabled and projectId, keep the webhook path, and reserve http 200 for the webhook and for probing the page. no cursor-team-kit mention. harness proof on this head: agy 1.5.9, agy plugin validate --strict ., agy plugin install ., and agy plugin list shows pstack 0.15.42 with 61 skills. validate plugin ci is green on 4809adf. squash-merging.

@caelaxie
caelaxie merged commit d72c4b7 into main Nov 17, 2026
1 check passed
@caelaxie
caelaxie deleted the cursor/fix-make-bot-ui-sidecar-265b branch November 17, 2026 01:49
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.

make-bot-ui calls agy agentapi from a normal server, not a sidecar

2 participants