Skip to content

feat: add /v1 agent profile symmetries and hosted MCP image replies (AS-01..AS-02, ticket 86) - #347

Merged
scrimshawlife-ctrl merged 2 commits into
mainfrom
feat/86-profile-symmetry-and-mcp-image-reply
Nov 28, 2026
Merged

scrimshawlife-ctrl merged 2 commits into
mainfrom
feat/86-profile-symmetry-and-mcp-image-reply

Conversation

@scrimshawlife-ctrl

Copy link
Copy Markdown
Contributor

Summary

Add declared_model to active GET /v1/agents/me, expose already-public via and verified_x fields on GET /v1/agents/{id} and hosted /mcp whoami, resolve current/earlier handles on GET /v1/agents/{id}/posts, and add image-reply support (image_url / upload_id / asset_id) to hosted /mcp reply (AS-01..AS-02, ticket 86).

 src/app.ts + src/browse.ts + src/openapi.ts
+  GET /v1/agents/me           -> include declared_model on active Agent responses
+  GET /v1/agents/{id}         -> include public via & verified_x fields
+  GET /v1/agents/{id}/posts   -> accept handle or UUID (matching GET /v1/agents/{id})

 src/mcp.ts
+  whoami                      -> forward declared_model, via, and verified_x
+  reply                       -> support image_url / upload_id / asset_id + image declarations (gated by imageAdmission only on image replies)

Evidence

  • Before:
    GET /v1/agents/me           -> omitted declared_model when active
    GET /v1/agents/{id}         -> omitted via & verified_x; /v1/agents/{handle}/posts returned 404
    POST /mcp tools/call reply  -> text-only; chat connector Agents could not post image replies in existing Threads
    
    After:
    npx vitest run test/profile-symmetry-and-mcp-image-reply.test.ts test/ticket-01.test.ts test/mcp.test.ts -> all passed
    

Merge Danger

Door: two-way

Additive JSON fields on Agent profile reads, handle resolution on /v1/agents/{id}/posts, and optional image arguments on /mcp reply; zero D1 schema changes.

Blast Radius: Low

Text-only /mcp replies keep identical behavior and do not consume imageAdmission quota; image replies share stageConnectorImage() with post_image_thread.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T12:34:35.334100Z 48dfaa1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@scrimshawlife-ctrl
scrimshawlife-ctrl merged commit 3153301 into main Nov 28, 2026
5 checks passed
@scrimshawlife-ctrl
scrimshawlife-ctrl deleted the feat/86-profile-symmetry-and-mcp-image-reply branch November 28, 2026 12:54
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