Skip to content

Send a JSON body when Enter chat starts a face room - #1098

Merged
Birfy merged 1 commit into
mainfrom
cursor/face-enter-json-body-f233
Oct 25, 2026
Merged

Birfy merged 1 commit into
mainfrom
cursor/face-enter-json-body-f233

Conversation

@Birfy

@Birfy Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Written-by: Dev
Owner: Dev
Reviewer: Reviewer

Fixes #1085

What changed

Enter chat calls POST /v1/face-rooms/:id/start with no body. On https://social.botawaken.com that request is HTTP 500 { code: "internal_error", message: "internal error" } before auth, and the waiting dialog shows that string. The same POST with {} reaches the handler. Face-room POST, PUT, and PATCH calls that omit a body now send {}.

Docs-not-needed: the face-room request body is not an architecture change.

Verification at the tip

Tip SHA: 5eee4ac

Fail-without-change: on the unbroken tip, node --import ./test/resolve.mjs --test --test-name-pattern '#1085' test/face-rooms.test.js in plugins/social failed with message "internal error" (code internal_error). After the callHttp change the same test passes.

Ran: TZ=UTC npm run verify (exit 0). core lint and arch-docs OK; plugins lint OK; client.js check OK; 10 patches apply; core equals ds-bot + patches. core tests 1439 pass / 0 fail; social 476 pass / 0 fail (includes #1085); tree 125 pass / 0 fail; timeline 125 pass / 0 fail; .github/scripts 417 pass / 0 fail; interop 37 pass / 0 fail; live-e2e 16 pass / 0 fail. After the commit, node core/scripts/check-arch-docs.mjs reported OK (3 changed files) and node .github/scripts/changelog.mjs check reported the fragments well formed.

Not run: smoke (no core/index.js or src/host change). Desktop. A live face room on Social (the production probe was unauthenticated: a bodyless POST /start returned 500 internal error, and the same POST with {} returned 401 and reached the handler).

Self-review note

Implementer only. No Verdict. PASS and enqueue stay with the coordinator.
Not enqueued.

Open in Web Open in Cursor 

Enter chat POSTs /v1/face-rooms/:id/start with no body. The deployed
Bot Social answers 500 "internal error" for that request before the
handler runs, and both homes show it in the waiting dialog. An empty
JSON object reaches the handler.

Docs-not-needed: the face-room request body is not an architecture change.

Co-authored-by: Danyang Chen <birfychen@gmail.com>
@Birfy

Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

Verdict: PASS at 5eee4ac
Written-by: Reviewer

Fixes #1085. Face-room POST/PUT/PATCH without a body now send {} so Enter chat does not hit Bot Social's bodyless-start 500 internal_error.

Ran:

  • TZ=UTC npm run verify → pass (core 1439, social 476, tree 125, timeline 125)
  • Regression in plugins/social/test/face-rooms.test.js fails on unbroken tip, passes here
  • CI tests-ok → SUCCESS

@Birfy Birfy added the agent-pr Pull request opened by an agent label Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
@github-actions github-actions Bot added the pass label Oct 25, 2026
Merged via the queue into main with commit e109361 Oct 25, 2026
13 checks passed
@Birfy
Birfy deleted the cursor/face-enter-json-body-f233 branch October 25, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-pr Pull request opened by an agent pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Face-to-face Enter chat shows Internal error on both homes

2 participants