Skip to content

feat(pages): saved pictures on hosted pages, and web research before writing one - #68

Merged
NatanTechofNY merged 5 commits into
mainfrom
feat/page-pictures
Oct 13, 2026
Merged

NatanTechofNY merged 5 commits into
mainfrom
feat/page-pictures

Conversation

@NatanTechofNY

@NatanTechofNY NatanTechofNY commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

What

The agent can now put a ticket, receipt or photo someone texted onto a hosted page. image blocks take attachment_ids (and still url); itinerary/checklist blocks take one id per item ("" for none), so a ticket sits under its stop. The agent learns ids from turnContext.pictures (this message) or a memory's attachments (get_memory).

Privacy rules (chosen by the owner)

  • The owner's own pictures: private (owner) pages only; refused on a shared page, including polls.
  • A group's page shows only that group's pictures; the owner's own and other groups' are refused (on create and update, and re-checked on every request).

How they are served

GET /p/:slug/pictures/:attachmentId: same open/gate as the page (owner page needs the session; revoked/expired is 404), serves only a picture one of the page's blocks names, default-src 'none'; sandbox, nosniff, private, no-cache. Page CSP gains img-src 'self'. /api/attachments is not exposed. A deleted picture is left off the page.

Also

Tool schema (client-tools.json, both create_page and update_page), system prompt, README and docs updated. Needs "Sync Agent config" after deploy for the agent to learn the new field.

Tests

New test covers owner/shared/group/anonymous access, unnamed picture, wrong-chat and unknown ids, bad block types and counts, deleted picture, revoke; turn-context assertion added to the receipt test.

Made with Cursor

Web research (added)

The prompt now tells the agent to look public facts up with web_search/read_web_page as freely as it takes before writing them on a page (hours, addresses, travel times, prices, show times, weather), to keep queries to public words, to link the source of facts that matter, and to leave off or mark anything it could not confirm. No server change: the web tools are already allowed on these turns. Limits that still apply: 16 tool rounds / 4 min per turn, the daily lookup cap (BRIGHTDATA_DAILY_LIMIT, a quarter for groups), and create_page with thread_id from the owner's chat is still refused on a turn that used the web (the prompt says to make it for the owner first, then file a copy under the group next ask).

…itinerary stop

An image block takes attachment_ids (alongside url); itinerary and checklist
blocks take one id per item. Pictures are served through
/p/<slug>/pictures/<id>, which applies the page's own gate, serves only a
picture a block names, and refuses the owner's own pictures on a shared page
and any picture from a chat other than the page's. The turn context lists the
message's picture ids as `pictures`.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T03:38:37.007518Z 82402c9 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.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NatanTechofNY NatanTechofNY changed the title feat(pages): saved pictures on hosted pages (a ticket under its itinerary stop) feat(pages): saved pictures on hosted pages, and web research before writing one Oct 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 82402c9561

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread server/routes/public-pages.ts
@NatanTechofNY
NatanTechofNY merged commit 9df38f6 into main Oct 13, 2026
2 checks passed
@NatanTechofNY
NatanTechofNY deleted the feat/page-pictures branch October 13, 2026 03:55
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